예제 #1
0
 public Form1()
 {
     InitializeComponent();
     V           = new List <Vertex>();
     G           = new DrawGraph(sheet.Width, sheet.Height);
     E           = new List <Edge>();
     graph       = new Graph();
     sheet.Image = G.GetBitmap();
 }
예제 #2
0
        public DrawPanelForm()
        {
            InitializeComponent();
            V           = new List <Vertex>();
            G           = new DrawGraph(sheet.Width, sheet.Height);
            E           = new List <Edge>();
            graph       = new Graph();
            sheet.Image = G.GetBitmap();

            selectButton.Visible    = false;
            drawEdgeButton.Visible  = false;
            deleteALLButton.Visible = false;
            deleteButton.Visible    = false;
        }
예제 #3
0
 //кнопка - выбрать вершину
 private void selectButton_Click(object sender, EventArgs e)
 {
     selectButton.Enabled     = false;
     drawVertexButton.Enabled = true;
     drawEdgeButton.Enabled   = true;
     deleteButton.Enabled     = true;
     G.clearSheet();
     G.drawALLGraph(V, E);
     sheet.Image = G.GetBitmap();
     selected1   = -1;
 }