예제 #1
0
        public DrawingSheet CreateChildSheet()
        {
            string sheetName = NextChildSheetName(ChildSheetNamePrefix);
            var    sheet     = new GlobalSheet(this, sheetName, defaultNewSheetSize);

            AddSheet(sheet);
            //Actions.Add(new SheetAction(RecordableAction.ActionTypes.AddSheet, sheet.Serialize()));
            //ActionIndex++;
            return(sheet);
        }
예제 #2
0
        public PhasesBook(AppInterface appInterface, Size size) //, MouseTool mouseTool)
        {
            Variables           = new VariableCollection(this);
            Sheets              = new List <DrawingSheet>();
            Actions             = new List <RecordableAction>();
            Globals             = new List <IGlobal>();
            defaultNewSheetSize = size;
            activeSheet         = new GlobalSheet(this, "Main Sheet", defaultNewSheetSize, Constants.ImageIndex.MainSheet);
            controls            = appInterface;
            Protected           = new Protected();

            //controls.mouse.ClearSelection();
            controls.view.Nodes.Clear();
            AddSheet(activeSheet);
        }