Exemple #1
0
 private void generatePreviewForCHMMToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Sim frm = new Sim();
     Preview_PATH = null;
     generating_preview = true;
     frm.ShowDialog();
     generating_preview = false;
 }
Exemple #2
0
 private void saveFile_Click(object sender, EventArgs e)
 {
     makeTheme(path + "new_dec_" + filename);
     dsdecmp.Compress(path + "new_dec_" + filename, path + filename);
     File.Delete(path + "new_dec_" + filename);
     if (APP_AutoGen_preview)
     {
         Sim frm = new Sim();
         Preview_PATH = path + filename + ".png" ;
         generating_preview = true;
         frm.ShowDialog();
         generating_preview = false;
         Preview_PATH = null;
     }
     StatusLabel.Visible = false;
     this.Refresh();
     MessageBox.Show(messages[7]);
 }
Exemple #3
0
 private void SimToolStrip_Click(object sender, EventArgs e)
 {
     Sim sim = new Sim();
         sim.ShowDialog();
 }
Exemple #4
0
 private void saveAsFile_Click(object sender, EventArgs e)
 {
     saveTheme.FileName = "body_LZ.bin";
     if (saveTheme.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         string newpath = saveTheme.FileName.Substring(0, saveTheme.FileName.LastIndexOf("\\") + 1);
         makeTheme(newpath + "new_dec_" + filename);
         dsdecmp.Compress(newpath + "new_dec_" + filename, saveTheme.FileName);
         File.Delete(newpath + "new_dec_" + filename);
         if (APP_AutoGen_preview)
         {
             Sim frm = new Sim();
             Preview_PATH = path + filename + ".png";
             generating_preview = true;
             frm.ShowDialog();
             generating_preview = false;
             Preview_PATH = null;
         }
         StatusLabel.Visible = false;
         this.Refresh();
         MessageBox.Show(messages[7]);
     }
 }