Exemple #1
0
 public MySettings CopyTo(MySettings other)
 {
     other.BoolOption1   = this.BoolOption1;
     other.BoolOption2   = this.BoolOption2;
     other.StringOption3 = this.StringOption3;
     return(other);
 }
Exemple #2
0
		CommandLoader(IWpfCommandService wpfCommandService, MySettings mySettings) {
			var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENTVIEWER_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);
		}
Exemple #3
0
        CommandLoader(IWpfCommandService wpfCommandService, MySettings mySettings)
        {
            var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENTVIEWER_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);
        }
Exemple #4
0
 TextEditorCommand1(MySettings mySettings) => this.mySettings = mySettings;
Exemple #5
0
 MyAppSettingsPageProvider(MySettings mySettings) => this.mySettings = mySettings;
Exemple #6
0
 public MyAppSettingsPage(MySettings mySettings)
 {
     this.globalSettings = mySettings;
     this.newSettings    = mySettings.Clone();
 }
Exemple #7
0
 TextEditorCommand2(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }
Exemple #8
0
		public MyAppSettingsPage(MySettings mySettings) {
			globalSettings = mySettings;
			newSettings = mySettings.Clone();
		}
Exemple #9
0
		MyAppSettingsPageProvider(MySettings mySettings) {
			this.mySettings = mySettings;
		}
Exemple #10
0
		public MySettings CopyTo(MySettings other) {
			other.BoolOption1 = BoolOption1;
			other.BoolOption2 = BoolOption2;
			other.StringOption3 = StringOption3;
			return other;
		}
Exemple #11
0
		TextEditorCommand2(MySettings mySettings) {
			this.mySettings = mySettings;
		}
Exemple #12
0
 MyAppSettingsTabProvider(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }
Exemple #13
0
 public MyAppSettingsPage(MySettings mySettings)
 {
     globalSettings = mySettings;
     newSettings    = mySettings.Clone();
 }
Exemple #14
0
 MiscOptionProvider(MySettings mySettings)
 {
     this.mySettings = mySettings;
 }