Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            TextViewModel tv = new TextViewModel()
            {
                NoteID           = 0,
                DirectorMessage  = textBoxDirMessage.Text,
                MySubject        = textBoxSubject.Text,
                TagLine          = textBoxTags.Text,
                MyNote           = markupConverter.ConvertRtfToHtml(rtbDoc.Rtf),
                NoteFileID       = MyFile.Id,
                BaseNoteHeaderID = MybaseId
            };

            if (MyHeader != null)
            {
                Actions.EditNote(Program.MyClient, tv, MyHeader.Id);
            }
            else
            {
                Actions.CreateNote(Program.MyClient, tv);
            }

            Thread.Sleep(400);

            MyParent.Relist();

            Close();
        }
Beispiel #2
0
        private void buttonDelete_Click(object sender, EventArgs e)
        {
            NoteContent noteContent = Actions.GetNoteContent(Program.MyClient, MyFile.Id, baseOrdinal, currentResp);

            Actions.DeleteNote(Program.MyClient, noteContent.NoteHeaderId);

            Thread.Sleep(400);

            MyParentListNotes.Relist();

            Close();
        }