Exemple #1
0
 private void AcceptDialogExecute()
 {
     new Database().CreateEntry(NewMarine);
     SelectedMarine = NewMarine;
     MarineList.Add(NewMarine);
     DialogOpen = false;
 }
Exemple #2
0
        private void DialogHost_DialogClosing(object sender, MaterialDesignThemes.Wpf.DialogClosingEventArgs eventArgs)
        {
            if (Equals(eventArgs.Parameter, true))
            {
                MarineEDIPI     = Int32.Parse(InputEDIPI.Text);
                MarineLastName  = InputLastName.Text;
                MarineFirstName = InputFirstName.Text;
                MarineMI        = InputMI.Text;

                MarineList.Add(MarineEDIPI, MarineLastName, MarineFirstName, MarineMI);
                GetList();
                MarineUpdate();
                InsertMarine();
            }
        }