示例#1
0
 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);
 }
示例#2
0
        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;
        }