Example #1
0
        private void ratedDatagridview2()
        {
            DataTable table2 = new DataTable();

            table2.Columns.Add("Criteria", typeof(string));
            table2.Columns.Add("Rating", typeof(int));

            Dictionary <string, int> dict = RateMe.getTotal();

            foreach (KeyValuePair <string, int> rate in dict)
            {
                table2.Rows.Add(rate.Key, rate.Value);
            }

            dataGridView2.DataSource = table2;
        }
Example #2
0
        private void generateReport_Click(object sender, EventArgs e)
        {
            Dictionary <string, int> dict = RateMe.getTotal();

            GenerateReport.ToCSV(dict);
        }