示例#1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            CrearGuia _ver = new CrearGuia();

            this.Close();
            _ver.ShowDialog();
        }
示例#2
0
        private async void dgProveedorView_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e)
        {
            DataGrid    gd           = (DataGrid)sender;
            DataRowView row_selected = gd.SelectedItem as DataRowView;

            if (row_selected != null)
            {
                CrearGuia Ventana = new CrearGuia();

                Ventana.lblId.Content                 = row_selected["id"].ToString();
                Ventana.lblRutProveedor.Content       = row_selected["Rut"].ToString();
                Ventana.lblNombreProveedor.Content    = row_selected["Razon_social"].ToString();
                Ventana.lblDireccionProveedor.Content = row_selected["direccion"].ToString();
                Ventana.lblGiroProveedor.Content      = row_selected["giro"].ToString();
                Ventana.ShowDialog();
            }
        }