예제 #1
0
 public MySettings CopyTo(MySettings other)
 {
     other.BoolOption1   = this.BoolOption1;
     other.BoolOption2   = this.BoolOption2;
     other.StringOption3 = this.StringOption3;
     return(other);
 }
예제 #2
0
		CommandLoader(IWpfCommandManager wpfCommandManager, MySettings mySettings) {
			var cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_TEXTEDITOR_UICONTEXT);
			// This command will be added to all text editors
			cmds.Add(Option1Command,
				(s, e) => mySettings.BoolOption1 = !mySettings.BoolOption1,
				(s, e) => e.CanExecute = true,
				ModifierKeys.Control | ModifierKeys.Alt, Key.Q);
		}
예제 #3
0
        CommandLoader(IWpfCommandManager wpfCommandManager, MySettings mySettings)
        {
            var cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_TEXTEDITOR_UICONTEXT);

            // This command will be added to all text editors
            cmds.Add(Option1Command,
                     (s, e) => mySettings.BoolOption1 = !mySettings.BoolOption1,
                     (s, e) => e.CanExecute           = true,
                     ModifierKeys.Control | ModifierKeys.Alt, Key.Q);
        }
예제 #4
0
		TextEditorCommand2(MySettings mySettings) {
			this.mySettings = mySettings;
		}
예제 #5
0
		MiscOptionCreator(MySettings mySettings) {
			this.mySettings = mySettings;
		}
예제 #6
0
		public MyAppSettingsTab(MySettings mySettings) {
			this.globalSettings = mySettings;
			this.newSettings = mySettings.Clone();
		}
예제 #7
0
		MyAppSettingsTabCreator(MySettings mySettings) {
			this.mySettings = mySettings;
		}
예제 #8
0
 TextEditorCommand2(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }
예제 #9
0
 MiscOptionCreator(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }
예제 #10
0
		public MySettings CopyTo(MySettings other) {
			other.BoolOption1 = this.BoolOption1;
			other.BoolOption2 = this.BoolOption2;
			other.StringOption3 = this.StringOption3;
			return other;
		}
예제 #11
0
 public MyAppSettingsTab(MySettings mySettings)
 {
     this.globalSettings = mySettings;
     this.newSettings    = mySettings.Clone();
 }
예제 #12
0
 MyAppSettingsTabCreator(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }