private void CreateCommand_Executed(object sender, System.Windows.Input.ExecutedRoutedEventArgs e)
        {
            //create new person with dummy parameters
            Person       selectedPerson = new Person(0, "", "", Convert.ToDateTime("1/1/0001"), "", 0, 0, "000000", false);
            UpdatePerson newWindow      = new UpdatePerson(Convert.ToInt32(mainWindow.TryGetUserProperty(currentUserID, "ID")), selectedPerson, PersonStatus.Create);

            this.Close();
            newWindow.ShowDialog();
        }
        private void DeleteCommand_Executed(object sender, System.Windows.Input.ExecutedRoutedEventArgs e)
        {
            //retrieve id from selected person
            int          indexStart = infoListbox.SelectedItem.ToString().IndexOf("ID") + 4;
            int          indexEnd   = infoListbox.SelectedItem.ToString().IndexOf(",");
            int          length     = indexEnd - indexStart;
            string       dataBasePrimaryKeyString = infoListbox.SelectedItem.ToString().Substring(indexStart, length);
            int          dataBasePrimaryKey       = Convert.ToInt32(dataBasePrimaryKeyString);
            Person       selectedPerson           = TryGetUser(dataBasePrimaryKey);
            UpdatePerson newWindow = new UpdatePerson(Convert.ToInt32(mainWindow.TryGetUserProperty(currentUserID, "ID")), selectedPerson, PersonStatus.Delete);

            this.Close();
            newWindow.ShowDialog();
        }