Ejemplo n.º 1
0
        public TableEditor() : base(new TableLayoutList())
        {
            toolInsert.Remove();
            //toolInsertLine = new ToolMenuItem(OnToolInsertLineClick) { Name = "Insert Line", Glyph = GlyphType.ChevronCircleRight };
            //toolAdd.DropDownItems.Add(toolInsertLine);

            toolReference = new ToolDropDown()
            {
                Name = "References", Visible = false, DisplayStyle = ToolItemDisplayStyle.Text, DropDown = new Menubar {
                    Name = "References"
                }
            };
            toolMerge = new ToolMenuItem(OnToolMergeClick)
            {
                Name = "Merge", Glyph = GlyphType.PaperPlane
            };
            toolReport = new ToolMenuItem(ToolReportClick)
            {
                Name = "Report", Glyph = GlyphType.FileExcelO
            };
            toolParam = new ToolDropDown(toolMerge, toolReport)
            {
                Name = "Parameters", Glyph = GlyphType.GearAlias
            };

            loader       = new TableLoader();
            toolProgress = new ToolTableLoader {
                Loader = loader
            };

            Bar.Items.Add(toolReference);
            Bar.Items.Add(toolParam);
            Bar.Items.Add(toolProgress);

            List.CellValueWrite += FieldsCellValueChanged;
            Name = "TableEditor";

            question = new QuestionMessage {
                Text = "Checkout"
            };
            question.Buttons.Add(Command.No);
            question.Buttons.Add(Command.Yes);
        }
Ejemplo n.º 2
0
 public override void Dispose()
 {
     Loader = null;
     base.Dispose();
 }