Exemple #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public FleetSetupWizardLocationPage()
        {
            InitializeComponent();

            Loaded += new RoutedEventHandler(_FleetSetupWizardLocationPageLoaded);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(DataGridControl);
        }
        public DriversPage()
        {
            InitializeComponent();
            _InitEventHandlers();
            _SetDefaults();
            _CheckPageComplete();

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
        public FuelPage()
        {
            InitializeComponent();
            _SetDefaults();
            _InitEventHandlers();
            _CheckPageComplete();
            commandButtonGroup.Initialize(CategoryNames.FuelTypesCommands, XceedGrid);

            // Init validation callout controller.
            var vallidationCalloutController = new ValidationCalloutController(XceedGrid);
        }
Exemple #4
0
        public MobileDevicesPage()
        {
            InitializeComponent();
            _InitEventHandlers();
            _SetDefaults();
            _FillDevicesList();
            commandButtonGroup.Initialize(CategoryNames.MobileDevicesCommands, XceedGrid);

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

        /// <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);
        }
        /// <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);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public SpecialtiesPage()
        {
            InitializeComponent();
            this.Loaded   += new RoutedEventHandler(SpecialtiesPage_Loaded);
            this.Unloaded += new RoutedEventHandler(SpecialtiesPage_Unloaded);
            IsRequired     = false;
            IsAllowed      = true;
            CanBeLeft      = true;

            driverSpecialties.XceedGrid.SelectionChanged  += new DataGridSelectionChangedEventHandler(_DriverSpecialtiesSelectionChanged);
            vehicleSpecialties.XceedGrid.SelectionChanged += new DataGridSelectionChangedEventHandler(_VehicleSpecialtiesSelectionChanged);

            // Init validation callout controller for driver specialties.
            var driverSpecialtiesVallidationCalloutController = new ValidationCalloutController(driverSpecialties.XceedGrid);

            // Init validation callout controller for vehicle specialties.
            var vehicleSpecialtiesVallidationCalloutController = new ValidationCalloutController(vehicleSpecialties.XceedGrid);
        }
Exemple #8
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);
        }
        /// <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);
        }