private bool IsValidData() { return (Validation.IsPresent(txtCountry) && Validation.IsPresent(txtDirector) && Validation.IsPresent(txtGenre) && Validation.IsPresent(txtTime) && Validation.IsPresent(txtTitle) && Validation.IsPresent(txtYear) && Validation.IsInt32(txtYear) && Validation.IsInt32(txtTime) && Validation.IsntEmpty(listCast, textCast)); }
private void btnAddCast_Click(object sender, EventArgs e) { if (Validation.IsLetter(textCast)) { Cast Cast = new Cast(); Cast.Castmember = textCast.Text; this.addListOfCast.Add(Cast); listCast.Items.Add(Cast); textCast.Text = ""; } }