Example #1
0
 private void btnAddMemo_Click(object sender, EventArgs e)
 {
     try
     {
         Memo.Memo memo = new Memo.Memo(PROF_IT.Common.Enumerations.TypeForm.NewForm);
         if (memo.ShowDialog() == DialogResult.OK)
         {
             memo.MemoMember.Material = this.MaterialMember;
             memo.MemoMember.State    = PROF_IT.Common.Enumerations.ObjectState.Created;
             if (MaterialMember.Memos == null)
             {
                 MaterialMember.Memos = new MemoObjectCollection();
             }
             MaterialMember.Memos.Add(memo.MemoMember);
             gdcMemo.DataSource = MaterialMember.Memos.GetActive();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception thisException = exception1;
         Management.ShowException(thisException);
     }
 }
Example #2
0
 private void btnAddMemo_Click(object sender, EventArgs e)
 {
     try
     {
         Memo.Memo memo = new Memo.Memo(PROF_IT.Common.Enumerations.TypeForm.NewForm);
         if (memo.ShowDialog() == DialogResult.OK)
         {
             memo.MemoMember.Material = this.MaterialMember;
             memo.MemoMember.State = PROF_IT.Common.Enumerations.ObjectState.Created;
             if (MaterialMember.Memos == null)
                 MaterialMember.Memos = new MemoObjectCollection();
             MaterialMember.Memos.Add(memo.MemoMember);
             gdcMemo.DataSource = MaterialMember.Memos.GetActive();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception thisException = exception1;
         Management.ShowException(thisException);
     }
 }
Example #3
0
 public void RemoveMemo(Memo.Memo memo)
 {
     memo.ClearTags();
     memo.ClearContainedFolders();
     _container.Remove(memo);
 }