Esempio n. 1
0
        private void ButtonAgregar_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            var window = new StaffImput(null);

            window.Show();
        }
Esempio n. 2
0
        private void Button_Modificar(object sender, RoutedEventArgs e)
        {
            StaffModel _staff = DataGridStaff.SelectedItem as StaffModel;

            if (_staff != null)
            {
                int?id = _staff.Id;
                this.Close();
                var _window = new StaffImput(id);
                _window.Show();
            }
            else
            {
                GRDialogInformation _msg = new GRDialogInformation();
                _msg.Message = "Debe Seleccionar un Registro";
                _msg.ShowDialog();
            }
        }