示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Keyboard.xaml"
                ((VirtualKeyboard.Keyboard)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\Keyboard.xaml"
                ((VirtualKeyboard.Keyboard)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:

            #line 31 "..\..\Keyboard.xaml"
                ((System.Windows.Controls.Label)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.bn_Close = ((UserInterface.UserButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
        //---------------------------------------------------------------------------

        /**
         * @fn		private void fn_SetPage(UserButton bn)
         * @brief	페이지 변경 함수.
         * @return	void
         * @param	UserButton bn
         * @remark
         * - 이전 버튼 배경을 Normal로 변경.
         * - 현재 버튼의 String을 Check해서 Frame Content에 Page Class Set.
         * @author	선경규(Kyeong Kyu - Seon)
         * @date	2020/3/9  16:30
         */
        private void fn_SetPage(UserButton bn)
        {
            if (m_bnPrev != null)
            {
                m_bnPrev.Background = G_COLOR_BTNNORMAL;
            }
            bn.Background = G_COLOR_BTNCLICKED;

            m_bnPrev = bn;

            string strName = bn.Content as string;

            if (strName == "Polishing")
            {
                frame.Content = mc_Polishing;
            }
            else if (strName == "Cleaning")
            {
                frame.Content = mc_Cleaning;
            }
            else if (strName == "Inspection Vision")
            {
                //mc_Vision.fn_LoadRecipe(lb_SelRecipe.Text as string);
                frame.Content = mc_InspectionVision;
            }
        }
示例#3
0
        //---------------------------------------------------------------------------
        private void m_fn_SetPage(UserInterface.UserButton bn)
        {
            string strName = bn.Content as string;
            string sPath;

            sPath       = UserFile.fn_GetExePath();
            _strLogType = "LOG\\";


            if (_prevButton != null)
            {
                _prevButton.Background = G_COLOR_BTNNORMAL;
            }

            bn.Background = G_COLOR_BTNCLICKED;

            if (strName == "EVENT")
            {
                _strLogType += "EVENT";
            }
            else if (strName == "ALARM")
            {
                _strLogType += "ALARM";
            }
            else if (strName == "TRANSFER")
            {
                _strLogType += "TRANSFER";
            }
            else if (strName == "PMC")
            {
                _strLogType += "PMC";
            }
            else if (strName == "LOT")
            {
                _strLogType += "LOT";
            }
            else if (strName == "VISION")
            {
                _strLogType += "VISION";
            }
            else if (strName == "TRACE")
            {
                _strLogType += "TRACE";
            }

            _strLogType += "\\";
            string[] strPaths = UserFile.fn_GetFileList(sPath + _strLogType);

            lvLogList.ItemsSource = strPaths;

            lbLogInfo.Items.Clear();

            _prevButton = bn;

            fn_LogItemDisplay(0);

            //for csv
            m_sSelFilePath = sPath + _strLogType;
        }
示例#4
0
        //---------------------------------------------------------------------------
        private void m_fn_SetPage(UserInterface.UserButton bn)
        {
            string strName = bn.Content as string;

            if (_prevButton != null)
            {
                _prevButton.Background = UserConst.G_COLOR_BTNNORMAL;
            }

            bn.Background = UserConst.G_COLOR_BTNCLICKED;

            if (strName == "IO")
            {
                frame.Content = mc_Io;
            }
            else if (strName == "OPTION")
            {
                frame.Content = mc_Option;
            }
            else if (strName == "VISION")
            {
                frame.Content = mc_Vision;
            }
            else if (strName == "ERROR")
            {
                frame.Content = mc_Error;
            }
            else if (strName == "MOTOR")
            {
                frame.Content = mc_Motor;
            }
            else if (strName == "LAMP/BUZZ")
            {
                frame.Content = mc_Lamp;
            }
            else if (strName == "MANUAL")
            {
                frame.Content = mc_Man;
            }
            else if (strName == "ACTUATOR")
            {
                frame.Content = mc_Actr;
            }

            //
            _prevButton = bn;
            m_nNowPage  = Convert.ToInt32(bn.Tag);
        }
        //---------------------------------------------------------------------------
        private void m_fn_SetPage(UserInterface.UserButton bn)
        {
            string strName = bn.Content as string;

            if (_prevButton != null)
            {
                _prevButton.Background = UserConst.G_COLOR_BTNNORMAL;
            }

            bn.Background = UserConst.G_COLOR_BTNCLICKED;

            if (strName == "MOTOR")
            {
                frame.Content = mc_Motor;
            }
            else if (strName == "FLAG")
            {
                frame.Content = mc_Flag;
            }
            else if (strName == "ONE CYCLE")
            {
                frame.Content = mc_Shot;
            }
            else if (strName == "OPTION")
            {
                frame.Content = mc_Option;
            }
            else if (strName == "ACS DATA")
            {
                frame.Content = mc_ACSData;
            }
            else if (strName == "TOOL ALIGN")
            {
                frame.Content = mc_Vision;
            }
            else
            {
                frame.Content = mc_Option;
            }

            _prevButton = bn;
            m_nNowPage  = Convert.ToInt32(bn.Tag);
        }
示例#6
0
        //---------------------------------------------------------------------------
        private void MenuChange(object sender, RoutedEventArgs e)
        {
            UserInterface.UserButton menubn = (sender as UserInterface.UserButton);

            m_fn_SetPage(menubn);
        }
 //---------------------------------------------------------------------------
 private void menuMotor_Click(object sender, RoutedEventArgs e)
 {
     UserInterface.UserButton menubn = (sender as UserInterface.UserButton);
     m_fn_SetPage(menubn);
 }