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 Label_Click(object sender, EventArgs e) { Label lbl = sender as Label; if (lbl == LblConsole) { ViewMethod.ContracAndAmplifica(LvConsole); } if (lbl == LblRegustriy) { ViewMethod.ContracAndAmplifica(LvRegustry); } if (lbl == LblSys) { ViewMethod.ContracAndAmplifica(LvSys); } if (lbl == LblCtrlPnl) { ViewMethod.ContracAndAmplifica(LvCtrlPnl); } if (lbl == LblRunTool) { ViewMethod.ContracAndAmplifica(LvRunTool); } if (lbl == LblTaskMgr) { ViewMethod.ContracAndAmplifica(LvTaskMgr); } if (lbl == LblCmd) { ViewMethod.ContracAndAmplifica(LvCmd); } if (lbl == LblPS) { ViewMethod.ContracAndAmplifica(LvPS); } if (lbl == LblBListTitleN) { ViewMethod.ContracAndAmplifica(PnlBList); } if (lbl == LblWListTN) { ViewMethod.ContracAndAmplifica(PnlWList); } }
// //收放 // 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"); } }