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(); }
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; }
//кнопка - выбрать вершину 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; }