Exemplo n.º 1
0
 private void replay()
 {
     if (string.IsNullOrEmpty(ContentBox.Text) ||
         string.IsNullOrEmpty(ReplayBox.Text))
     {
         return;
     }
     bd.Gettid(ReplayBox.Text);
     if (bd.replay(bd.barname, ContentBox.Text))
     {
         if (bd.getCodeType() == 1)
         {
             Form6 f6 = new Form6(bd.GetPostCode());
             f6.StartPosition = this.StartPosition;
             f6.SendEvent    += new Form6.SendCode(GetCode);
             f6.ShowDialog(this);
         }
         else if (bd.getCodeType() == 4)
         {
             Form7 f7 = new Form7(bd.GetPostCode());
             f7.StartPosition = this.StartPosition;
             f7.SendEvent    += new Form7.SendCode(GetCode);
             f7.ShowDialog(this);
         }
     }
 }
Exemplo n.º 2
0
 private void replay()
 {
     if (bd.replay(bd.barname, ContentBox.Text, TitleBox.Text))
     {
         if (bd.getCodeType() == 1)
         {
             Form6 f6 = new Form6(bd.GetPostCode());
             f6.StartPosition = this.StartPosition;
             f6.SendEvent    += new Form6.SendCode(GetCode);
             f6.ShowDialog(this);
         }
         else if (bd.getCodeType() == 4)
         {
             Form7 f7 = new Form7(bd.GetPostCode());
             f7.StartPosition = this.StartPosition;
             f7.SendEvent    += new Form7.SendCode(GetCode);
             f7.ShowDialog(this);
         }
     }
 }
Exemplo n.º 3
0
        void setSignLabel(string s)
        {
            var word = s.Split(',');

            label1.Text = "正在签到 " + word[0];
            if (word[1] == "fail")
            {
                if (bd.getCodeType() == 1)
                {
                    Form6 f6 = new Form6(bd.GetPostCode());
                    f6.StartPosition = this.StartPosition;
                    f6.SendEvent    += new Form6.SendCode(setSignCode);
                    f6.ShowDialog(this);
                }
                else if (bd.getCodeType() == 4)
                {
                    Form7 f7 = new Form7(bd.GetPostCode());
                    f7.StartPosition = this.StartPosition;
                    f7.SendEvent    += new Form7.SendCode(setSignCode);
                    f7.ShowDialog(this);
                }
            }
        }