private void objUnboundAddEditPolicyHolders_Load(object sender, EventArgs e) { this._objAddEditPolicyHolders.ServiceCalls = ServiceCalls; this._objAddEditPolicyHolders.Parent = this; this._objAddEditPolicyHolders.Operation = Operation; this._objAddEditPolicyHolders.Id = PolicyHolderId; this._objAddEditPolicyHolders.PopulateEditFields(); }
private void objUnboundAddEditPeople_Load(object sender, EventArgs e) { this._objAddEditPeople.ServiceCalls = ServiceCalls; this._objAddEditPeople.Parent = this; this._objAddEditPeople.Operation = Operation; this._objAddEditPeople.Id = PersonId; this._objAddEditPeople.PopulateEditFields(); }
public SearchViewModel() { this.Title = "Search Results"; //this.Icon = "list.png"; _dataService = DependencyService.Get <IServiceCalls>(); Results = new ObservableCollection <Value>(); MessagingCenter.Subscribe <Value>(this, MessagingServiceConstants.ACCOUNT, (account) => { IsInitialized = false; }); }
public PoliciesViewModel() { this.Title = "Policies"; //this.Icon = "list.png"; _dataService = DependencyService.Get <IServiceCalls>(); Policies = new ObservableCollection <Policy>(); MessagingCenter.Subscribe <Policy>(this, MessagingServiceConstants.ACCOUNT, (account) => { IsInitialized = false; }); }
public SearchResultViewModel(Value result) { this.Title = "PDF Search Result"; //this.Icon = "list.png"; _dataService = DependencyService.Get <IServiceCalls>(); Result = result; MessagingCenter.Subscribe <Value>(this, MessagingServiceConstants.ACCOUNT, (account) => { IsInitialized = false; }); }
public LogIn(IServiceCalls serviceCalls) { InitializeComponent(); //if (ApplicationSettings.UseWebApi) //{ // _serviceCalls = new WebApiCalls(); //} //else //{ // _serviceCalls = new WcfCalls(); //} _serviceCalls = serviceCalls; }
public Main() { InitializeComponent(); policyGrid.DataSource = _policyHolderBindingSource; policyGrid.AutoGenerateColumns = false; // Set the Service Calls to WPF or WebApi: if (ApplicationSettings.UseWebApi) { _AuthenticationService = new AuthenticationService(); _serviceCalls = new WebApiCalls(_AuthenticationService); CheckAuthentication(false); } else { _serviceCalls = new WcfCalls(); CheckAuthentication(true); } }
void Awake() { if (webservice == null) { webservice = this; } ServiceConverter = new LitJsonFxJsonObjectConverter(); if (this.GetComponent <WebServiceUrlSwitcher>()) { WebServiceUrlSwitcher switcher = this.GetComponent <WebServiceUrlSwitcher>(); if (switcher.isUsed) { cloudGoodsURL = switcher.preferredURL; Debug.Log("Changed Preffered URL to " + cloudGoodsURL); } } }
void Awake() { if (webservice == null) { webservice = this; } ServiceConverter = new LitJsonFxJsonObjectConverter(); if (this.GetComponent<WebServiceUrlSwitcher>()) { WebServiceUrlSwitcher switcher = this.GetComponent<WebServiceUrlSwitcher>(); if (switcher.isUsed) { cloudGoodsURL = switcher.preferredURL; Debug.Log("Changed Preffered URL to " + cloudGoodsURL); } } }