Beispiel #1
0
        private void Edit()
        {
            if (ListBoxView.Items.Count == 0)
            {
                return;
            }
            object ob = ListBoxView.SelectedItem;

            //if do not selected value return
            if (ob == null)
            {
                return;
            }

            int id = (ob as Patient).id;

            Param.id         = id;
            Param.lastWindow = "ListPatient";

            //Show window edit patient
            NewPatient AddPatientWindow = new NewPatient();

            AddPatientWindow.Owner = this;
            AddPatientWindow.ShowDialog();

            ViewModel.Load();
        }
Beispiel #2
0
        private void Add()
        {
            //Show window Add patient
            NewPatient AddPatientWindow = new NewPatient();

            AddPatientWindow.Owner = this;
            AddPatientWindow.ShowDialog();

            ViewModel.Load();
        }