Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 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();
 }