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"); } }
// //收放 // 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"); } }
// //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"); } }
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"); } }