示例#1
0
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 private void buttonSkyrim_Click(object sender, EventArgs e)
 {
     label1.Focus();
     if (File.Exists(gameFolder + "TESV.exe"))
     {
         buttonSkyrim.Enabled = false;
         buttonSkyrim.MouseEnter -= new EventHandler(buttonSkyrim_MouseEnter);
         buttonSkyrim.MouseLeave -= new EventHandler(buttonSkyrim_MouseLeave);
         buttonSkyrim.BackgroundImage = BMbuttonlogoPressed;
         if (startWithGame != null)
         {
             if (File.Exists(startWithGame))
             {
                 Process.Start(startWithGame);
             }
         }
         if (waitBeforeStart != null)
         {
             int WaitTime = FuncParser.stringToInt(waitBeforeStart);
             if (WaitTime > 0)
             {
                 FuncMisc.ToggleButtons(this, false);
                 Thread.Sleep(WaitTime * 1000);
                 FuncMisc.ToggleButtons(this, true);
                 buttonSkyrim.Enabled = false;
             }
         }
         FuncMisc.RunProcess(gameFolder + "TESV.exe", "-forcesteamloader", SKSEExited, this);
     }
     else
     {
         MessageBox.Show("TESV.exe" + notFound);
     }
 }
示例#2
0
 private void fileUnpack(string filename)
 {
     FuncMisc.ToggleButtons(this, false);
     listBox1.Enabled = false;
     FuncMisc.UnPackRAR(CPFilesPath + filename);
     FuncMisc.ToggleButtons(this, true);
     listBox1.Enabled = true;
 }
示例#3
0
 private void enbUnpack(string filename)
 {
     FuncMisc.ToggleButtons(this, false);
     listBox1.Enabled  = false;
     trackBar1.Enabled = false;
     FuncMisc.UnPackRAR(enbPath + filename);
     FuncSettings.ENBCheck(true);
     FuncMisc.ToggleButtons(this, true);
     listBox1.Enabled  = true;
     trackBar1.Enabled = true;
     refreshAllValue();
 }
示例#4
0
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 private void buttonFNIS_Click(object sender, EventArgs e)
 {
     label1.Focus();
     if (File.Exists(fnis))
     {
         FuncMisc.ToggleButtons(this, false);
         FuncMisc.UnPackRAR(launcherFolder + @"CPFiles\BackUp\FNIS.rar");
         FuncMisc.ToggleButtons(this, true);
         buttonFNISStart.Enabled = false;
         buttonFNISStart.MouseEnter -= new EventHandler(buttonFNISStart_MouseEnter);
         buttonFNISStart.MouseLeave -= new EventHandler(buttonFNISStart_MouseLeave);
         buttonFNISStart.BackgroundImage = BMbuttonHalfPressed;
         FuncMisc.RunProcess(fnis, null, FNISExited, this);
     }
     else
     {
         MessageBox.Show("FNIS" + notFound);
     }
 }
示例#5
0
 private void programsUnpack(string FileName)
 {
     FuncMisc.ToggleButtons(this, false);
     FuncMisc.UnPackRAR(programsPath + FileName);
     FuncMisc.ToggleButtons(this, true);
 }