public MainFrm() { if (Properties.Settings.Default.StartMinimizedToTray) { Visible = false; Hide(); } InitializeComponent(); Log.SetLogComponent(logRichTextBox); Log.Notice("Initializing Control Panel"); Log.Notice("Wnmp Version: " + Application.ProductVersion); Log.Notice("Wnmp Directory: " + Program.StartupPath); SetupNginx(); SetupMariaDB(); /*Updated By Nash-x9:Fixd when startup,php will start with default version.*/ if (Properties.Settings.Default.PHPVersion == "Default") { SetupPHP(); } else { SetupCustomPHP(); } /*Updated End*/ SetupConfigAndLogMenuStrips(); SetupTrayMenu(); updater = new WnmpUpdater(this); CreateWnmpCertificate(); if (Properties.Settings.Default.StartMinimizedToTray) { visiblecore = false; base.SetVisibleCore(false); } if (Properties.Settings.Default.StartNginxOnLaunch) { Nginx.Start(); } if (Properties.Settings.Default.StartMariaDBOnLaunch) { MariaDB.Start(); } if (Properties.Settings.Default.StartPHPOnLaunch) { PHP.Start(); } }
public MainFrm() { InitializeComponent(); Log.SetLogComponent(logRichTextBox); Log.Notice("Initializing Control Panel"); Log.Notice("Wnmp Version: " + Application.ProductVersion); Log.Notice("Wnmp Directory: " + Program.StartupPath); SetupNginx(); SetupMariaDB(); SetupPHP(); SetupConfigAndLogMenuStrips(); updater = new WnmpUpdater(this); CreateWnmpCertificate(); }