private void create_button_Click(object sender, EventArgs e) { this.DialogResult = System.Windows.Forms.DialogResult.OK; this.result = new RatingFilterInfo((int)this.ratingBox1.Value, this.includehigher_checkbox.Checked); this.Close(); }