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(); }
private void ToolBoxMenu_OnToolSelected(ToolBoxMenuVM sender, ToolBoxMenuVM.ToolEnum selectedTool) { EditArea.SetTool(selectedTool); }