private void Btn_Save_Rule_Click(object sender, EventArgs e) { var business_rule = Business_Rules.Create_Rule(Txt_RuleName.Text, Model_information.Id); if (business_rule.Equals(true)) { if (Txt_RuleName.Text != null) { var idRuleName = Business_Rules.Search_Rule(Txt_RuleName.Text); Business_Rules.Create_Rule_Information(Txt_Statement.Text, Txt_Constraint.Text, Txt_Field_Names.Text, Txt_Table_Names.Text, Txt_Action_Taken.Text, idRuleName.Id); Business_Rules.Create_logical_elements(checkBox_Key_Type.Checked, checkBox_Key_Structure.Checked, checkBox_Uniqueness.Checked, checkBox_NullSupport.Checked, checkBox_Values_Entered_By.Checked, checkBox_Required_Value.Checked, checkBox_Default_Value.Checked, checkBox_Ranges_Values.Checked, checkBox_Comparisons_Allowed.Checked, checkBox_Operations_Allowed.Checked, checkBox_Edit_Rule.Checked, idRuleName.Id); Business_Rules.Create_relationship_characteristics_affected(checkBox_Deletion_Rule.Checked, checkBox_Type_Participation.Checked, checkBox_Degree_Participation.Checked, idRuleName.Id); Business_Rules.Create_physical_elements(checkBox_Data_Type.Checked, checkBox_Length.Checked, checkBox_Decimal_Places.Checked, checkBox_Character_Support.Checked, checkBox_Input_Mask.Checked, checkBox_Display_Format.Checked, idRuleName.Id); Business_Rules.Create_type(checkBox_Database_Oriented.Checked, checkBox_Application_Oriented.Checked, idRuleName.Id); var idType = Business_Rules.Search_Type(idRuleName.Id); Business_Rules.Create_categories(checkBox_Field_Specific.Checked, checkBox_Relationship_Specific.Checked, idType.Id); Business_Rules.Create_test_on(checkBox_Insert.Checked, checkBox_Update.Checked, checkBox_Delete.Checked, idType.Id); MessageBox.Show("The business rule was created."); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); } else { MessageBox.Show("The business rule was not created without the name of the rule."); } } else { MessageBox.Show("The business rule was not created."); } }
private void Btn_Return_Profile_Click(object sender, EventArgs e) { Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); }
private void Btn_Delete_Click(object sender, EventArgs e) { Business_Rules.Delete_Rule(Rule_information.Id); MessageBox.Show("Delete Rule"); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); }
private void Btn_Delete_Click(object sender, EventArgs e) { Models.Delete_Model(Model_information.Id); MessageBox.Show("Projecto borrado"); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); }
private void Btn_Update_Rule_Click(object sender, EventArgs e) { Update_Rule(); MessageBox.Show("Update Business Rule"); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); }
private void Btn_Update_project_Click(object sender, EventArgs e) { var update_models = Models.Update_Model(Txt_ProjectName.Text, Txt_ProjectDescription.Text, Model_information.Id); if (update_models.Equals(true)) { MessageBox.Show("The project was updated."); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); } else { MessageBox.Show("The project not was updated."); } }
private void Btn_Create_project_Click(object sender, EventArgs e) { var model = Models.Create_Model(Txt_ProjectName.Text, Txt_ProjectDescription.Text, Profile_information.Id); if (model.Equals(true)) { MessageBox.Show("Create project"); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); } else { MessageBox.Show("Create not project"); Form_profil form_Profil = new Form_profil(); this.Hide(); form_Profil.Show(); } }
private void Login() { var user = Users.Search(Txt_User.Text, Txt_User.Text); if (user != null) { if (user.password.Equals(Txt_Password.Text)) { Profile_information.Id = user.id; Form_profil profil = new Form_profil(); this.Hide(); profil.Show(); } else { MessageBox.Show("La contraseƱa es invalida"); } } else { MessageBox.Show("El correo no esta registrado o puede ya existir"); } }