//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void buttonSkyrim_Click(object sender, EventArgs e) { label1.Focus(); if (File.Exists(gameFolder + "TESV.exe")) { buttonSkyrim.Enabled = false; buttonSkyrim.MouseEnter -= new EventHandler(buttonSkyrim_MouseEnter); buttonSkyrim.MouseLeave -= new EventHandler(buttonSkyrim_MouseLeave); buttonSkyrim.BackgroundImage = BMbuttonlogoPressed; if (startWithGame != null) { if (File.Exists(startWithGame)) { Process.Start(startWithGame); } } if (waitBeforeStart != null) { int WaitTime = FuncParser.stringToInt(waitBeforeStart); if (WaitTime > 0) { FuncMisc.ToggleButtons(this, false); Thread.Sleep(WaitTime * 1000); FuncMisc.ToggleButtons(this, true); buttonSkyrim.Enabled = false; } } FuncMisc.RunProcess(gameFolder + "TESV.exe", "-forcesteamloader", SKSEExited, this); } else { MessageBox.Show("TESV.exe" + notFound); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void buttonWryeBash_Click(object sender, EventArgs e) { label1.Focus(); if (File.Exists(wryeBash)) { buttonWryeBash.Enabled = false; buttonWryeBash.MouseEnter -= new EventHandler(buttonWryeBash_MouseEnter); buttonWryeBash.MouseLeave -= new EventHandler(buttonWryeBash_MouseLeave); buttonWryeBash.BackgroundImage = BMbuttonFullPressed; FuncMisc.RunProcess(wryeBash, null, WryeBashExited, this); } else { MessageBox.Show("Wrye Bash" + notFound); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void buttonDSRStart_Click(object sender, EventArgs e) { label1.Focus(); if (File.Exists(dsr)) { buttonDSRStart.Enabled = false; buttonDSRStart.MouseEnter -= new EventHandler(buttonDSRStart_MouseEnter); buttonDSRStart.MouseLeave -= new EventHandler(buttonDSRStart_MouseLeave); buttonDSRStart.BackgroundImage = BMbuttonHalfPressed; FuncMisc.RunProcess(dsr, null, DSRExited, this); } else { MessageBox.Show("Dual Sheath Redux" + notFound); } }
//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// 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); } }