Esempio n. 1
0
        private void btn_save_user_settings_Click(object sender, EventArgs e)
        {
            current_x_axis          = x_axis_groups.FirstOrDefault(x => x.id == grouping.WEAPON);
            current_y_axis          = y_axis_groups.FirstOrDefault(x => x.id == metric.DAMAGE);
            current_result_limit    = 0;
            current_min_sample_size = 15;

            cbXaxis.Text         = current_x_axis.name;
            cbYaxis.Text         = current_y_axis.name;
            cbMinSampleSize.Text = "15";
            cbChartType.Text     = "Column";
            cb_min_max.Text      = "Average";

            Filter.ResetFilterSelections(filter_selections);

            dt_start_date.Value = DateTime.Now;
            dt_end_date.Value   = DateTime.Now;

            populate_comparison_chart();
        }
Esempio n. 2
0
        public void reset_comparision_dropdowns()
        {
            cbXaxis.Items.Clear();
            cbYaxis.Items.Clear();
            cbMinSampleSize.Items.Clear();
            cbChartType.Items.Clear();

            foreach (grouping_category group in x_axis_groups)
            {
                cbXaxis.Items.Add(group.name);
            }

            foreach (metric_category group in y_axis_groups)
            {
                cbYaxis.Items.Add(group.name);
            }

            foreach (string group in min_sample_size_groups)
            {
                cbMinSampleSize.Items.Add(group);
            }

            foreach (chart_type chart in chart_type_list)
            {
                cbChartType.Items.Add(chart.chart_name);
            }

            current_x_axis          = x_axis_groups.FirstOrDefault(x => x.id == grouping.WEAPON);
            current_y_axis          = y_axis_groups.FirstOrDefault(x => x.id == metric.DAMAGE);
            current_result_limit    = 0;
            current_min_sample_size = 15;

            cbXaxis.Text         = current_x_axis.name;
            cbYaxis.Text         = current_y_axis.name;
            cbMinSampleSize.Text = "15";
            cbChartType.Text     = "Column";
            cb_min_max.Text      = "Average";
        }
Esempio n. 3
0
 private void cbXaxis_SelectedIndexChanged(object sender, EventArgs e)
 {
     current_x_axis = x_axis_groups.FirstOrDefault(x => x.name == cbXaxis.SelectedItem.ToString());
     populate_comparison_chart();
 }