コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            TipoMetricaFrm frmTrab = new TipoMetricaFrm();
            bool           Resp    = frmTrab.ShowDialog() ?? false;

            Refresh();
        }
コード例 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            int id       = (int)((Button)sender).CommandParameter;
            var response = Metodos.Encontrar(id);

            TipoMetricaFrm frm = new TipoMetricaFrm();

            frm.Type     = TypeForm.Update;
            frm.DataFill = response[0];
            bool Resp = frm.ShowDialog() ?? false;

            Refresh();
        }
コード例 #3
0
        private void txtVer_Click(object sender, RoutedEventArgs e)
        {
            int id       = (int)((Button)sender).CommandParameter;
            var response = Metodos.Encontrar(id);

            TipoMetricaFrm frmTrab = new TipoMetricaFrm();

            frmTrab.Type     = TypeForm.Read;
            frmTrab.DataFill = response[0];

            MAuditoria.Insertar(new DAuditoria(
                                    Menu.ActUsuario.idUsuario,
                                    DAuditoria.Ver,
                                    "Se ha visualzado el Tipo Metrica Nº" + response[0].idTipoMetrica));

            bool Resp = frmTrab.ShowDialog() ?? false;

            Refresh();
        }