Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
 public FormAnnouncementMgmt()
 {
     InitializeComponent();
     _subformType = SubformType.Show;
 }