public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Dispatcher.Silverlight;component/Silverlight/Administration" +
                 "/AddEditDispatchUserView.xaml", System.UriKind.Relative));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.CountryChangedEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("CountryChangedEvent")));
     this.StateChangedEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("StateChangedEvent")));
     this.ac = ((System.Windows.Controls.AutoCompleteBox)(this.FindName("ac")));
 }
Esempio n. 2
0
        private void AddCommandTrigger(object viewModel, string eventName, string commandBinding, object commandParameter)
        {
            System.Windows.Interactivity.InvokeCommandAction action = new System.Windows.Interactivity.InvokeCommandAction();
            action.CommandParameter = commandParameter;
            Binding actionBinding = new Binding();

            actionBinding.Source = viewModel;
            actionBinding.Path   = new PropertyPath(commandBinding);
            BindingOperations.SetBinding(action, System.Windows.Interactivity.InvokeCommandAction.CommandProperty, actionBinding);

            System.Windows.Interactivity.EventTrigger trigger = new System.Windows.Interactivity.EventTrigger();
            trigger.EventName = eventName;
            trigger.Actions.Add(action);
            trigger.Attach(this);
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Dispatcher.Silverlight;component/Silverlight/Administration" +
                 "/DispatchWorldwideView.xaml", System.UriKind.Relative));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.WorldWideTabControl = ((System.Windows.Controls.TabControl)(this.FindName("WorldWideTabControl")));
     this.grdWorldWideProfiles = ((System.Windows.Controls.Grid)(this.FindName("grdWorldWideProfiles")));
     this.grdWorldWideUsers = ((System.Windows.Controls.Grid)(this.FindName("grdWorldWideUsers")));
     this.lstUsers = ((System.Windows.Controls.ListBox)(this.FindName("lstUsers")));
     this.brdUserDetail = ((System.Windows.Controls.Border)(this.FindName("brdUserDetail")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Dispatcher.Silverlight;component/Silverlight/Suppliers/Citi" +
                 "esOfServiceControl.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Border)(this.FindName("LayoutRoot")));
     this.cmbCities = ((System.Windows.Controls.ComboBox)(this.FindName("cmbCities")));
     this.CityChanged = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("CityChanged")));
     this.lbVehicleTypes = ((System.Windows.Controls.ItemsControl)(this.FindName("lbVehicleTypes")));
     this.checkBox = ((System.Windows.Controls.CheckBox)(this.FindName("checkBox")));
     this.cmbQuotationResponse = ((System.Windows.Controls.ComboBox)(this.FindName("cmbQuotationResponse")));
     this.cmbProspectResponse = ((System.Windows.Controls.ComboBox)(this.FindName("cmbProspectResponse")));
 }
Esempio n. 5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Dispatcher.Silverlight;component/Silverlight/Common/Setting" +
                 "View.xaml", System.UriKind.Relative));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dtpStartDate = ((System.Windows.Controls.DatePicker)(this.FindName("dtpStartDate")));
     this.dtpEndDate = ((System.Windows.Controls.DatePicker)(this.FindName("dtpEndDate")));
     this.btnClose = ((System.Windows.Controls.Button)(this.FindName("btnClose")));
     this.btnReset = ((System.Windows.Controls.Button)(this.FindName("btnReset")));
     this.btnApply = ((System.Windows.Controls.Button)(this.FindName("btnApply")));
 }
Esempio n. 6
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Common.Silverlight;component/Silverlight/QuoteControls/Quot" +
                 "eControl.xaml", System.UriKind.Relative));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.brdContent = ((System.Windows.Controls.Border)(this.FindName("brdContent")));
     this.dragDockPanelHost = ((DragDockControl.DragDockPanelHost)(this.FindName("dragDockPanelHost")));
     this.drackDockTripDetails = ((DragDockControl.DragDockPanel)(this.FindName("drackDockTripDetails")));
     this.drackDockPayment = ((DragDockControl.DragDockPanel)(this.FindName("drackDockPayment")));
     this.drackDockPanelPassenger = ((DragDockControl.DragDockPanel)(this.FindName("drackDockPanelPassenger")));
     this.brdTripDetails = ((System.Windows.Controls.Border)(this.FindName("brdTripDetails")));
     this.tripAssistControl = ((Segator.Loms.Modules.Common.Silverlight.QuoteControls.TripAssist)(this.FindName("tripAssistControl")));
 }
Esempio n. 7
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Dispatcher.Silverlight;component/Silverlight/Suppliers/Prio" +
                 "ritiesView.xaml", System.UriKind.Relative));
     this.page = ((System.Windows.Controls.Page)(this.FindName("page")));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.LayoutRoot = ((System.Windows.Controls.Border)(this.FindName("LayoutRoot")));
     this.lstCountries = ((System.Windows.Controls.ListBox)(this.FindName("lstCountries")));
     this.CountryChangedEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("CountryChangedEvent")));
     this.lstCities = ((System.Windows.Controls.ListBox)(this.FindName("lstCities")));
     this.CityChangedEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("CityChangedEvent")));
     this.lstVehicles = ((System.Windows.Controls.ListBox)(this.FindName("lstVehicles")));
     this.VehicleChangedEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("VehicleChangedEvent")));
     this.lstSuppliers = ((System.Windows.Controls.ListBox)(this.FindName("lstSuppliers")));
 }
Esempio n. 8
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Segator.Loms.Modules.Common.Silverlight;component/Silverlight/QuoteControls/Trip" +
                 "Assist.xaml", System.UriKind.Relative));
     this.PageLoadEvent = ((System.Windows.Interactivity.InvokeCommandAction)(this.FindName("PageLoadEvent")));
     this.LayoutRoot = ((System.Windows.Controls.Border)(this.FindName("LayoutRoot")));
     this.txtCity = ((System.Windows.Controls.TextBlock)(this.FindName("txtCity")));
     this.txtJourneyType = ((System.Windows.Controls.TextBlock)(this.FindName("txtJourneyType")));
     this.txtPickupDate = ((System.Windows.Controls.TextBlock)(this.FindName("txtPickupDate")));
     this.txtVehicleType = ((System.Windows.Controls.TextBlock)(this.FindName("txtVehicleType")));
     this.txtPickUp = ((System.Windows.Controls.TextBlock)(this.FindName("txtPickUp")));
     this.txtFlightDetails = ((System.Windows.Controls.TextBlock)(this.FindName("txtFlightDetails")));
     this.txtFlightDateTime = ((System.Windows.Controls.TextBlock)(this.FindName("txtFlightDateTime")));
     this.txtDropBuilding = ((System.Windows.Controls.TextBlock)(this.FindName("txtDropBuilding")));
     this.txtDropAddress = ((System.Windows.Controls.TextBlock)(this.FindName("txtDropAddress")));
 }