Пример #1
0
 private void fileUnpack(string filename)
 {
     FuncMisc.ToggleButtons(this, false);
     listBox1.Enabled = false;
     FuncMisc.UnPackRAR(CPFilesPath + filename);
     FuncMisc.ToggleButtons(this, true);
     listBox1.Enabled = true;
 }
Пример #2
0
 private void unpackUpdates()
 {
     FuncMisc.UnPackRAR(updateFolder + "file" + numberSelectFile + ".rar");
     if (File.Exists(updateFolder + "Update_" + numberSelectFile + ".bat"))
     {
         Process.Start(updateFolder + "Update_" + numberSelectFile + ".bat");
     }
     FuncParser.iniWrite(FormMain.iniLauncher, "Updates", "Update_" + numberSelectFile + "_Version", FuncParser.stringRead(updateFolder + nameUpdateInfo, "Update_" + numberSelectFile, "update_file_version"));
     comboBox1_SelectedIndexChanged(this, new EventArgs());
 }
Пример #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);
 }