public SamsaraFormController(SamsaraForm frmSamsara) { this.frmSamsara = frmSamsara; FormConfigurationParameters pmtFormConfiguration = new FormConfigurationParameters(); this.srvFormConfiguration = SamsaraAppContext.Resolve <IFormConfigurationService>(); pmtFormConfiguration.FormName = this.frmSamsara.Name; this.FormConfiguration = this.srvFormConfiguration.GetByParameters(pmtFormConfiguration); }
public SamsaraUltraGrid() { InitializeComponent(); if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { this.srvScheme = SamsaraAppContext.Resolve <ISchemeService>(); this.srvFormConfiguration = SamsaraAppContext.Resolve <IFormConfigurationService>(); this.srvFormConfigurationGrid = SamsaraAppContext.Resolve <IFormConfigurationGridService>(); this.srvFormConfigurationGridColumn = SamsaraAppContext.Resolve <IFormConfigurationGridColumnService>(); } }
public SamsaraUltraGrid() { InitializeComponent(); try { srvFormConfiguration = SamsaraAppContext.Resolve <IFormConfigurationService>(); srvGridConfiguration = SamsaraAppContext.Resolve <IGridConfigurationService>(); srvGridColumnConfiguration = SamsaraAppContext.Resolve <IGridColumnConfigurationService>(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); Console.WriteLine(ex.StackTrace); } }
public FormController(IFormConfigurationService configurationService) { this.configurationService = configurationService; }