private void frmOrganization_Load(object sender, EventArgs e) { cbEmployee.DataSource = LookUpQueries.GetEmployees(); cbEmployee.DisplayMember = "EmployeeDisplayName"; cbEmployee.ValueMember = EmployeeFieldIndex.EmployeeID.ToString(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrderSearchSizeLocation); }
private void FrmTrace_Load(object sender, EventArgs e) { DQETraceLevel = Settings.Default.TraceLevel; LinqTraceLevel = Settings.Default.LinqTraceLevel; AWHelper.SetWindowSizeAndLocation(this, Settings.Default.TraceWindowSizeLocation); checkBoxSQLTrace_CheckedChanged(checkBoxSQLTrace, e); }
private void frmOrderSearch_Load(object sender, EventArgs e) { var previousState = Settings.Default.State; listBoxCountry.DataSource = LookUpQueries.GetCountryRegionCollection(); listBoxCountry.DisplayMember = CountryRegionFieldIndex.Name.ToString(); listBoxCountry.ValueMember = CountryRegionFieldIndex.CountryRegionCode.ToString(); cbState.DataSource = LookUpQueries.GetStateProvinceCollection(); cbState.DisplayMember = StateProvinceFieldIndex.Name.ToString(); cbState.ValueMember = StateProvinceFieldIndex.StateProvinceID.ToString(); dtpDateFrom.Checked = Settings.Default.FilterOnFromDate; dtpDateTo.Checked = Settings.Default.FilterOnToDate; cbState.Text = previousState; buttonClearCountries_Click(sender, e); if (Settings.Default.Countries != null && listBoxCountry.Items.Count > 0) { foreach (var selectedRow in Settings.Default.Countries) { listBoxCountry.SelectedIndices.Add(Convert.ToInt32(selectedRow)); } } AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrderSearchSizeLocation); }
private void frmOrderEdit_Load(object sender, EventArgs e) { PopulateListBoxes(); if (_order != null && _order.IsNew == false) { PopulateOrderData(); PopulateOrderDetailData(); } AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrderEditSizeLocation); }
private void frmOrderSearch_Load(object sender, EventArgs e) { var previousState = Settings.Default.State; var previousCountry = Settings.Default.Country; cbCountry.DataSource = LookUpQueries.GetCountryRegionCollection(); cbCountry.DisplayMember = CountryRegionFieldIndex.Name.ToString(); cbCountry.ValueMember = CountryRegionFieldIndex.CountryRegionCode.ToString(); cbState.DataSource = LookUpQueries.GetStateProvinceCollection(); cbState.DisplayMember = StateProvinceFieldIndex.Name.ToString(); cbState.ValueMember = StateProvinceFieldIndex.StateProvinceID.ToString(); dtpDateFrom.Checked = Settings.Default.FilterOnFromDate; dtpDateTo.Checked = Settings.Default.FilterOnToDate; cbState.Text = previousState; cbCountry.Text = previousCountry; AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrderSearchSizeLocation); }
private void EntitiesAndFields_Load(object sender, EventArgs e) { AWHelper.SetWindowSizeAndLocation(this, Settings.Default.EntitiesAndFieldsSizeLocation); treeViewEntities.Nodes.Clear(); foreach (var entityType in GetEntitiesTypes().OrderBy(t => t.Name)) { var entityNode = treeViewEntities.Nodes.Add(entityType.Name, entityType.Name.Replace("Entity", "")); entityNode.Tag = entityType; foreach (var browsableProperty in ListBindingHelper.GetListItemProperties(entityType).Cast <PropertyDescriptor>(). Where(p => !typeof(IList).IsAssignableFrom(p.PropertyType)).OrderBy(p => p.Name)) { var fieldNode = entityNode.Nodes.Add(browsableProperty.Name); if (typeof(IEntityCore).IsAssignableFrom(browsableProperty.PropertyType)) { fieldNode.ImageIndex = 3; fieldNode.Tag = browsableProperty; } else { fieldNode.ImageIndex = 1; } } foreach (var entityTypeProperty in GetPropertiesOfTypeEntity(entityType)) { var fieldNode = entityNode.Nodes.Add(entityTypeProperty.Name); fieldNode.ImageIndex = 3; fieldNode.Tag = entityTypeProperty; } foreach (var browsableProperty in ListBindingHelper.GetListItemProperties(entityType).Cast <PropertyDescriptor>(). Where(p => typeof(IList).IsAssignableFrom(p.PropertyType)).OrderBy(p => p.Name)) { var fieldNode = entityNode.Nodes.Add(browsableProperty.Name); fieldNode.Tag = browsableProperty; fieldNode.ImageIndex = 2; } } }
private void frmVacationBonus_Load(object sender, EventArgs e) { AWHelper.SetWindowSizeAndLocation(this, Settings.Default.VacationSizeLocation); }
private void FrmOrganizationStructureLoad(object sender, EventArgs e) { EmployeeCollection = LookUpQueries.GetEmployees(); EmployeeCollection.RemovedEntitiesTracker = new EmployeeCollection(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.OrganizationStructureSizeLocation); }
private void frmCustomers_Load(object sender, EventArgs e) { AWHelper.SetWindowSizeAndLocation(this, Settings.Default.CustomersSizeLocation); dgvResults.AutoGenerateColumns = true; }
public FrmQueryRunner() { InitializeComponent(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.QueryRunnerSizeAndLocation); }
public FrmDataEditor() { InitializeComponent(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.EntityViewerSizeLocation); }
public FrmHierarchyEditor() { InitializeComponent(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.HierarchyEditorSizeLocation); }
public FrmMain() { InitializeComponent(); AWHelper.SetWindowSizeAndLocation(this, Settings.Default.MainWindowSizeLocation); }