예제 #1
0
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 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);
     }
 }
예제 #2
0
        //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
        private void button_ClearDirectory_Click(object sender, EventArgs e)
        {
            label1.Focus();
            DialogResult dialogResult = MessageBox.Show(clearDirectory, confirmTitle, MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                FuncFiles.deleteAny(pathMyDoc + "Logs");
                FuncFiles.deleteAny(pathMyDoc + "SKSE");
                if (FuncParser.stringRead(pathSkyrimINI, "Papyrus", "bEnableLogging") == "1")
                {
                    FuncFiles.creatDirectory(pathMyDoc + "Logs");
                }
                if (Directory.Exists(pathMyDoc + "Saves"))
                {
                    foreach (string line in Directory.GetFiles(pathMyDoc + "Saves", "*.bak"))
                    {
                        FuncFiles.deleteAny(line);
                    }
                }
                FuncFiles.deleteAny(pathGameFolder + @"..\Skyrim Mods");
                FuncClear.clearGameFolder();
                FuncClear.emptyFolder(pathGameFolder);
            }
        }
예제 #3
0
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 private void button_ModUnInstall_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         DialogResult dialogResult = MessageBox.Show(confirmDelete, confirmTitle, MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             if (File.Exists(pathCPFiles + listBox1.SelectedItem.ToString().Replace(".rar", ".txt")))
             {
                 foreach (string line in File.ReadLines(pathCPFiles + listBox1.SelectedItem.ToString().Replace(".rar", ".txt")))
                 {
                     FuncFiles.deleteAny(FormMain.pathGameFolder + line);
                 }
                 if (listBox1.SelectedItem.ToString().ToUpper().Contains("OSA"))
                 {
                     FuncMisc.unpackRAR(FormMain.pathFNISRAR);
                 }
                 FuncClear.emptyFolder(FormMain.pathGameFolder);
             }
             else
             {
                 MessageBox.Show(noUninstalFile);
             }
         }
     }
     else
     {
         MessageBox.Show(noFileSelect);
     }
 }
예제 #4
0
 // ------------------------------------------------ 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();
     }
 }
예제 #5
0
        //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
        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();
            }
        }
예제 #6
0
파일: FormMain.cs 프로젝트: SlavaTenhi/SLMP
 //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
 private void buttonClearDirectory_Click(object sender, EventArgs e)
 {
     label1.Focus();
     DialogResult dialogResult = MessageBox.Show(clearDirectory, confirmTitle, MessageBoxButtons.YesNo);
     if (dialogResult == DialogResult.Yes)
     {
         FuncFiles.Delete(gameFolder + @"..\Skyrim Mods");
         FuncClear.Clear();
         FuncClear.EmptyFolder(gameFolder);
     }
 }
예제 #7
0
 // ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- //
 private void button_ClearDirectory_Click(object sender, EventArgs e)
 {
     label1.Focus();
     if (FuncMisc.dialogResult(textClearDirectory))
     {
         FuncFiles.deleteAny(pathMyDoc + "SKSE");
         FuncFiles.deleteAllInFolder(pathMyDoc + "Logs", "*");
         FuncFiles.deleteAllInFolder(pathMyDoc + "Saves", "*.bak");
         FuncFiles.deleteAny(Path.GetFullPath(pathGameFolder + @"..\Skyrim Mods"));
         FuncClear.clearGameFolder();
     }
 }
예제 #8
0
파일: FormENB.cs 프로젝트: SlavaTenhi/SLMP
 private void unpackENB_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         FuncClear.ENB();
         enbUnpack(listBox1.GetItemText(listBox1.SelectedItem));
     }
     else
     {
         MessageBox.Show(noFileSelect);
     }
 }
예제 #9
0
        //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
        private void button_ClearDirectory_Click(object sender, EventArgs e)
        {
            label1.Focus();
            DialogResult dialogResult = MessageBox.Show(clearDirectory, confirmTitle, MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                FuncFiles.deleteAny(pathMyDoc + "SKSE");
                FuncFiles.deleteAllInFolder(pathMyDoc + "Logs", "*");
                FuncFiles.deleteAllInFolder(pathMyDoc + "Saves", "*.bak");
                FuncFiles.deleteAny(pathGameFolder + @"..\Skyrim Mods");
                FuncClear.clearGameFolder();
            }
        }
예제 #10
0
        //////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ//////////////////////////////////////////////////////////////
        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();
            }
        }
예제 #11
0
 // ------------------------------------------------ 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);
     }
 }
예제 #12
0
 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);
     }
 }
예제 #13
0
 // ------------------------------------------------ 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);
     }
 }