public ParamCompare(GCSViews.Configuration config, Hashtable param, Hashtable param2) { InitializeComponent(); this.param = param; this.param2 = param2; this.config = config; processToScreen(); }
private void MenuConfiguration_Click(object sender, EventArgs e) { MyView.Controls.Clear(); GCSViews.Terminal.threadrun = false; // dispose of old else memory leak if (Configuration != null) { try { Configuration.Dispose(); } catch { } } Configuration = new GCSViews.Configuration(); UserControl temp = Configuration; fixtheme(temp); //temp.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; temp.Location = new Point(0, 0); temp.Dock = DockStyle.Fill; temp.ForeColor = Color.White; temp.BackColor = Color.FromArgb(0x26, 0x27, 0x28); temp.Size = MyView.Size; //temp.Parent = MyView; MyView.Controls.Add(temp); }