private void cbCmd_Checked(object sender, RoutedEventArgs e) { if (cbCmd.IsChecked == true) { CmdManager.addCmdToRightMenu(); } else { CmdManager.removeSCmdToRightMenu(); } }