Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     DataChekList.SaveTrack = textBox1.Text;
     DataChekList.SaveSaveTrack(DataChekList.Encrypt);
     DataChekList.Cource   = Subjects.LoadSubList(DataChekList.Encrypt);
     DataChekList.Platoons = Platoons.LoadPlatList(DataChekList.Encrypt);
     this.Close();
 }
Ejemplo n.º 2
0
 private void Constructor_Load(object sender, EventArgs e)
 {
     if (DataChekList.Check == null)
     {
         label5.Visible            = false;
         tableLayoutPanel1.Visible = false;
         panel1.Visible            = false;
     }
     else
     {
         label5.Visible            = true;
         label5.Text               = DataChekList.Check.Inform.Name;
         tableLayoutPanel1.Visible = true;
         panel1.Visible            = true;
     }
     //DataChekList.LoadEncrypt();
     шифроватьToolStripMenuItem.Checked = DataChekList.Encrypt;
     шифроватьToolStripMenuItem.Enabled = false;
     if (DataChekList.SaveTrack == "")
     {
         DataChekList.LoadSaveTrack(DataChekList.Encrypt);
         while (DataChekList.SaveTrack == "")
         {
             MessageBox.Show("Так как программа запущена в первый раз, обязательно укажите путь сохранения файлов в следующем диалоговом окне!");
             RenameSaveTrack form = new RenameSaveTrack();
             form.ShowDialog();
         }
     }
     CreateNewDirectory();
     if (DataChekList.Cource == null)
     {
         DataChekList.Cource = Subjects.LoadSubList(DataChekList.Encrypt);
     }
     if (DataChekList.Platoons == null)
     {
         DataChekList.Platoons = Platoons.LoadPlatList(DataChekList.Encrypt);
     }
     ReadChekLists();
     PaintChekLists("");
     cb1.SelectedIndex = -1;
 }