Ejemplo n.º 1
0
        public InnerTabPage()
        {
            InitializeComponent();
            panelDesktop.BackColor = Color.FromArgb(114, 106, 112);
            _params         = new Params(this);
            explorerPainter = new ExplorerPainter(tabPageExplorer);
            stack           = new UndoRedoStack();

            jSONParser = new JSONParser(_params, explorerPainter, this);

            label          = new Label();
            label.Text     = "";
            label.Location = new Point(defaultWidth, defaultHeight);
            label.Size     = new Size(0, 0);
            panelDesktop.Controls.Add(label);

            innerHeader          = new InnerHeader(this);
            innerHeader.Location = new Point(0, 0);
            innerHeader.Visible  = false;
            panelDesktop.Controls.Add(innerHeader);

            panelDesktop.ControlAdded += PanelDesktop_ControlAdded;
            panelDesktop.Click        += PanelDesktop_Click;

            toolStripTextBoxHeight.Text       = MaxY().ToString();
            toolStripTextBoxHeight.LostFocus += ToolStripTextBoxHeight_LostFocus;
            toolStripTextBoxHeight.KeyDown   += ToolStripTextBoxHeight_KeyDown;

            toolStripTextBoxScale.Text       = "1";
            toolStripTextBoxScale.LostFocus += ToolStripTextBoxScale_LostFocus;
            toolStripTextBoxScale.KeyDown   += ToolStripTextBoxScale_KeyDown;
        }
Ejemplo n.º 2
0
 public InnerControl(InnerTabPage parentTabPage)
 {
     InitializeComponent();
     this.parentTabPage = parentTabPage;
     elementName        = this.GetType().ToString() + "_" + DateTime.Now + "_" + DateTime.Now.Millisecond;
     clicker            = "";
     elementY           = 0;
     constant           = false;
     hidden             = false;
     //propPanelCleared = false;
     Disposed            += InnerControl_Disposed;
     this.explorerPainter = parentTabPage.explorerPainter;
     this._params         = parentTabPage._params;
 }
Ejemplo n.º 3
0
 public JSONParser(Params _params, ExplorerPainter explorerPainter, InnerTabPage parentTabPage)
 {
     this.parentTabPage   = parentTabPage;
     this._params         = _params;
     this.explorerPainter = explorerPainter;
 }