Example #1
0
        private void AddNoteF(object sender, EventArgs e)
        {
            _SelectedFolderId = (int)sender;
            var m = new AskNameForm();

            m.Question = "Введите название";
            m.Show();
            m.OK += AddNoteF_OK;
        }
Example #2
0
        private void Rename(object sender, EventArgs e)
        {
            if (treeView1.SelectedNode != null)
            {
                var n = new AskNameForm();

                n.Question = "Переименовать";

                n.Show();

                n.OK += RenameNF;
            }
        }
Example #3
0
        private void RenameF(object sender, EventArgs e)
        {
            _SelectedNoteId = null;

            _SelectedFolderId = (int)sender;

            var n = new AskNameForm();

            n.Question = "Переименовать";

            n.Show();

            n.OK += RenameNF;
        }
Example #4
0
        private void AddFolderP(object sender, EventArgs e)
        {
            var m = new AskNameForm();

            m.Question = "Введите название";
            m.Show();
            m.OK += q;

            void q(string s)
            {
                AddFolder(s, 0);

                UpdateNotes();
            }
        }