private void OpenSelectedProject() { if (LoginAllowed()) { this.selectedProject = ((BussinessLogic.Project)(this.listBox_ProjectList.SelectedItem)); this.MainForm.OpenedProject = this.selectedProject; this.MainForm.UserInfo = this.userInfo; this.Close(); } else { this.HandleInValidLogin(); } }
private void button_Save_Click(object sender, EventArgs e) { if (this.textBox_Name.Text.Equals(IOQMessages.ProjectNameIsMandetory)) this.textBox_Name.Text = ""; if (this.textBox_Name.Text.Trim().Length == 0) { this.textBox_Name.BackColor = Color.Red; this.textBox_Name.Text = IOQMessages.ProjectNameIsMandetory; } else { String name = this.textBox_Name.Text; String desc = this.textBox_description.Text; BussinessLogic.Project pp = new ScrumQueue.BussinessLogic.Project(-1, name, desc); int id = BussinessLogic.Project.SaveProject(pp); this.createdProject = new ScrumQueue.BussinessLogic.Project(id, name, desc); this.Close(); } }
private void button_Save_Click(object sender, EventArgs e) { if (this.textBox_Name.Text.Equals(IOQMessages.ProjectNameIsMandetory)) { this.textBox_Name.Text = ""; } if (this.textBox_Name.Text.Trim().Length == 0) { this.textBox_Name.BackColor = Color.Red; this.textBox_Name.Text = IOQMessages.ProjectNameIsMandetory; } else { String name = this.textBox_Name.Text; String desc = this.textBox_description.Text; BussinessLogic.Project pp = new ScrumQueue.BussinessLogic.Project(-1, name, desc); int id = BussinessLogic.Project.SaveProject(pp); this.createdProject = new ScrumQueue.BussinessLogic.Project(id, name, desc); this.Close(); } }