Example #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);
         }
     }
 }
Example #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);
         }
     }
 }