public MainWindowViewModel( [NotNull] IStatusViewModel statusViewModel, [NotNull] IProjectCollectionViewModel projectCollectionViewModel, [NotNull] IConfigurationService configurationService, [NotNull] IModelEditor showInDialog) { Guard.NotNull(configurationService, nameof(configurationService)); Guard.NotNull(showInDialog, nameof(showInDialog)); Guard.NotNull(projectCollectionViewModel, nameof(projectCollectionViewModel)); Guard.NotNull(statusViewModel, nameof(statusViewModel)); ProjectCollection = projectCollectionViewModel; StatusViewModel = statusViewModel; WorkingDirectory = string.Empty; Logger.Info("ctor"); OpenSettings = new OpenSettingsCommand(showInDialog, configurationService, WorkingDirectory); Initialize = new CapturingExceptionAsyncCommand(async() => { await Task.WhenAll( ProjectCollection.Initialize.ExecuteAsync(null), StatusViewModel.Initialize.ExecuteAsync(null)) .ConfigureAwait(false); }); }
public EditPropertyWindow(IModelEditor modelEdit) : this() { DataContext = modelEdit; _modelEdit = modelEdit; _modelEdit.OnUnsavedChangesClose += OnViewModelUnsavedChangesCloseAttempt; _modelEdit.OnModelEditClosed += OnViewModelEditorClosed; }
public void Handle(object sender, enumEventType eventType, object eventArg, EventHandleStatus status) { if (_modelEditor == null) { _modelEditor = sender as IModelEditor; } switch (eventType) { case enumEventType.MouseWheel: MouseWheel(eventArg as MouseEventArgs, status); break; case enumEventType.MouseDown: MouseDown(eventArg as MouseEventArgs, status); break; case enumEventType.MouseMove: MouseMove(eventArg as MouseEventArgs, status); break; case enumEventType.MouseUp: MouseUp(eventArg as MouseEventArgs, status); break; } }
public void Execute(ActionExecutionContext context) { IModelEditor vm = (IModelEditor)_shell.ActiveItem; _setRenderSetting(vm); if (Completed != null) { Completed(this, null); } }
public BindingEnvironment(IModelEditor modelEditor) { _modelEditor = modelEditor; }
public HookModelEditor(IModelEditor modelEditor, IApplication application, ToolStripItem control, ICommandHelper commandHelper) : base(application, control, commandHelper) { _modelEditor = modelEditor; }
public ApplicationModelEditor(IModelEditor modelEditor, string tempDir) : base(tempDir) { _modelEditor = modelEditor; }
private void CreateModelEditor() { _modelEditor = new ModelEditor(ucModelEditorView1); }
void frmModelEditor_Disposed(object sender, EventArgs e) { _modelEditor.Dispose(); _modelEditor = null; }
public RenderArg(IModelEditor modelEditor) { _modelEditor = modelEditor; }