コード例 #1
0
ファイル: AdmForm.cs プロジェクト: JustMinely/Vexease
        private void BtnYorN_MouseUp(object sender, MouseEventArgs e)
        {
            BtnYorN btnYorN = new BtnYorN();

            if (btnYorN == BtnWListYorN)
            {
                ViewMethod.ContracAndAmplifica(PnlWList, BtnWListYorN, "W_Clicked");
            }
            if (btnYorN == BtnBListYorN)
            {
                ViewMethod.ContracAndAmplifica(PnlBList, BtnBListYorN, "B_Clicked");
            }
            if (btnYorN == BtnListPathYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnListPathYorN, "P_Load");
            }
        }
コード例 #2
0
ファイル: AdmForm.cs プロジェクト: JustMinely/Vexease
        //
        //收放
        //
        private void BtnYorN_Click(object sender, EventArgs e)
        {
            BtnYorN btnYorN = sender as BtnYorN;

            if (btnYorN == BtnBListYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnBListYorN, "B_Clicked");
                ViewMethod.ContracAndAmplifica(PnlBList, BtnBListYorN, "B_Clicked");
            }
            if (btnYorN == BtnWListYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnWListYorN, "W_Clicked"); ViewMethod.ContracAndAmplifica(PnlWList, BtnWListYorN, "W_Clicked");
            }
            if (btnYorN == BtnListPathYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnListPathYorN, "P_Clicked");
            }
        }
コード例 #3
0
ファイル: AdmForm.cs プロジェクト: JustMinely/Vexease
        //
        //checkbutton-状态列表的收缩
        //
        private void BtnYorN_Load(object sender, EventArgs e)
        {
            BtnYorN btnYorN = sender as BtnYorN;

            if (btnYorN == BtnBListYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnBListYorN, "B_Load");
                ViewMethod.Contraction(BtnBListYorN, PnlBList, "B_Load");
            }
            if (btnYorN == BtnWListYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnWListYorN, "W_Load");
                ViewMethod.Contraction(BtnWListYorN, PnlWList, "W_Load");
            }
            if (btnYorN == BtnListPathYorN)
            {
                BtnYorNCtrl.CheckYorN(BtnListPathYorN, "P_Load");
            }
        }
コード例 #4
0
ファイル: AdmForm.cs プロジェクト: JustMinely/Vexease
        private void BtnYorNStatus_MouseUp(object sender, MouseEventArgs e)
        {
            BtnYorN btnYorN = sender as BtnYorN;

            if (btnYorN == BtnRegustriyYorN)
            {
                ViewMethod.StatusChange(btnYorN, LvRegustry, "Registry_Clicked");
            }
            if (btnYorN == BtnConsoleYorN)
            {
                ViewMethod.StatusChange(btnYorN, LvConsole, "Mmc_Clicked");
            }
            if (btnYorN == BtnSysYorN)
            {
                ViewMethod.StatusChange(BtnSysYorN, LvSys, "Sys_Clicked");
            }
            if (btnYorN == BtnCtrlPnlYorN)
            {
                ViewMethod.StatusChange(BtnCtrlPnlYorN, LvCtrlPnl, "CtrlPnl_Clicked");
            }
            if (btnYorN == BtnRunToolYorN)
            {
                ViewMethod.StatusChange(BtnRunToolYorN, LvRunTool, "RunTool_Clicked");
            }
            if (btnYorN == BtnTaskMgrYorN)
            {
                ViewMethod.StatusChange(BtnTaskMgrYorN, LvTaskMgr, "Taskmgr_Clicked");
            }
            if (btnYorN == BtnCmdYorN)
            {
                ViewMethod.StatusChange(BtnCmdYorN, LvCmd, "Cmd_Clicked");
            }
            if (btnYorN == BtnPSYorN)
            {
                ViewMethod.StatusChange(BtnPSYorN, LvPS, "PwrShell_Clicked");
            }
        }