コード例 #1
0
        private void pnlNewRastreador_MouseUp(object sender, MouseButtonEventArgs e)
        {
            InspectorDetail inspDetail = new InspectorDetail();

            inspDetail.ShowDialog();

            this.Focus();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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;
            }
        }
コード例 #6
0
        private void pnlNewRastreador_MouseUp(object sender, MouseButtonEventArgs e)
        {
            InspectorDetail inspDetail = new InspectorDetail();
            inspDetail.ShowDialog();

            this.Focus();
        }
コード例 #7
0
        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);
            }
        }