Ejemplo n.º 1
0
        private void btn_selFilterPlace_Click(object sender, RoutedEventArgs e)
        {
            cwnd_selectPlace w = new cwnd_selectPlace();

            w.Show();
            w.Closed += new EventHandler(w_selFilterPlaceClosed);
        }
Ejemplo n.º 2
0
        void w_selFilterPlaceClosed(object sender, EventArgs e)
        {
            cwnd_selectPlace w = sender as cwnd_selectPlace;

            if (w.DialogResult == true)
            {
                globalFilterPlace = w.selectedItem;
            }
            else
            {
                globalFilterPlace.ID          = null;
                globalFilterPlace.Description = "Все";
            }

            btn_selFilterPlace.Content = "Место = \"" + globalFilterPlace.Description + "\"";
            wc.ws_selectPassportsListAsync(globalFilterType.ID, globalFilterPlace.ID);
        }
Ejemplo n.º 3
0
 // Show floating window with tree of Places for select Place
 private void btn_show_tree_Places_Click(object sender, RoutedEventArgs e)
 {
     cwnd_selectPlace w = new cwnd_selectPlace();
     w.Show();
     w.Closed += new EventHandler(w_selectPlace_Closed);
 }