Exemple #1
0
        public void Initialize(Object _OwnerForm, int _ProjectType)
        {
            this.Owner  = (Form)_OwnerForm;
            ProjectType = (eProjectType)_ProjectType;

            if (ProjectType == eProjectType.NONE)
            {
                MainResultNoneWnd = new ucMainResultNone(LastRecipeName);
                MainResultNoneWnd.ScreenshotEvent += new ucMainResultNone.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultNoneWnd);
            }

            else if (ProjectType == eProjectType.BLOWER)
            {
                MainResultIDWnd = new ucMainResultID(LastRecipeName);
                MainResultIDWnd.ScreenshotEvent += new ucMainResultID.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultIDWnd);
            }

            else if (ProjectType == eProjectType.DISPENSER)
            {
                MainResultLeadWnd = new ucMainResultLead(LastRecipeName);
                MainResultLeadWnd.ScreenshotEvent += new ucMainResultLead.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultLeadWnd);
            }

            else if (ProjectType == eProjectType.SORTER)
            {
                MainResultSorterWnd = new ucMainResultSorter(LastRecipeName);

                panelMain.Controls.Add(MainResultSorterWnd);
            }

            SetWindowLocation(1482, 148);
        }