Esempio n. 1
0
        //Events
        private void comboMaterialType_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            MaterialType cmt = comboMaterialType.SelectedItem as MaterialType;

            if (cmt._MaterialType == "Other")
            {
                if (openFormMT)
                {
                    openFormMT = false;
                    MaterialTypeForm materialtypeForm = new MaterialTypeForm();
                    materialtypeForm.ShowDialog();
                    BindMaterialType();
                    DisabledByMaterialType(txtTitle, txtAuthor, comboGenre, comboLanguage, txtISBN, comboMaterialLocation, txtPublishHouse, txtPublishDate, txtQuantity, txtPages);
                }



                else
                {
                    openFormMT = true;
                }
            }
            else
            {
                EnabledByMaterialType(txtTitle, txtAuthor, comboGenre, comboLanguage, txtISBN, comboMaterialLocation, txtPublishHouse, txtPublishDate, txtQuantity, txtPages);
            }
        }
 private void alterMaterialTypesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Materials_Forms.MaterialTypeForm alterMaterialType = new Materials_Forms.MaterialTypeForm();
     alterMaterialType.ShowDialog();
 }