//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void button_unpackENB_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { FuncClear.removeENB(); enbUnpack(listBox1.SelectedItem.ToString()); FuncParser.iniWrite(FormMain.pathLauncherINI, "ENB", "LastPreset", listBox1.SelectedItem.ToString()); if (listBox1.SelectedItem.ToString().ToLower().Contains("boost")) { FuncMisc.refreshButton(button_DOF, "", "", "", null, false); FuncMisc.refreshButton(button_EAA, "", "", "", null, false); FuncMisc.refreshButton(button_SAA, "", "", "", null, false); FuncMisc.refreshButton(button_TAA, "", "", "", null, false); FuncMisc.unpackRAR(FormMain.pathLauncherFolder + @"CPFiles\System\GameText9.rar"); } else { FuncFiles.deleteAny(FormMain.pathGameFolder + @"Data\GameText9.bsa"); } } else { MessageBox.Show(noFileSelect); } }
// ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- // private void button_Uninstall_Click(object sender, EventArgs e) { if (FuncMisc.dialogResult(textRemoveENB)) { FuncClear.removeENB(); FuncParser.iniWrite(FormMain.pathLauncherINI, "ENB", "LastPreset", ""); refreshAllValue(); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void button_deleteAllENB_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show(removeENBFiles, confirmTitle, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { FuncClear.removeENB(); FuncSettings.checkENB(); refreshAllValue(); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void button_deleteAllENB_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show(removeENBFiles, confirmTitle, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { FuncClear.removeENB(); FuncSettings.checkENB(); FuncParser.iniWrite(FormMain.pathSkyrimPrefsINI, "Display", "iMaxAnisotropy", "16"); FuncParser.iniWrite(FormMain.pathSkyrimPrefsINI, "Display", "bFXAAEnabled", "1"); FuncParser.iniWrite(FormMain.pathLauncherINI, "ENB", "LastPreset", ""); FuncMisc.unpackRAR(FormMain.pathLauncherFolder + @"CPFiles\System\GameText9.rar"); 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); } }
private void button_unpackENB_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { if (listBox1.SelectedItem.ToString().ToUpper().Contains("ENB")) { FuncClear.removeENB(); } else if (listBox1.SelectedItem.ToString().ToUpper().Contains("DOF")) { FuncFiles.deleteAny(FormMain.pathGameFolder + @"ENBSeries\enbdepthoffield.fx.ini"); } enbUnpack(listBox1.SelectedItem.ToString()); } else { MessageBox.Show(noFileSelect); } }
// ------------------------------------------------ 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); } }