Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
0
        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;
            });
        }
Пример #4
0
        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;
            });
        }
Пример #5
0
        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;
            });
        }
Пример #6
0
        public LogIn(IServiceCalls serviceCalls)
        {
            InitializeComponent();

            //if (ApplicationSettings.UseWebApi)
            //{
            //    _serviceCalls = new WebApiCalls();
            //}
            //else
            //{
            //    _serviceCalls = new WcfCalls();
            //}
            _serviceCalls = serviceCalls;
        }
Пример #7
0
        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);
            }
        }
Пример #8
0
    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);
            }
        }
    }
Пример #9
0
    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);
            }
        }
    }