Exemple #1
0
        private void removeClientButton_Click(object sender, RoutedEventArgs e) {
            MessageBoxResult result = MessageBox.Show("This will permanantly delete the client and all associated data.\n\nContinue?",
                                        "Glowfish", MessageBoxButton.YesNo, MessageBoxImage.Warning);
            if(result == MessageBoxResult.Yes) {
                PasswordDialog passwordWindow = new PasswordDialog(this);
                if((bool)passwordWindow.ShowDialog()) {
                    
                    string name = listView1.SelectedItem as string;
                    
                    listView1.SelectedIndex = 0;

                    DataManager.RemoveClient(name);

                    listView1.ItemsSource = DataManager.NameList;


                }
            }
        }
Exemple #2
0
 private void editButton_Click(object sender, RoutedEventArgs e) {
     PasswordDialog passwordWindow = new PasswordDialog(this);
     if((bool)passwordWindow.ShowDialog()) {
         EditClientDialog editClientWindow = new EditClientDialog(this);
         editClientWindow.ShowDialog();
     }
     UpdateClientInfo();
 }
Exemple #3
0
 private void addTimeButton_Click(object sender, RoutedEventArgs e) {
     PasswordDialog passwordWindow = new PasswordDialog(this);
     if((bool)passwordWindow.ShowDialog()) {
         Window addTimeDialog = new AddTimeDialog(this);
         addTimeDialog.ShowDialog();
         predictAndSetLevelRadioButtons();
     }
 }