Esempio n. 1
0
File: 4.cs Progetto: yuw726/Lexer
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel2.Text = "Построение диаграммы";
            string[] cell_to_string = new string[100];
            for (int i = 0; i < dataGridView1.Rows.Count; i++)
            {
                for (int j = 0; j < dataGridView1.Rows[i].Cells.Count; j++)
                {
                    if (dataGridView1.Rows[i].Cells[j].Value == null)
                    {
                        continue;
                    }
                    cell_to_string[i] = cell_to_string[i] + dataGridView1.Rows[i].Cells[j].Value.ToString() + " ";
                }
            }
            File.WriteAllLines(programDirectory.FullName.ToString() + "//temp_datum.elf", cell_to_string);

            if (newType == null)
            {
                newType = new TypeForm();
                newType.ShowDialog();
            }
            else
            {
                newType.Close();
                newType.Dispose();
                newType = new TypeForm();
                newType.ShowDialog();
            }
        }
Esempio n. 2
0
 private void выбратьТипДиаграммыToolStripMenuItem_Click(object sender, EventArgs e)
 {
     newType = new TypeForm();
     if (DialogResult.OK == newType.ShowDialog())
     {
         this.Close();
         this.Dispose();
     }
 }