예제 #1
0
파일: Form1.cs 프로젝트: kastrulya/v2
 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();
 }
예제 #2
0
파일: Form1.cs 프로젝트: kastrulya/v2
        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);
        }