private void menuItem3_Click(object sender, EventArgs e) { ShowStatus("Uploading..."); this.Refresh(); UpLoad upload = new UpLoad(); upload.UpLoadJob(); ShowStatus("Uploaded Successfully."); }
private void menuItem3_Click(object sender, EventArgs e) { if (MessageBox.Show("准备上传巡检数据,请确认已经联网?", "请确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.OK) { try { ShowStatus("Uploading..."); this.Refresh(); UpLoad upload = new UpLoad(); upload.UpLoadJob(); //upload.UpLoadSpecsBarCode(); ShowStatus("Uploaded Successfully."); } catch (Exception ex) { throw ex; } } }