public FirstPageForm() { InitializeComponent(); catogeryChart.Visible = false; //RateMe.ReadCategory() is defined as static class so it is easier and reuse of the code catogeryList.DataSource = RateMe.ReadCategory(); ratedata(); rateMe_Enter(); ratedDatagridview2(); }
private void catogeryAddition_Click(object sender, EventArgs e) { if (catogeryAddTxt.Text == "") { MessageBox.Show("Please add Something"); } else { CatogeryAdditionAdmin category = new CatogeryAdditionAdmin(catogeryAddTxt.Text); //RateMe.ReadCategory() is defined as static class so it is easier and reuse of the code catogeryList.DataSource = RateMe.ReadCategory(); catogeryAddTxt.Text = ""; MessageBox.Show("Success"); //ratedata(); //rateMe_Enter(); FirstPageForm fr = new FirstPageForm(); fr.Show(); this.Hide(); } }
private void reset_Click(object sender, EventArgs e) { Reset(); //RateMe.ReadCategory() is defined as static class so it is easier and reuse of the code catogeryList.DataSource = RateMe.ReadCategory(); }