Ejemplo n.º 1
0
 private void degenerateChoice_MouseDown(object sender, MouseEventArgs e)
 {
     if (!degenerateClod)
     {
         try
         {
             string text = StringProcessing.StepUp(mainform.pathToFile) + "\\Mods";
             if (File.Exists(text))
             {
                 text += "\\ModCFG.txt";
                 if (mainform.Lang == "eng")
                 {
                     mainform.CopyResource(SRHDLauncher.Properties.Resources.ModCFGen, text);
                 }
                 if (mainform.Lang == "ru")
                 {
                     mainform.CopyResource(SRHDLauncher.Properties.Resources.ModCFGru, text);
                 }
             }
             Process.Start(mainform.pathToFile);
             if (turnOffLauncher)
             {
                 mainform.Close();
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.ToString(), "");
         }
         degenerateChoice.Image = Resources._2ContinueD;
     }
     else
     {
         try
         {
             Process.Start(mainform.pathToFile);
             if (turnOffLauncher)
             {
                 mainform.Close();
             }
         }
         catch (Exception ex2)
         {
             MessageBox.Show(ex2.ToString(), "");
         }
     }
     Close();
     mainform.playForm = null;
 }
Ejemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         MainForm.Ch.KillAll();
         MainForm.Ch.CloseComm();
         MainForm.Camera0.Exit();
         MainForm.Camera1.Exit();
         MainForm.Camera2.Exit();
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.Message);
     }
     MainForm.Close();
     this.Close();
 }
Ejemplo n.º 3
0
 private void MainMenu_FormClosing(object sender, FormClosingEventArgs e)
 {
     MainForm.Close();
 }