Beispiel #1
0
        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");
            }
        }
Beispiel #2
0
        //
        //收放
        //
        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");
            }
        }
Beispiel #3
0
        //
        //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");
            }
        }