private void _myVM_OnShowView(EditAreaVM sender, EditAreaVM.ViewEnum view) { switch (view) { case EditAreaVM.ViewEnum.Page: invalidateDocumentView(_myVM.Document); break; case EditAreaVM.ViewEnum.Document: invalidateDocumentOverview(); break; default: break; } }
public IDEVM() { ToolBoxMenu = new ToolBoxMenuVM(); ToolBoxMenu.OnToolSelected += ToolBoxMenu_OnToolSelected; ToolbarMenu = new ToolbarMenuVM(); ToolbarMenu.OnNewCommand += ToolbarMenu_OnNewCommand; ToolbarMenu.OnSaveCommand += ToolbarMenu_OnSaveCommand; ToolbarMenu.OnOpenCommand += ToolbarMenu_OnOpenCommand; ToolbarMenu.OnAddPageCommand += ToolbarMenu_OnAddPageCommand; ToolbarMenu.OnHtmlEditorCommand += ToolbarMenu_OnHtmlEditorCommand; ToolbarMenu.OnDocumentViewCommand += ToolbarMenu_OnDocumentViewCommand; ToolbarMenu.OnPageViewCommand += ToolbarMenu_OnPageViewCommand; ToolbarMenu.OnResourcesViewCommand += ToolbarMenu_OnResourcesViewCommand; EditArea = new EditAreaVM(); CreateDocument(); }