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