Beispiel #1
0
        private void But_Edit_Click(object sender, RoutedEventArgs e)
        {
            int selected = 0;

            for (int i = 0; i <= MainWindow.EntryList.Count - 1; i++)
            {
                if (MainWindow.EntryList[i].Title.Equals(ComBox_EntryList.SelectedItem.ToString()))
                {
                    selected = i;
                    break;
                }
            }
            EntryEditor main = new EntryEditor(this, selected);

            main.ShowDialog();
        }
 private void But_Add_Click(object sender, RoutedEventArgs e)
 {
     EntryEditor main = new EntryEditor(this);
     main.ShowDialog();
 }
 private void But_Edit_Click(object sender, RoutedEventArgs e)
 {
     int selected = 0;
     for (int i = 0; i <= MainWindow.EntryList.Count - 1; i++)
     {
         if (MainWindow.EntryList[i].Title.Equals(ComBox_EntryList.SelectedItem.ToString()))
         {
             selected = i;
             break;
         }
     }
     EntryEditor main = new EntryEditor(this, selected);
     main.ShowDialog();
 }
Beispiel #4
0
        private void But_Add_Click(object sender, RoutedEventArgs e)
        {
            EntryEditor main = new EntryEditor(this);

            main.ShowDialog();
        }