Exemplo n.º 1
0
        private void ShowSelectorWindow(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;
            this._edited_route = button.Tag as transfer_route;

            List<DictItem> newRoute = new List<DictItem>();
            SelectionRoute selectionRoute = new SelectionRoute(_dicts.Ss.Select(m => m.Name).ToList(), this._edited_route.route);
            selectionRoute.Show();
            selectionRoute.Closed += new EventHandler(selectionRoute_Closed);
        }
Exemplo n.º 2
0
 private void ShowSelectorWindow(object sender, RoutedEventArgs e)
 {
     List<DictItem> newRoute = new List<DictItem>();
     SelectionRoute selectionRoute = new SelectionRoute(_dicts.Ss.Select(m => m.Name).ToList(), this._transfer.route);
     selectionRoute.Show();
     selectionRoute.Closed += new EventHandler(selectionRoute_Closed);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Открыть окно "Маршрут по применяемости"
        /// </summary>
        private void ShowSelectorWindow(object sender, RoutedEventArgs e)
        {
            if (grid.SelectedItems.Count != 1) return;

            this._edited_route = grid.SelectedItem as transfer;

            List<DictItem> newRoute = new List<DictItem>();
            SelectionRoute selectionRoute = new SelectionRoute(_dicts.Ss.Select(m => m.Name).ToList(), this._edited_route.route_changed ? this._edited_route.route : "");
            selectionRoute.Show();
            selectionRoute.Closed += new EventHandler(selectionRoute_Closed);
        }