예제 #1
0
        public DebugPanel()
        {
            this.AutoScroll = true;
            //FlowDirection = FlowDirection.TopDown;
            //WrapContents = false;

            var grid = new GridLineManager(this, false);

            grid.ElementDistance = 0;
            grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill);
            grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill);
            grid.AddElementFilling(grid.AddLineFixed(100), new Finder.EditorFinderClassByName(null), GlobalLayout.MinFill);
        }
예제 #2
0
        private void InitializeGridLineManager()
        {
            structureViever = new StructureViewer(dataStruct);
            //structureViever.RebuildHalfAsync();
            structureViever.AfterSelect += structureViever1_AfterSelect;
            btnSelect = GlobalLayout.GenMetroButton("Select", Select_Click);

            var grid = new GridLineManager(this, true);
            int line = grid.AddLineFilling(GlobalLayout.LineHeight);

            grid.AddElementFilling(line, structureViever, GlobalLayout.MinFill);
            line = grid.AddLineFixed(GlobalLayout.LineHeight);
            grid.AddElementStretchable(line, btnSelect, GlobalLayout.MinFill, GlobalLayout.LabelWidth);
            grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Cancel", Cancel_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth);
        }
예제 #3
0
        private void InitializeGridLineManager()
        {
            Text                           = "TypeSelector";
            txtTypeCompile                 = new FastColoredTextBox();
            txtTypeCompile.Multiline       = false;
            txtTypeCompile.ShowLineNumbers = false;
            txtTypeCompile.Language        = Language.CSharp;
            txtTypeName                    = new TextBox();
            txtTypeName.ReadOnly           = true;

            var grid = new GridLineManager(this, true);
            int line = grid.AddLineFixed(GlobalLayout.LineHeight);

            grid.AddElementFixed(line, GlobalLayout.GenMetroLabel("TypeCompiler"), GlobalLayout.LabelWidth);
            grid.AddElementFilling(line, txtTypeCompile, GlobalLayout.MinFill);
            grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Compile", TypeCompiler_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth);
            line = grid.AddLineFixed(GlobalLayout.LineHeight);
            grid.AddElementFixed(line, GlobalLayout.GenMetroLabel("Type"), GlobalLayout.LabelWidth);
            grid.AddElementFilling(line, txtTypeName, GlobalLayout.MinFill);
            grid.AddElementStretchable(line, GlobalLayout.GenMetroButton("Pick", PickMethod_Click), GlobalLayout.MinFill, GlobalLayout.LabelWidth);
            line = grid.AddLineFixed(GlobalLayout.LineHeight);
            grid.AddElementFilling(line, null, 0);
            grid.AddElementFixed(line, GlobalLayout.GenMetroButton("OK", OK_Click), GlobalLayout.LabelWidth);
        }
예제 #4
0
 protected LayoutElement(GridLineManager manager, ArrangementType arrType, int minVal)
 {
     this.manager    = manager;
     arrangementType = arrType;
     minValue        = minVal;
 }
예제 #5
0
 public GridElement(GridLineManager manager, Control control, ArrangementType arrTyp, int minVal)
     : base(manager, arrTyp, minVal)
 {
     this.control = control;
 }
예제 #6
0
 public GridLine(GridLineManager manager, ArrangementType arrTyp, int minVal)
     : base(manager, arrTyp, minVal)
 {
     elementList = new List <LayoutElement>();
 }