private void Maintainer_Shown(object sender, EventArgs e) { if (ServicesOptimizer.My.MySettingsProperty.Settings.MediaCntr == 0) { DialogResult dialogResult = MessageBox.Show("Service Optimization profile has been not created. Would you like to Create?", "Service Optimization Profile", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { FrmUsrProfile up = new FrmUsrProfile(); up.ShowDialog(); } if (ServicesOptimizer.My.MySettingsProperty.Settings.MediaCntr == 0) { checkBox4.Checked = false; checkBox4.Enabled = false; } } }
private void linkLabel9_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FrmUsrProfile up = new FrmUsrProfile(); up.Show(); }