示例#1
0
 private void PlacingAllDatas()
 {
     TitleGet.Text   = GettingNotes.GetDatas(Combo.Text)[0];
     TextGet.Text    = GettingNotes.GetDatas(Combo.Text)[1];
     Date.Text       = "Data dodania: " + GettingNotes.GetDatas(Combo.Text)[2];
     UpdateDate.Text = "Data poprawy " + GettingNotes.GetDatas(Combo.Text)[3];
 }
示例#2
0
 static internal string CheckingIfExist(string Title, string Content)
 {
     //MessageBox.Show(GettingNotes.GetDatas(Title).Count.ToString());
     if (GettingNotes.GetDatas(Title).Count != 4)
     {
         return(Insert(Title, Content));
     }
     return(UpdateNotes.CheckingUpdate(Title, Content));
 }
示例#3
0
        internal string Checking(string title)
        {
            var question = MessageBox.Show("Czy napewno, chcesz usunąć tą notatkę? \n " +
                                           "Operacja jest nieodwracalna", "Usuwanie", MessageBoxButton.YesNo, MessageBoxImage.Warning);

            if (question == MessageBoxResult.Yes)
            {
                if (GettingNotes.GetDatas(title).Count() != 2)
                {
                    return(DeletingNote.Deleting(title));
                }
                return("Nie istnieje taka notatka");
            }
            return("Przerwano");
        }