コード例 #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();
        }
コード例 #2
0
 public TelephonyLineTypeForm()
 {
     InitializeComponent();
     this.ctrlTelephonyLineTypeForm = new TelephonyLineTypeFormController(this);
     this.srvTelephonyLineType      = SamsaraAppContext.Resolve <ITelephonyLineTypeService>();
 }
コード例 #3
0
 public TelephonyLineTypeFormController(TelephonyLineTypeForm instance)
 {
     this.frmTelephonyLineType = instance;
     this.srvTelephonyLineType = SamsaraAppContext.Resolve <ITelephonyLineTypeService>();
     this.InitializeFormControls();
 }