Beispiel #1
0
 private void загрузитьДанныетипFscToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         filePath  = openFileDialog1.FileName;
         filePath1 = filePath.Remove(filePath.Length - 3) + "fsc";
         com.Open(filePath1);
         hierarchy_.clear();
         File.OpenRead(filePath1);
         if (hierarchy_.load(filePath))
         {
             //visualize();
             artist.visualize(hierarchy_, panel1, pictureBox1, trackBar1);
         }
         Form1_Load(sender, e);
         данныеToolStripMenuItem.Enabled = true;
     }
     else
     {
         MessageBox.Show("Ошибка открытия файла.");
     }
 }