Ejemplo n.º 1
0
        private void CreateButton_Click(object sender, RoutedEventArgs e)
        {
            CreationWindow creationWindow = new CreationWindow(ref notes); /*Создали окошко*/

            creationWindow.Owner = this;
            creationWindow.CreationWindowClosed += CreationWindowClosed_React;
            creationWindow.Show();
        }
Ejemplo n.º 2
0
        private void NotesList_ItemDoubleClick(object sender, MouseButtonEventArgs e)
        {
            int            index     = NotesList.SelectedIndex;
            string         tit       = (string)NotesList.Items[index];
            FileStream     note_file = notes.get_file(tit);
            CreationWindow s_window  = new CreationWindow(tit, ref note_file, ref notes);

            s_window.Owner = this;
            s_window.CreationWindowClosed += CreationWindowClosed_React;
            s_window.Show();
        }