예제 #1
0
파일: Form1.cs 프로젝트: a-27m/vssdb
        private void minimizeToolBn_Click(object sender, EventArgs e)
        {
            if ((ActiveMdiChild is MDIChildTemplate) && (ActiveMdiChild != null))
            {
                TerminalAutomat min, old =
                    ((MDIChildTemplate)ActiveMdiChild).machine;


                if (minimizationShower.Visible)
                {
                    minimizationShower.Clear();
                }
                else
                {
                    minimizationShower = new MinimizationPiClasses(this);
                }

                old.ClassesChanged += min_ClassesChanged;
                min = old.GetMinimized();
                old.ClassesChanged -= min_ClassesChanged;

                MDIChildTemplate child = new MDIChildTemplate(min);
                child.MdiParent = this;
                child.Text      = "Minimized automat " +
                                  ((MDIChildTemplate)ActiveMdiChild).Text;

                child.Show();
                minimizationShower.Show();
                minimizationShower.Left = Right - minimizationShower.Width;
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: a-27m/vssdb
 /// <summary>Default window constructor</summary>
 public Form1()
 {
     InitializeComponent();
     WindowState        = FormWindowState.Maximized;
     minimizationShower = new MinimizationPiClasses(this);
 }