private void OnViewShown(object sender, ViewShownEventArgs e) { if (e.FirstTimeShown) { e.View.Changed += this.OnViewChanged; } }
private void MainForm_ViewShown(object sender, ViewShownEventArgs e) { if ((e.View is OperatorsSidebar) && (menuItem != null)) { menuItem.Checked = true; Properties.Settings.Default.ShowOperatorsSidebar = true; Properties.Settings.Default.Save(); } }
private void MainForm_ViewShown(object sender, ViewShownEventArgs e) { if ((e.View is Clipboard<IItem>) && (menuItem != null)) { menuItem.Checked = true; Properties.Settings.Default.ShowClipboard = true; Properties.Settings.Default.Save(); } }
private void MainForm_ViewShown(object sender, ViewShownEventArgs e) { if ((e.View is StartPage) && (menuItem != null)) menuItem.Checked = true; }
private void OnViewShown(object sender, ViewShownEventArgs e) { if (e.FirstTimeShown) e.View.Changed += this.OnViewChanged; }