public ClientWindow(ICreditBusinessComponent creditBusinessComponent, ICreditTypeBusinessComponent creditTypeBusinessComponent, IClientBusinessComponent clientBusinessComponent, IRequestBusinessComponent requestBusinessComponent, int userId, IKernel ninjectKernel) { _creditTypeBusinessComponent = creditTypeBusinessComponent; _creditBusinessComponent = creditBusinessComponent; _clientBusinessComponent = clientBusinessComponent; _requestBusinessComponent = requestBusinessComponent; _userId = userId; this._ninjectKernel = ninjectKernel; InitializeComponent(); CreditSalary.MaxLength = RequestValidation.SalaryMaxLength; CreditAmount.MaxLength = RequestValidation.AmountMaxLength; FillCTypeListView(); FillRequestListView(); FillMyCreditsListView(); IList <CreditType> ctype = _creditTypeBusinessComponent.GetAllActiveCreditTypes().ToList(); foreach (var ct in ctype) { CreditCTypeBox.Items.Add(ct.Name); } CreditCTypeBox.SelectedIndex = 0; CTypeListView.ItemsSource = CTypetDataList; RequestListView.ItemsSource = RequestDataList; MyCreditListView.ItemsSource = MyCreditDataList; CTypeListView.SelectionMode = SelectionMode.Single; RequestListView.SelectionMode = SelectionMode.Single; MyCreditListView.SelectionMode = SelectionMode.Single; // RequestViewNote.IsEnabled = false; }
public ClientWindow(ICreditBusinessComponent creditBusinessComponent, ICreditTypeBusinessComponent creditTypeBusinessComponent, IClientBusinessComponent clientBusinessComponent, IRequestBusinessComponent requestBusinessComponent, int userId, IKernel ninjectKernel) { _creditTypeBusinessComponent = creditTypeBusinessComponent; _creditBusinessComponent = creditBusinessComponent; _clientBusinessComponent = clientBusinessComponent; _requestBusinessComponent = requestBusinessComponent; _userId = userId; this._ninjectKernel = ninjectKernel; InitializeComponent(); CreditSalary.MaxLength = RequestValidation.SalaryMaxLength; CreditAmount.MaxLength = RequestValidation.AmountMaxLength; FillCTypeListView(); FillRequestListView(); FillMyCreditsListView(); IList<CreditType> ctype = _creditTypeBusinessComponent.GetAllActiveCreditTypes().ToList(); foreach(var ct in ctype) CreditCTypeBox.Items.Add(ct.Name); CreditCTypeBox.SelectedIndex = 0; CTypeListView.ItemsSource = CTypetDataList; RequestListView.ItemsSource = RequestDataList; MyCreditListView.ItemsSource = MyCreditDataList; CTypeListView.SelectionMode = SelectionMode.Single; RequestListView.SelectionMode = SelectionMode.Single; MyCreditListView.SelectionMode = SelectionMode.Single; // RequestViewNote.IsEnabled = false; }
public CreditTypeWindow(ICreditTypeBusinessComponent creditTypeBc) { this._creditTypeBc = creditTypeBc; InitializeComponent(); CurrencyComboBox.Items.Add("USD"); CurrencyComboBox.SelectedValue = "USD"; CurrencyComboBox.IsEnabled = false; }
public CreditTypeWindow(ICreditTypeBusinessComponent creditTypeBc) { this._creditTypeBc = creditTypeBc; InitializeComponent(); CurrencyComboBox.Items.Add("USD"); CurrencyComboBox.SelectedValue = "USD"; CurrencyComboBox.IsEnabled = false; }
public CreditTypesWindow( UserRole role, ICreditTypeBusinessComponent creditTypeBusinessComponent, int?selectedCreditTypeId = null) { _creditTypeBusinessComponent = creditTypeBusinessComponent; _role = role; InitializeComponent(); RefreshPage(); if (selectedCreditTypeId != null) { CreditTypesListView.SelectedIndex = _creditTypesList.IndexOf(_creditTypesList.First(x => x.CreditTypeId == selectedCreditTypeId)); } }
public CreditTypesWindow( UserRole role, ICreditTypeBusinessComponent creditTypeBusinessComponent, int? selectedCreditTypeId = null) { _creditTypeBusinessComponent = creditTypeBusinessComponent; _role = role; InitializeComponent(); RefreshPage(); if (selectedCreditTypeId != null) { CreditTypesListView.SelectedIndex = _creditTypesList.IndexOf(_creditTypesList.First(x => x.CreditTypeId == selectedCreditTypeId)); } }
public AdministratorPage(IUserBusinessComponent userBusinessComponent, IClientBusinessComponent clientBusinessComponent, ICreditTypeBusinessComponent creditTypeBusinessComponent, IKernel ninjectKernel) { this._userBusinessComponent = userBusinessComponent; this._clientBusinessComponent = clientBusinessComponent; this._creditTypeBusinessComponent = creditTypeBusinessComponent; this._ninjectKernel = ninjectKernel; InitializeComponent(); DeleteCreditTypeButton.IsEnabled = false; DisableCreditTypeButton.IsEnabled = false; UpdateClientButton.IsEnabled = false; DeleteButton.IsEnabled = false; DisableButton.IsEnabled = false; EnableButton.IsEnabled = false; defaultOption.IsChecked = true; CreditTypesListView.SelectionMode = SelectionMode.Single; UsersListView.SelectionMode = SelectionMode.Single; RefreshCreditTypes(); }
public AdministratorPage(IUserBusinessComponent userBusinessComponent, IClientBusinessComponent clientBusinessComponent, ICreditTypeBusinessComponent creditTypeBusinessComponent, IKernel ninjectKernel) { this._userBusinessComponent = userBusinessComponent; this._clientBusinessComponent = clientBusinessComponent; this._creditTypeBusinessComponent = creditTypeBusinessComponent; this._ninjectKernel = ninjectKernel; InitializeComponent(); DeleteCreditTypeButton.IsEnabled = false; DisableCreditTypeButton.IsEnabled = false; UpdateClientButton.IsEnabled = false; DeleteButton.IsEnabled = false; DisableButton.IsEnabled = false; EnableButton.IsEnabled = false; defaultOption.IsChecked = true; CreditTypesListView.SelectionMode = SelectionMode.Single; UsersListView.SelectionMode = SelectionMode.Single; RefreshCreditTypes(); }