public void loadHome() { if (lastClick != null) { lastClick.selected = false; } Home.PreviewFrom.Clear(); analyse = new Analyse(); analyse.TopLevel = false; analyse.Parent = this; analyse.Location = new Point(panel1.Width, bunifuSeparator1.Location.Y); analyse.Width = this.Width - panel1.Width; analyse.Height = this.Height - bunifuSeparator1.Location.Y; analyse.Show(); Home.PreviewFrom.Add(analyse); }
private void HomeButton_Click(object sender, EventArgs e) { if (lastClick != null) { lastClick.selected = false; } foreach (Form f in PreviewFrom) { f.Close(); } PreviewFrom.Clear(); Analyse analyse = new Analyse(); resizeLocationForm(analyse); BackButton.Visible = false; HomeButton.Visible = false; }