public frmMDIParent(IWinSettingProvider IWinSettingProvider, IConfigurationService configurationService)
 {
     InitializeComponent();
     toolStrip.ItemClicked += SetMDIMode;
     _iWinSettingProvider   = IWinSettingProvider;
     _configurationService  = configurationService;
 }
        public frmSettings(IWinSettingProvider settingProvider)
        {
            InitializeComponent();
            var settingProvider1 = settingProvider;

            txtImagePath.Text = settingProvider1.ImageDirectory;
            txtExcelPath.Text = settingProvider1.ExcelDirectory;
        }
        public frmCostingBase(IConfigurationService configurationService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _configurationService = configurationService;
            _winSettingProvider   = winSettingProvider;

            CostingRate = new CostingRates();
        }
        public frmMasterReport(IWinSettingProvider iWinSettingProvider, ICustomerService customerService, ISupplierService supplierService, IUserService userService, IConfigurationService configurationService, IDataSetProvider firmDataSetService)
        {
            InitializeComponent();
            _iWinSettingProvider  = iWinSettingProvider;
            _customerService      = customerService;
            _supplierService      = supplierService;
            _userService          = userService;
            _configurationService = configurationService;
            _firmDataSetService   = firmDataSetService;

            cboMasterReportType.DataSource = LocalStore.MasterReportItems.GetMasterReportItems();
        }
        public frmJewelMaster(IJewelService jewelService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _jewelService       = jewelService;
            _winSettingProvider = winSettingProvider;
            crystalReportViewer1.ToolPanelView = ToolPanelViewType.None;

            txtDiamondPcs.KeyPress += WinEvents.AllowNumber_KeyPress;
            txtDiamondWt.KeyPress  += WinEvents.AllowNumeric_KeyPress;
            txtNetWt.KeyPress      += WinEvents.AllowNumeric_KeyPress;
            txtGrsWt.KeyPress      += WinEvents.AllowNumeric_KeyPress;

            BindForm();
        }
        public frmCostingRates(ISupplierService supplierService,
                               IConfigurationService configurationService, IWinSettingProvider winSettingProvider,
                               ITransactionService costingServices, IJewelCalculation jewelCalculation)
            : this()
        {
            _configurationService = configurationService;
            _winSettingProvider   = winSettingProvider;
            _transactionService   = costingServices;
            _jewelCalculation     = jewelCalculation;

            PurchaseTransactionItems = new List <JewelTransaction>();

            cboCustomer.DataSource    = supplierService.GetActiveSuppliers();
            cboCustomer.SelectedIndex = -1;
            dtCosting.Value           = DateTime.Now;
        }
Esempio n. 7
0
        public frmTaxInvoiceReport(IConfigurationService configurationService, IReportService reportService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _reportService      = reportService;
            _winSettingProvider = winSettingProvider;
            IConfigurationService configurationService1 = configurationService;

            cboFinancialYear.DataSource   = configurationService1.GetAllFinancialYears().Select(x => x.YearCode).ToList();
            cboFinancialYear.SelectedItem = configurationService1.GetCurrentFinancialYearCode;
            cboTransactionType.DataSource = Enum.GetNames(typeof(TransactionType))
                                            .Except(new List <string> {
                TransactionType.NotSet.ToString(), TransactionType.PurchaseTransaction.ToString()
            })
                                            .ToList();

            rdoDetail.Checked = true;
        }
 public UserService(IWinSettingProvider settingProvider)
 {
     _settingProvider = settingProvider;
 }
Esempio n. 9
0
 public frmMDIParent(IWinSettingProvider IWinSettingProvider)
 {
     InitializeComponent();
     toolStrip.ItemClicked += SetMDIMode;
     _iWinSettingProvider   = IWinSettingProvider;
 }
Esempio n. 10
0
        public frmSettings(IWinSettingProvider settingProvider)
        {
            InitializeComponent();

            txtImagePath.Text = settingProvider.ImageDirectory;
        }
Esempio n. 11
0
 public ConnectionServices(IWinSettingProvider settingProvider)
     : this()
 {
     _settingProvider = settingProvider;
 }