Exemplo n.º 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 Reception).id;

            Param.id         = id;
            Param.lastWindow = "ListReception";

            //Show window edit patient
            NewReception AddReceptionWindow = new NewReception();

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

            ViewModel.Load();
        }
Exemplo n.º 2
0
        private void Add()
        {
            //Show window Add patient
            NewReception AddReceptionWindow = new NewReception();

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

            ViewModel.Load();
        }