예제 #1
0
        public CreateNote(NoteFile myfile, long baseId, NoteHeader noteHeader, NoteContent noteContent, IEnumerable <Tags> noteTags, IRelistAble myParent)
        {
            InitializeComponent();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmReplace));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

            currentFile = "";

            MyFile   = myfile;
            MybaseId = baseId;
            MyParent = myParent;

            MyHeader  = noteHeader;
            MyContent = noteContent;
            MyTags    = noteTags;

            if (MyHeader != null)
            {
                this.Text              = @"Edit Note";
                textBoxSubject.Text    = MyHeader.NoteSubject;
                textBoxDirMessage.Text = MyContent.DirectorMessage;
                // tags

                rtbDoc.Rtf = MarkupConverter.HtmlToRtfConverter.ConvertHtmlToRtf(MyContent.NoteBody);
            }
        }
예제 #2
0
        //private int checkPrint;


        public DisplayNote(NoteFile myFile, int noteOrdinal, IRelistAble myParentListNotes)
        {
            InitializeComponent();

            MyFile            = myFile;
            baseOrdinal       = noteOrdinal;
            MyParentListNotes = myParentListNotes;
            currentResp       = 0;

            label1.Text = MyFile.NoteFileName;
            label2.Text = MyFile.NoteFileTitle;

            var noteHeader = Actions.GetDislayNoteHeadersWithResponses(Program.MyClient, MyFile.Id, noteOrdinal);

            Myheadlist = noteHeader.ToList();
            respCount  = Myheadlist.Count - 1;

            MyAccess = Actions.GetAccess(Program.MyClient, MyFile.Id);

            SetStuff();
        }