예제 #1
0
        public bool MoveToBottomPage(BottomPageInfo ChangePage)
        {
            if (BottomCurrentPage.Key != null)
            {
                BottomCurrentPage.Value.Hide();
            }

            KeyValuePair <BottomPageInfo, Form> findCurrentPage;

            findCurrentPage = BottomFormMatchingList.FirstOrDefault(listItem => listItem.Key == ChangePage);

            // 찾는 화면이 없을때
            if (findCurrentPage.Key == null)
            {
                MessageBox.Show("PageInfo 에 해당하는 화면이 없습니다.");

                return(false);
            }

            findCurrentPage.Value.Show();

            BottomCurrentPage = findCurrentPage;

            return(true);
        }
예제 #2
0
 public void SetNextBottomPage(BottomPageInfo page)
 {
     NextBottomPage = page;
 }
예제 #3
0
 public void SetPrevBottomPage(BottomPageInfo page)
 {
     PrevBottomPage = page;
 }
예제 #4
0
        private void PageCreationSetting()
        {
            PageInfo PageInfoFormTop = new PageInfo();

            PageInfo PageInfoFormSubBottom = new PageInfo();

            //PageInfo PageInfoFormMain = new PageInfo();

            PageInfo PageInfoFormMain = new PageInfo()
            {
                BigClassifyingNumber = 0, SmallClassifyingNumber = 0
            };

            BottomPageInfo PageInfoFormMainBottom       = new BottomPageInfo();
            BottomPageInfo PageInfoFormEmptyBottom      = new BottomPageInfo();
            BottomPageInfo PageInfoFormDeviceDataBottom = new BottomPageInfo();

            PageInfo PageInfoFormFullAuto = new PageInfo()
            {
                BigClassifyingNumber = 1, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoFormFullAuto_1 = new PageInfo()
            {
                BigClassifyingNumber = 1, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoFormFullAuto_2 = new PageInfo()
            {
                BigClassifyingNumber = 1, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoFormFullAuto_3 = new PageInfo()
            {
                BigClassifyingNumber = 1, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoFormManualOP = new PageInfo()
            {
                BigClassifyingNumber = 2, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoFormManualOP_1 = new PageInfo()
            {
                BigClassifyingNumber = 2, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoFormManualOP_2 = new PageInfo()
            {
                BigClassifyingNumber = 2, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoFormManualOP_3 = new PageInfo()
            {
                BigClassifyingNumber = 2, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoFormDeviceData = new PageInfo()
            {
                BigClassifyingNumber = 3, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoFormDeviceData_1 = new PageInfo()
            {
                BigClassifyingNumber = 3, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoFormDeviceData_2 = new PageInfo()
            {
                BigClassifyingNumber = 3, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoFormDeviceData_3 = new PageInfo()
            {
                BigClassifyingNumber = 3, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoEngineerMaint = new PageInfo()
            {
                BigClassifyingNumber = 4, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoAxisOperation = new PageInfo()
            {
                BigClassifyingNumber = 4, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoIOCheck = new PageInfo()
            {
                BigClassifyingNumber = 4, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoAxisParameter = new PageInfo()
            {
                BigClassifyingNumber = 4, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoOperatorMaint = new PageInfo()
            {
                BigClassifyingNumber = 5, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoOperatorMaint_1 = new PageInfo()
            {
                BigClassifyingNumber = 5, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoOperatorMaint_2 = new PageInfo()
            {
                BigClassifyingNumber = 5, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoOperatorMaint_3 = new PageInfo()
            {
                BigClassifyingNumber = 5, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoMachineMaint = new PageInfo()
            {
                BigClassifyingNumber = 6, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoMachineMaint_1 = new PageInfo()
            {
                BigClassifyingNumber = 6, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoMachineMaint_2 = new PageInfo()
            {
                BigClassifyingNumber = 6, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoMachineMaint_3 = new PageInfo()
            {
                BigClassifyingNumber = 6, SmallClassifyingNumber = 4
            };

            PageInfo PageInfoLaserMaint = new PageInfo()
            {
                BigClassifyingNumber = 7, SmallClassifyingNumber = 1
            };
            PageInfo PageInfoLaserMaint_1 = new PageInfo()
            {
                BigClassifyingNumber = 7, SmallClassifyingNumber = 2
            };
            PageInfo PageInfoLaserMaint_2 = new PageInfo()
            {
                BigClassifyingNumber = 7, SmallClassifyingNumber = 3
            };
            PageInfo PageInfoLaserMaint_3 = new PageInfo()
            {
                BigClassifyingNumber = 7, SmallClassifyingNumber = 4
            };

            m_FormMain.SetFullAutoPage(PageInfoFormFullAuto, PageInfoFormEmptyBottom);
            m_FormMain.SetManualOPPage(PageInfoFormManualOP, PageInfoFormEmptyBottom);
            m_FormMain.SetDeviceDataPage(PageInfoFormDeviceData, PageInfoFormDeviceDataBottom);

            m_FormMain.SetOperatorMaintPage(PageInfoOperatorMaint, PageInfoFormEmptyBottom);
            m_FormMain.SetMachineMaintPage(PageInfoMachineMaint, PageInfoFormEmptyBottom);
            m_FormMain.SetEngineerMaintPage(PageInfoEngineerMaint, PageInfoFormEmptyBottom);
            m_FormMain.SetLaserMaintPage(PageInfoLaserMaint, PageInfoFormEmptyBottom);

            m_FormFullAuto.SetPrevPage(PageInfoFormMain);
            m_FormFullAuto.SetNextPage(PageInfoFormFullAuto_1);
            m_FormFullAuto.SetNextBottomPage(PageInfoFormMainBottom);

            m_FormFullAuto_1.SetPrevPage(PageInfoFormFullAuto);
            m_FormFullAuto_1.SetNextPage(PageInfoFormFullAuto_2);

            m_FormFullAuto_2.SetPrevPage(PageInfoFormFullAuto_1);
            m_FormFullAuto_2.SetNextPage(PageInfoFormFullAuto_3);

            m_FormFullAuto_3.SetPrevPage(PageInfoFormFullAuto_2);
            m_FormFullAuto_3.SetNextPage(null);

            m_FormManualOP.SetPrevPage(PageInfoFormMain);
            m_FormManualOP.SetNextPage(PageInfoFormManualOP_1);
            m_FormManualOP.SetNextBottomPage(PageInfoFormMainBottom);

            m_FormManualOP_1.SetPrevPage(PageInfoFormManualOP);
            m_FormManualOP_1.SetNextPage(PageInfoFormManualOP_2);

            m_FormManualOP_2.SetPrevPage(PageInfoFormManualOP_1);
            m_FormManualOP_2.SetNextPage(PageInfoFormManualOP_3);

            m_FormManualOP_3.SetPrevPage(PageInfoFormManualOP_2);
            m_FormManualOP_3.SetNextPage(null);

            m_FormDeviceData.SetPrevPage(PageInfoFormMain);
            m_FormDeviceData.SetPrevBottomPage(PageInfoFormMainBottom);
            m_FormDeviceData.SetNextPage(PageInfoFormDeviceData_1);
            m_FormDeviceData.SetNextBottomPage(PageInfoFormEmptyBottom);

            m_FormDeviceData_1.SetPrevPage(PageInfoFormDeviceData);
            m_FormDeviceData_1.SetPrevBottomPage(PageInfoFormDeviceDataBottom);
            m_FormDeviceData_1.SetNextPage(PageInfoFormDeviceData_2);
            m_FormDeviceData_1.SetNextBottomPage(PageInfoFormEmptyBottom);

            m_FormDeviceData_2.SetPrevPage(PageInfoFormDeviceData);
            m_FormDeviceData_2.SetPrevBottomPage(PageInfoFormDeviceDataBottom);
            m_FormDeviceData_2.SetNextPage(PageInfoFormDeviceData_3);
            m_FormDeviceData_2.SetNextBottomPage(PageInfoFormEmptyBottom);

            m_FormDeviceData_3.SetPrevPage(PageInfoFormDeviceData_2);
            m_FormDeviceData_2.SetPrevBottomPage(PageInfoFormEmptyBottom);
            m_FormDeviceData_3.SetNextPage(null);
            m_FormDeviceData_3.SetNextBottomPage(null);

            m_FormEngineerMaint.SetPrevPage(PageInfoFormMain);
            m_FormEngineerMaint.SetAxisOPPage(PageInfoAxisOperation);
            m_FormEngineerMaint.SetIOPage(PageInfoIOCheck);
            m_FormEngineerMaint.SetNextBottomPage(PageInfoFormMainBottom);

            m_AxisOperation.SetPrevPage(PageInfoEngineerMaint);
            m_AxisOperation.SetNextPage(PageInfoAxisParameter);
            m_AxisParameter.SetPrevPage(PageInfoAxisOperation);
            m_IOCheck.SetPrevPage(PageInfoEngineerMaint);

            m_FormOperatorMaint.SetPrevPage(PageInfoFormMain);
            m_FormOperatorMaint.SetNextPage(PageInfoOperatorMaint_1);
            m_FormOperatorMaint.SetNextBottomPage(PageInfoFormMainBottom);

            m_FormOperatorMaint_1.SetPrevPage(PageInfoOperatorMaint);
            m_FormOperatorMaint_1.SetNextPage(PageInfoOperatorMaint_2);

            m_FormOperatorMaint_2.SetPrevPage(PageInfoOperatorMaint_1);
            m_FormOperatorMaint_2.SetNextPage(PageInfoOperatorMaint_3);

            m_FormOperatorMaint_3.SetPrevPage(PageInfoOperatorMaint_2);
            m_FormOperatorMaint_3.SetNextPage(null);

            m_FormMachineMaint.SetPrevPage(PageInfoFormMain);
            m_FormMachineMaint.SetNextPage(PageInfoMachineMaint_1);
            m_FormMachineMaint.SetNextBottomPage(PageInfoFormMainBottom);

            m_FormMachineMaint_1.SetPrevPage(PageInfoMachineMaint);
            m_FormMachineMaint_1.SetNextPage(PageInfoMachineMaint_2);

            m_FormMachineMaint_2.SetPrevPage(PageInfoMachineMaint_1);
            m_FormMachineMaint_2.SetNextPage(PageInfoMachineMaint_3);

            m_FormMachineMaint_3.SetPrevPage(PageInfoMachineMaint_2);
            m_FormMachineMaint_3.SetNextPage(null);

            m_FormLaserMaint.SetPrevPage(PageInfoFormMain);
            m_FormLaserMaint.SetNextPage(PageInfoLaserMaint_1);
            m_FormLaserMaint.SetNextBottomPage(PageInfoFormMainBottom);

            m_FormLaserMaint_1.SetPrevPage(PageInfoLaserMaint);
            m_FormLaserMaint_1.SetNextPage(PageInfoLaserMaint_2);

            m_FormLaserMaint_2.SetPrevPage(PageInfoLaserMaint_1);
            m_FormLaserMaint_2.SetNextPage(PageInfoLaserMaint_3);

            m_FormLaserMaint_3.SetPrevPage(PageInfoLaserMaint_2);
            m_FormLaserMaint_3.SetNextPage(null);

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormTop, m_FormTop));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormSubBottom, m_FormSubBottom));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormMain, m_FormMain));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormFullAuto, m_FormFullAuto));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormFullAuto_1, m_FormFullAuto_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormFullAuto_2, m_FormFullAuto_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormFullAuto_3, m_FormFullAuto_3));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormManualOP, m_FormManualOP));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormManualOP_1, m_FormManualOP_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormManualOP_2, m_FormManualOP_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormManualOP_3, m_FormManualOP_3));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormDeviceData, m_FormDeviceData));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormDeviceData_1, m_FormDeviceData_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormDeviceData_2, m_FormDeviceData_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoFormDeviceData_3, m_FormDeviceData_3));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoOperatorMaint, m_FormOperatorMaint));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoOperatorMaint_1, m_FormOperatorMaint_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoOperatorMaint_2, m_FormOperatorMaint_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoOperatorMaint_3, m_FormOperatorMaint_3));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoMachineMaint, m_FormMachineMaint));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoMachineMaint_1, m_FormMachineMaint_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoMachineMaint_2, m_FormMachineMaint_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoMachineMaint_3, m_FormMachineMaint_3));

            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoEngineerMaint, m_FormEngineerMaint));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoAxisOperation, m_AxisOperation));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoAxisParameter, m_AxisParameter));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoIOCheck, m_IOCheck));


            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoLaserMaint, m_FormLaserMaint));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoLaserMaint_1, m_FormLaserMaint_1));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoLaserMaint_2, m_FormLaserMaint_2));
            FormMatchingList.Add(new KeyValuePair <PageInfo, Form>(PageInfoLaserMaint_3, m_FormLaserMaint_3));

            BottomFormMatchingList.Add(new KeyValuePair <BottomPageInfo, Form>(PageInfoFormMainBottom, m_FormMainBottom));
            BottomFormMatchingList.Add(new KeyValuePair <BottomPageInfo, Form>(PageInfoFormEmptyBottom, m_FormEmptyBottom));
            BottomFormMatchingList.Add(new KeyValuePair <BottomPageInfo, Form>(PageInfoFormDeviceDataBottom, m_FormDeviceDataBottom));

            // Top Page : 고정 Page
            CurrentPage = new KeyValuePair <PageInfo, Form>(PageInfoFormTop, m_FormTop);
            MoveToPage(CurrentPage.Key);

            // Sub Bottom Page : 고정 Page
            CurrentPage = new KeyValuePair <PageInfo, Form>(PageInfoFormSubBottom, m_FormSubBottom);
            MoveToPage(CurrentPage.Key);

            // MainFrame Page
            CurrentPage = new KeyValuePair <PageInfo, Form>(PageInfoFormMain, m_FormMain);
            PrevPage    = PageInfoFormMain;
            MoveToPage(CurrentPage.Key);

            // MainFrame Bottom Page
            BottomCurrentPage = new KeyValuePair <BottomPageInfo, Form>(PageInfoFormMainBottom, m_FormMainBottom);
            MoveToBottomPage(BottomCurrentPage.Key);
        }
예제 #5
0
 public void SetEngineerMaintPage(PageInfo page, BottomPageInfo Bottompage)
 {
     EngineerMaintPage       = page;
     EngineerMaintBottomPage = Bottompage;
 }
예제 #6
0
 public void SetLaserMaintPage(PageInfo page, BottomPageInfo Bottompage)
 {
     LaserMaintPage       = page;
     LaserMaintBottomPage = Bottompage;
 }
예제 #7
0
 public void SetMachineMaintPage(PageInfo page, BottomPageInfo Bottompage)
 {
     MachineMaintPage       = page;
     MachineMaintBottomPage = Bottompage;
 }
예제 #8
0
 public void SetOperatorMaintPage(PageInfo page, BottomPageInfo Bottompage)
 {
     OperatorMaintPage       = page;
     OperatorMaintBottomPage = Bottompage;
 }
예제 #9
0
 public void SetDeviceDataPage(PageInfo page, BottomPageInfo Bottompage)
 {
     DeviceDataPage       = page;
     DeviceDataBottomPage = Bottompage;
 }
예제 #10
0
 public void SetManualOPPage(PageInfo page, BottomPageInfo Bottompage)
 {
     ManualOPPage       = page;
     ManualOPBottomPage = Bottompage;
 }
예제 #11
0
 public void SetFullAutoPage(PageInfo page, BottomPageInfo Bottompage)
 {
     FullAutoPage       = page;
     FullAutoBottomPage = Bottompage;
 }