//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void button_Skyrim_Click(object sender, EventArgs e) { label1.Focus(); if (File.Exists(pathGameFolder + "SKSE.exe")) { pressButtonEvent(button_Skyrim, BMbuttonlogoPressed, buttonSkyrim_MouseEnter, buttonSkyrim_MouseLeave); if (argsStartsWith != null && File.Exists(argsStartsWith)) { FuncMisc.runProcess(argsStartsWith, null, null, null, false); } if (argsWaitBefore != null) { int WaitTime = FuncParser.stringToInt(argsWaitBefore); if (WaitTime > 0) { FuncMisc.toggleButtons(this, false); Thread.Sleep(WaitTime * 1000); FuncMisc.toggleButtons(this, true); button_Skyrim.Enabled = false; } } FuncMisc.runProcess(pathGameFolder + "SKSE.exe", "-forcesteamloader", SKSEExited, this, false); } else { MessageBox.Show("SKSE.exe" + notFound); } }
private void fileUnpack(string filename) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncMisc.unpackRAR(FormMain.pathModsFolder + filename); FuncMisc.toggleButtons(this, true); listBox1.Enabled = true; }
private void fileUnpack(string filename) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncMisc.unpackRAR(pathCPFiles + filename); FuncMisc.toggleButtons(this, true); listBox1.Enabled = true; }
private void enbUnpack(string filename) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncMisc.unpackRAR(pathENBfolder + filename); FuncMisc.toggleButtons(this, true); listBox1.Enabled = true; refreshAllValue(); }
private void enbUnpack(string filename) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncMisc.unpackRAR(pathENBfolder + filename); FuncMisc.toggleButtons(this, true); listBox1.Enabled = true; if (filename.ToUpper().Contains("ENB")) { FuncSettings.restoreENBLimit(); FuncSettings.restoreENBAdapter(); FuncSettings.restoreENBBorderless(); FuncSettings.restoreENBVSync(); FuncSettings.restoreENBVideoMemory(); } refreshAllValue(); }
// ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- // private void button_Install_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncClear.removeENB(); FuncMisc.unpackArhive(FormMain.pathENBFolder + listBox1.SelectedItem.ToString(), false); FuncParser.iniWrite(FormMain.pathLauncherINI, "ENB", "LastPreset", listBox1.SelectedItem.ToString()); FuncParser.iniWrite(FormMain.pathENBLocalINI, "MEMORY", "VideoMemorySizeMb", FuncParser.stringRead(FormMain.pathLauncherINI, "ENB", "MemorySizeMb")); listBox1.Enabled = true; FuncMisc.toggleButtons(this, true); refreshAllValue(); } else { MessageBox.Show(textNoFile); } }
// ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- // private void button_Install_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { FuncMisc.toggleButtons(this, false); listBox1.Enabled = false; FuncClear.removeENB(); FuncMisc.unpackRAR(FormMain.pathENBFolder + listBox1.SelectedItem.ToString()); listBox1.Enabled = true; FuncMisc.toggleButtons(this, true); FuncParser.iniWrite(FormMain.pathLauncherINI, "ENB", "LastPreset", listBox1.SelectedItem.ToString()); FuncParser.iniWrite(FormMain.pathENBLocalINI, "MEMORY", "VideoMemorySizeMb", FuncParser.stringRead(FormMain.pathLauncherINI, "ENB", "MemorySizeMb")); refreshAllValue(); if (listBox1.SelectedItem.ToString().IndexOf("boost", StringComparison.OrdinalIgnoreCase) >= 0 || listBox1.SelectedItem.ToString().IndexOf("lite", StringComparison.OrdinalIgnoreCase) >= 0) { FuncMisc.unpackRAR(FormMain.pathSystemFolder + "ENB Vision.rar"); } } else { MessageBox.Show(textNoFile); } }
private void programsUnpack(string FileName) { FuncMisc.toggleButtons(this, false); FuncMisc.unpackRAR(FormMain.pathProgramFiles + FileName); FuncMisc.toggleButtons(this, true); }