Exemplo n.º 1
0
 private void buttonClear_Click(object sender, EventArgs e)
 {
     graph = null;
     createGraph = null;
     dgwMatrix.Rows.Clear();
     dgwMatrix.Columns.Clear();
     dgwMatrix.Visible = false;
     pictureBox1.Controls.Clear();
     pictureBox1.Refresh();
     dgwOutput.Rows.Clear();
     dgwOutput.Visible = false;
     listOutput.Items.Clear();
 }
Exemplo n.º 2
0
        private void drawGraph_Click(object sender, EventArgs e)
        {
            AboutProgram.Hide();
            paintPanel.Show();
            buttonClear.Show();

            dgwMatrix.Visible = true;
            pictureBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDoubleClick);
            pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseClick);
            dgwMatrix.Visible = true;
            createGraph = new CreateGraph(ref this.dgwMatrix);
            dgwMatrix.CellValueChanged += new DataGridViewCellEventHandler(this.matrix_CellValueChanged);
            saveGraph.Visible = true;
            saveGraph.MouseClick += new System.Windows.Forms.MouseEventHandler(this.buttonSave_Click);
        }