Пример #1
0
 Boolean CheckWinListSignificant(string _sVal)
 {
     if (CheckListSignificant(_sVal, true))
     {
         var oList = _sVal.Split(new string[] { "," }, StringSplitOptions.None).ToList().Select(x => Convert.ToInt32(x)).ToList();
         if (oList.Count == 7)
         {
             oData = new Gioble()
             {
                 isLock = true, oArr = oList
             }
         }
         ;
         else if (MessageBox.Show("請問您輸入的是春節大紅包嗎?", "請確認", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             oData = new Gioble()
             {
                 isLock = true, isSpecial = true, oArr = oList
             }
         }
         ;
         else
         {
             return(false);
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 void LockBtn(Boolean _Val)
 {
     if (_Val)
     {
         label1.Text      = textBox1.Text;
         textBox2.Text    = "";
         button1.Text     = "解鎖";
         textBox1.Enabled = false;
         textBox2.Enabled = true;
         oData.isLock     = true;
     }
     else
     {
         textBox1.Text    = "";
         textBox2.Text    = "";
         button1.Text     = "鎖定";
         textBox1.Enabled = true;
         textBox2.Enabled = false;
         oData            = new Gioble()
         {
         };
     }
 }