Exemplo n.º 1
0
        public CustomerInfrastructureTelephoniesControlController(
            CustomerInfrastructureTelephoniesControl instance) : base(instance)
        {
            this.controlCustomerInfrastructureTelephonies = instance;

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                this.srvCustomerInfrastructureTelephony = SamsaraAppContext.Resolve <ICustomerInfrastructureTelephonyService>();
                this.srvCustomerInfrastructure          = SamsaraAppContext.Resolve <ICustomerInfrastructureService>();
                this.srvTelephonyProvider = SamsaraAppContext.Resolve <ITelephonyProviderService>();
                this.srvTelephonyLineType = SamsaraAppContext.Resolve <ITelephonyLineTypeService>();
            }

            this.InitializeControlControls();
        }
Exemplo n.º 2
0
 public TelephonyLineTypeForm()
 {
     InitializeComponent();
     this.ctrlTelephonyLineTypeForm = new TelephonyLineTypeFormController(this);
     this.srvTelephonyLineType      = SamsaraAppContext.Resolve <ITelephonyLineTypeService>();
 }
 public TelephonyLineTypeFormController(TelephonyLineTypeForm instance)
 {
     this.frmTelephonyLineType = instance;
     this.srvTelephonyLineType = SamsaraAppContext.Resolve <ITelephonyLineTypeService>();
     this.InitializeFormControls();
 }