Advertisement
Guest User

Untitled

a guest
May 26th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4.  
  5. namespace AlgoritmD
  6. {
  7.     public partial class Panel
  8.     {
  9.         public static void CreateDot(Graphics g, Pen p, int x, int y, int width, int height)
  10.         {
  11.             g.DrawEllipse(p, x, y, width, height);
  12.             g.FillEllipse(new SolidBrush(Color.Black), x, y, width, height);
  13.         }
  14.  
  15.         public static void CreateDotName(Graphics g, int name, int x, int y)
  16.         {
  17.             g.DrawString(Convert.ToString(name), new Font("Times New Roman", 12, FontStyle.Regular), new SolidBrush(Color.Black), new PointF(x, y));
  18.         }
  19.  
  20.         public static void CreateLine(Graphics g, Pen p, int x1, int y1, int x2, int y2)
  21.         {
  22.             g.DrawLine(p, x1, y1, x2, y2);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement