Пример #1
0
        public override void EditLocalSettings()
        {
            var vm  = new LocalSettingsVM(new LocalGroupOptions(HexView), hexEditorGroupFactoryService.Value.GetDefaultLocalOptions(HexView));
            var win = new LocalSettingsDlg();

            win.DataContext = vm;
            win.Owner       = OwnerWindow;
            if (win.ShowDialog() != true)
            {
                return;
            }

            vm.TryGetLocalGroupOptions().WriteTo(HexView);
        }
Пример #2
0
		public override void EditLocalSettings() {
			var vm = new LocalSettingsVM(new LocalGroupOptions(HexView), hexEditorGroupFactoryService.GetDefaultLocalOptions(HexView));
			var win = new LocalSettingsDlg();
			win.DataContext = vm;
			win.Owner = OwnerWindow;
			if (win.ShowDialog() != true)
				return;

			vm.TryGetLocalGroupOptions().WriteTo(HexView);
		}