private void pnlNewRastreador_MouseUp(object sender, MouseButtonEventArgs e) { InspectorDetail inspDetail = new InspectorDetail(); inspDetail.ShowDialog(); this.Focus(); }
private void pnlNewInspector_MouseUp(object sender, MouseButtonEventArgs e) { var inspector = new Inspector { Path = "Seleccione una carpeta para rastrear" }; InspectorDetail inspDetail = new InspectorDetail(inspector); inspDetail.ShowDialog(); inspector = inspDetail.inspector; InspectorsRefresh(inspector, true); }
private void lstVInspectors_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lstVInspectors.SelectedIndex != -1) { Inspector inspSelected = (Inspector)lstVInspectors.SelectedValue; InspectorDetail inspDetail = new InspectorDetail(inspSelected); inspDetail.ShowDialog(); List <Inspector> lstInspectors = (List <Inspector>)lstVInspectors.ItemsSource; inspSelected = inspDetail.inspector; FillRulesAux(inspSelected); lstVInspectors.ItemsSource = null; lstVInspectors.ItemsSource = lstInspectors; } }
private void lstVInspectors_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lstVInspectors.SelectedIndex != -1) { Inspector inspSelected = (Inspector)lstVInspectors.SelectedValue; InspectorDetail inspDetail = new InspectorDetail(inspSelected); inspDetail.ShowDialog(); List<Inspector> lstInspectors = (List<Inspector>)lstVInspectors.ItemsSource; inspSelected = inspDetail.inspector; FillRulesAux(inspSelected); lstVInspectors.ItemsSource = null; lstVInspectors.ItemsSource = lstInspectors; } }
private void mnFileR_Click(object sender, RoutedEventArgs e) { var inspector = new FileInspector { Path = "Seleccione una carpeta para rastrear" }; var inspDetail = new InspectorDetail(inspector); inspDetail.ShowDialog(); inspector = inspDetail.Inspector; if (inspector.InspectorId.HasValue) { InspectorsRefresh(inspector, true); } }