/// <summary> /// Prepares itself /// </summary> protected void Prepare() { panel = new PanelFormula("Condition", this, splitContainerMain.Panel1.Width, 200, "abcdfghijklmnopqrstuvwxyz", false, null, null); panel.Dock = DockStyle.Fill; splitContainerMain.Panel1.Controls.Add(panel); panel.Formula = filter.Formula; check(); pConsumer = new PanelConsumer(filter, filter.VariableDictionary, filter.Variables); panelMeaCenter.Controls.Add(pConsumer); fillConst(); }
private static void control_Resize(object sender, EventArgs args) { Control cont = sender as Control; foreach (Control c in cont.Controls) { c.Width = cont.Width - 40; if (c is PanelFormula) { PanelFormula p = c as PanelFormula; p.setBkgnd(); } c.Refresh(); } }