コード例 #1
0
        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();
        }
コード例 #2
0
 private void ToolBoxMenu_OnToolSelected(ToolBoxMenuVM sender, ToolBoxMenuVM.ToolEnum selectedTool)
 {
     EditArea.SetTool(selectedTool);
 }