/// <summary> /// Set subform type on the property of the subform control /// </summary> /// <param name="destSubformCtrl"></param> private void SetCalledSubformType(MgControl destSubformCtrl) { SubformType subformType = TaskDefinitionId.IsProgram == true ? SubformType.Program : SubformType.Subtask; String mgNumString = DisplayConvertor.Instance.toNum(((int)subformType).ToString(), null, 0); destSubformCtrl.setProp(PropInterface.PROP_TYPE_SUBFORM_TYPE, mgNumString); }
private void btnInsert_Click(object sender, EventArgs e) { SetEnable(true); _subformType = SubformType.Insert; _announcementInfoModelSend = new AnnouncementInfoModelSend(); txtContent.Text = _announcementInfoModelSend.Content; txtTitel.Text = _announcementInfoModelSend.Titel; dtPublishTime.EditValue = DateTime.Now; }
private void btnUpdate_Click(object sender, EventArgs e) { AnnouncementInfoModelGet announcementInfoModelGet = gvAnnouncementInfo.GetFocusedRow() as AnnouncementInfoModelGet; if (announcementInfoModelGet != null) { SetEnable(true); _subformType = SubformType.Edit; _announcementInfoModelSend = new AnnouncementInfoModelSend(); _announcementInfoModelSend.Id = announcementInfoModelGet.Id; } }
public FormAnnouncementMgmt() { InitializeComponent(); _subformType = SubformType.Show; }