Beispiel #1
0
        public FormEditNote(MyNote.Tables.Note note)
        {
            InitializeComponent();
            this.note = note;

            this.txtTitle.Text   = note.Title;
            this.txtContent.Text = note.Content;
        }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            MyNote.Tables.Note note = new Tables.Note();
            note.Title   = this.txtTitle.Text;
            note.Content = this.txtContent.Text;

            this.NewNote = note;

            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }