예제 #1
0
        /// <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;
        }
예제 #2
0
파일: FrmMain.cs 프로젝트: shenhaocn/12306
 /// <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;
 }