コード例 #1
0
        public FuelPage()
        {
            InitializeComponent();
            _SetDefaults();
            _InitEventHandlers();
            _CheckPageComplete();
            commandButtonGroup.Initialize(CategoryNames.FuelTypesCommands, XceedGrid);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
コード例 #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Creates a new instance of the <c>ZonesPage</c> class.
        /// </summary>
        public ZonesPage()
        {
            InitializeComponent();
            _InitEventHandlers();
            _SetDefaults();

            if (App.Current.Project != null)
                _Init();

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
コード例 #3
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Create a new instance of the <c>DefaultRoutesPage</c> class.
        /// </summary>
        public DefaultRoutesPage()
        {
            InitializeComponent();
            _InitEventHandlers();
            _SetDefaults();

            _CheckPageComplete();
            _CheckPageAllowed();

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
コード例 #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public FleetSetupWizardLocationPage()
        {
            InitializeComponent();

            Loaded += new RoutedEventHandler(_FleetSetupWizardLocationPageLoaded);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(DataGridControl);
        }
コード例 #5
0
        /// <summary>
        /// Constructor. Creates new instance of List view and sets property ParentPage from constructor parameter.
        /// </summary>
        public RoutesView()
        {
            InitializeComponent();

            App.Current.ProjectLoaded += new EventHandler(_ProjectLoaded);
            App.Current.ProjectClosing += new EventHandler(_ProjectClosing);
            this.VisibileStateChanged += new EventHandler(_VisibileStateChanged);
            App.Current.Exit += new ExitEventHandler(_AppExit);

            if (App.Current.Project != null)
                _InitGridControl();

            App.Current.Solver.AsyncSolveCompleted += new ESRI.ArcLogistics.Routing.AsyncSolveCompletedEventHandler(_AsyncSolveCompleted);

            new ViewButtonsMarginUpdater(this, commandButtonsGroup);

            // Subscribe on mouse move for drag and drop.
            Application.Current.MainWindow.MouseMove += new MouseEventHandler(_MouseMove);

            // Init timer for expanding Route Details.
            _expandTimer = new Timer(EXPAND_ROUTE_DETAILS_TIME_INTERVAL);
            _expandTimer.Elapsed += new ElapsedEventHandler(_TimeElapsed);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController
                (RoutesGrid);
        }
コード例 #6
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Creates a new instance of the <c>BarriersPage</c> class.
        /// </summary>
        public BarriersPage()
        {
            InitializeComponent();

            _InitEventHandlers();
            _SetDefaults();

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
コード例 #7
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public BreaksPage()
        {
            InitializeComponent();
            _InitEventHandlers();
            _SetDefaults();
            _CheckPageComplete();

            // Init validation callout controller.
            var timeWindowVallidationCalloutController = new ValidationCalloutController(TimeWindowGrid);

            // Init validation callout controller.
            var driveTimeVallidationCalloutController = new ValidationCalloutController(DriveTimeGrid);

            // Init validation callout controller.
            var worktTimeVallidationCalloutController = new ValidationCalloutController(WorkTimeGrid);
        }
コード例 #8
0
        /// <summary>
        /// Constructor. Creates new instance of List view and sets property ParentPage from constructor parameter.
        /// </summary>
        public OrdersView()
        {
            InitializeComponent();

            App.Current.ProjectLoaded += new EventHandler(_ProjectLoaded);
            App.Current.ProjectClosing += new EventHandler(_ProjectClosing);
            App.Current.Exit += new ExitEventHandler(_AppExit);
            this.VisibileStateChanged += new EventHandler(_VisibileStateChanged);

            if (App.Current.Project != null)
                _InitGridControl();

            new ViewButtonsMarginUpdater(this, commandButtonsGroup);

            // Subscribe on mouse move for drag and drop.
            Application.Current.MainWindow.MouseMove += new MouseEventHandler(_MouseMove);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController
                (OrdersGrid);
        }
コード例 #9
0
        /// <summary>
        /// Initializes a new instance of CustomOrderPropertiesControl.
        /// </summary>
        public CustomOrderPropertiesControl()
        {
            InitializeComponent();

            _InitDataGridLayout();

            // Create custom order property name validator.
            _customOrderPropertyNameValidator = new CustomOrderPropertyNameValidator(_customOrderProperties);

            // Attach handler for the Xceed DataGrid SelectionChanged event.
            _customOrderPropertiesXceedGrid.SelectionChanged +=
                new DataGridSelectionChangedEventHandler(_CustomOrderPropertiesXceedGridSelectionChanged);

            // Attach handler for the Xceed DataGrid KeyDown event.
            _customOrderPropertiesXceedGrid.KeyDown += new KeyEventHandler(_CustomOrderPropertiesXceedGridKeyDown);

            // Attach handler for the Xceed IsVisibleChanged event.
            _customOrderPropertiesXceedGrid.IsVisibleChanged +=
                new DependencyPropertyChangedEventHandler(_CustomOrderPropertiesXceedGridIsVisibleChanged);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(_customOrderPropertiesXceedGrid);
        }