Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DateTime _date   = DateTime.Now;
            string   _sTitle = _date.ToLongDateString() + ' ' + textBox1.Text +
                               ' ' + textBox2.Text;
            Notka _Notka = new Notka(_sTitle, _date.ToLongDateString(),
                                     richTextBox1.Text, textBox1.Text,
                                     textBox2.Text, textBox3.Text);

            _BazaNotka.Dodaj(_Notka);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DateTime _date   = DateTime.Now;
            string   _sTitle = _date.ToString("g") + ' ' + textBox1.Text +
                               ' ' + textBox2.Text;
            Notka _Notka = new Notka(_sTitle, _date.ToString("g"),
                                     richTextBox1.Text, textBox1.Text,
                                     textBox3.Text, textBox2.Text);

            _BazaNotka.Dodaj(_Notka);
            ZapisBazy();
            FillTable();
            ClearTextboxes();
        }