pborawski

Form.cs

Apr 23rd, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication4
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.             InitializeComponent();
  17.         }
  18.  
  19.         private void Form1_Load(object sender, EventArgs e)
  20.         {
  21.            
  22.            
  23.         }
  24.  
  25.         private void Form1_Paint(object sender, PaintEventArgs e)
  26.         {
  27.             Diagram d = new Diagram(0, 0, ClientRectangle.Width, ClientRectangle.Height, 0, 0, 20, 16, e.Graphics);
  28.             //d.siatka(0, 0, -10, 10, -8, 8, 1, 1, Color.Green);
  29.             d.uklad_xy(0, 0, -20, 20, -8, 8, 1, 1, 5, Color.Blue);
  30.             d.punkt(0, 0, 1, TypPunktu.P_Kolo, Color.Red);
  31.             d.punkt(3, 7, 1, TypPunktu.P_Kwadrat, Color.Red);
  32.             d.punkt(-3, -5, 1, TypPunktu.P_Krzyz, Color.Red);
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment