private void AddData() { DeviCodeTextEdit.Properties.ReadOnly = false; model = new SRExcute.DeviceExecute(); deviceExecuteBindingSource.DataSource = model; model.CreateDate = DateTime.Now; model.CreatePerson = context.UserName; }
private void InitData() { using (SRExcute.DevExecuteServiceClient client = new SRExcute.DevExecuteServiceClient()) { var ret = client.GetDeviceExecute(context.SessionID, strDeviCode); if (ret.IsSuccess) { model = ret.Data; this.Invoke((MethodInvoker) delegate() { deviceExecuteBindingSource.DataSource = model; }); } else { ClsMsg.ShowErrMsg(ret.Message); } } }