private void metroLink1_Click(object sender, EventArgs e) { _ManagerSettings = new pnlAdvancedSettings(this, Opciones, DBName, path, false, false); ////_Settings.Closed += _pnlone_Closed; ////_Settings.Shown += _pnlone_Shown; _ManagerSettings.swipe(true); }
private void Manager_Load(object sender, EventArgs e) { process = new Process(); if (NoDB) { //mbCancel.Enabled = false; mbControlHoras.Enabled = false; metroLink1.Enabled = false; this.richTextBox1.Enabled = false; mctSettings.Enabled = false; IsProcessRunning = false; if (Opciones.DarkTheme) { msManager.Theme = MetroFramework.MetroThemeStyle.Dark; } else { msManager.Theme = MetroFramework.MetroThemeStyle.Light; } string[] s; s = Opciones.Estilo.Split('-'); msManager.Style = (MetroColorStyle)Convert.ToInt32(s[1]); if (!TablesExist("(local)", DBName)) { if (!VerifyIfDBExist("(local)", DBName)) { _ManagerSettings = new pnlAdvancedSettings(this, Opciones, DBName, path, true, false); _ManagerSettings.swipe(true); } else { _ManagerSettings = new pnlAdvancedSettings(this, Opciones, DBName, path, false, true); _ManagerSettings.swipe(true); } } } else { IsProcessRunning = false; serverName("(local)"); mcbServidor.SelectedIndex = 0; if (Opciones.DarkTheme) { msManager.Theme = MetroFramework.MetroThemeStyle.Dark; } else { msManager.Theme = MetroFramework.MetroThemeStyle.Light; } string[] s; s = Opciones.Estilo.Split('-'); msManager.Style = (MetroColorStyle)Convert.ToInt32(s[1]); if (!TablesExist("(local)", DBName)) { if (!VerifyIfDBExist("(local)", DBName)) { _ManagerSettings = new pnlAdvancedSettings(this, Opciones, DBName, path, true, false); _ManagerSettings.swipe(true); } else { _ManagerSettings = new pnlAdvancedSettings(this, Opciones, DBName, path, false, true); _ManagerSettings.swipe(true); } } } }