/// <summary> /// 选择乘客 /// </summary> void btnPassenger_Click(object sender, EventArgs e) { if (AppContext.LoginUser == null) { DialogResult result = MessageBox.Show(this, "请先登录。", "提示", MessageBoxButtons.OKCancel); if (result == DialogResult.OK) { if (this.Login() == DialogResult.OK) { goto Label_001; } } } else { goto Label_001; } return; Label_001: using (FrmSelect frmSelect = new FrmSelect(this.bcPassenger)) { frmSelect.ShowDialog(); } return; }
/// <summary> /// 选择乘客 /// </summary> void btnPassenger_Click(object sender, EventArgs e) { if (AppContext.LoginUser == null) { DialogResult result = MessageBox.Show(this, "请先登录。", "提示", MessageBoxButtons.OKCancel); if (result == DialogResult.OK) { if (this.Login() == DialogResult.OK) { goto Label_001; } } } else { goto Label_001; } return; Label_001: using (FrmSelect frmSelect = new FrmSelect(this.bcPassenger)) { frmSelect.ShowDialog(); } return; }