void InMain() { if (this.cmbwarehouse.Text == "") { return; } Comm.warehousecode = this.cmbwarehouse.SelectedValue.ToString(); Comm.warehousename = this.cmbwarehouse.Text; try { Cursor.Current = Cursors.WaitCursor; string x = HttpHelper.HttpPost("getBaseInfo", @"lcCode=" + Comm.lcCode); msg = (Model.Mmsg)JsonConvert.DeserializeObject(x, typeof(Model.Mmsg)); if (msg == null) { throw new Exception("错误信息捕捉失败"); } if (!msg.success) { throw new Exception(msg.msg); } Comm.basein = (Model.MbaseIn)JsonConvert.DeserializeObject(x, typeof(Model.MbaseIn)); if (Comm.basein == null) { throw new Exception("数据信息捕捉失败"); } Cursor.Current = Cursors.Default; } catch (Exception ex) { Cursor.Current = Cursors.Default; MessageBox.Show(ex.Message); return; } frmMain frm = new frmMain(); //frmMenuPic frm = new frmMenuPic(); frm.ShowDialog(); panel1.Visible = false; this.txtpassword.Text = ""; this.txtuser.Text = ""; this.txtuser.Focus(); }
private void pictureBox15_Click(object sender, EventArgs e) { frmMain o = new frmMain(); o.ShowDialog(); }