private void Edit_Note(object sender, RoutedEventArgs e)
        {
            var indexx = dataGrid4.Items.IndexOf(dataGrid4.CurrentItem);
            int omg    = indexx;

            string title = note_sub.Text;
            string body  = note_body.Text;

            Baza.EditNote(omg + 1, title, body);

            note_sub.Text  = String.Empty;
            note_body.Text = String.Empty;

            note.Content = "Zmieniono notatkę";

            List <Note> note2 = new List <Note>();

            note2 = Baza.NoteList2();
            dataGrid4.ItemsSource = note2;
        }
        public static void editNoteInterface(string tempstring)
        {
            Console.ForegroundColor = ConsoleColor.Green;

            Functions.createFrame(42, 3, 74, 19);


            Console.SetCursorPosition(48, 6);
            Console.Write(" Edytuj Notatke");

            Console.SetCursorPosition(49, 9);
            Console.WriteLine("  Nazwa notatki:");

            Console.SetCursorPosition(51, 10);
            string temat = Console.ReadLine();

            Console.SetCursorPosition(49, 14);
            Console.WriteLine("[Enter] - Potwierdź");

            Console.SetCursorPosition(49, 16);
            Console.WriteLine("  [Esc] - Odrzuć  ");

            Console.ResetColor();

            ConsoleKeyInfo key;

            key = Console.ReadKey();

            if (key.Key == ConsoleKey.Enter)
            {
                Baza.EditNote(editNumber, temat, tempstring);
                Functions.createNoteInterface();
            }

            if (key.Key == ConsoleKey.Escape)
            {
                Functions.createNoteInterface();
            }
        }