public tabCreateChange() { InitializeComponent(); estateHandler = new EstateHandler(); comboBoxCountry.DataSource = Countries.GetValues(typeof(Countries)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); comboBox3.DataSource = Category.GetValues(typeof(Category)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); comboBox5.DataSource = TypeAll.GetValues(typeof(TypeAll)); lblDynamicTxt1.Text = "---------"; }
/// <summary> /// Constructor to the components /// </summary> public tabCreateChange() { InitializeComponent(); btnSaveChanges.Enabled = false; estateHandler = new EstateHandler(listBox1); comboBoxCountry.DataSource = Countries.GetValues(typeof(Countries)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); comboBox3.DataSource = Category.GetValues(typeof(Category)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); comboBox5.DataSource = TypeAll.GetValues(typeof(TypeAll)); lblDynamicTxt1.Text = "---------"; btnChangeEstate.BackColor = Color.FromArgb(140, 135, 222); btnCreateEstate.BackColor = Color.FromArgb(140, 135, 222); btnChooseImage.BackColor = Color.FromArgb(140, 135, 222); btnSaveChanges.BackColor = Color.FromArgb(168, 165, 209); }
/// <summary> /// Constructor to the components /// </summary> public GUI() { InitializeComponent(); btnSaveChanges.Enabled = false; estateManager = new EstateManager(listBox1); comboBoxCountry.DataSource = Countries.GetValues(typeof(Countries)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); comboBoxCategory.DataSource = Category.GetValues(typeof(Category)); comboBoxLegalForm.DataSource = LegalForms.GetValues(typeof(LegalForms)); lblDynamicTxt1.Text = "---------"; btnChangeEstate.BackColor = Color.FromArgb(140, 135, 222); btnCreateEstate.BackColor = Color.FromArgb(140, 135, 222); btnChooseImage.BackColor = Color.FromArgb(140, 135, 222); btnSaveChanges.BackColor = Color.FromArgb(168, 165, 209); btnDeleteAll.BackColor = Color.FromArgb(140, 135, 222); btnDelete.BackColor = Color.FromArgb(140, 135, 222); btnChangeEstate.BackColor = Color.FromArgb(140, 135, 222); btnGenerateEstates.BackColor = Color.FromArgb(140, 135, 222); btnSearch.BackColor = Color.FromArgb(140, 135, 222); btnShowAll.BackColor = Color.FromArgb(140, 135, 222); }