Exemple #1
0
        private void записьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StandartNote sn = new StandartNote(path, nast, category);

            sn.MdiParent = this;
            sn.Show();
        }
Exemple #2
0
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null || listBox1.SelectedItem.ToString() != "")
     {
         string s   = listBox1.SelectedItem.ToString();
         Note   n01 = new Note();
         foreach (var v in all_notes)
         {
             if (string.Format("{0}.{1}.{2} | {3}",
                               (v.date.Day < 10) ? "0" + v.date.Day.ToString() : v.date.Day.ToString(),
                               (v.date.Month < 10) ? "0" + v.date.Month.ToString() : v.date.Month.ToString(), v.date.Year, v.Title) == s)
             {
                 n01 = v;
             }
         }
         StandartNote stnt = new StandartNote(path, nast, category, n01);
         stnt.MdiParent = this;
         stnt.Show();
     }
 }