private void fileUnpack(string filename) { FuncMisc.ToggleButtons(this, false); listBox1.Enabled = false; FuncMisc.UnPackRAR(CPFilesPath + filename); FuncMisc.ToggleButtons(this, true); listBox1.Enabled = true; }
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()); }
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(); }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// 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); } }
private void programsUnpack(string FileName) { FuncMisc.ToggleButtons(this, false); FuncMisc.UnPackRAR(programsPath + FileName); FuncMisc.ToggleButtons(this, true); }