Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            switch (cb_interval.SelectedIndex)
            {
            case 0:
            {
                MainWnd.SetTableSource("extendview");

                Properties.Settings.Default.TableSource = MainWnd.GetTableSource();
                Properties.Settings.Default.Save();
                MessageBox.Show("Saved!", "Data Interval");
            }
            break;

            case 1:
            {
                MainWnd.SetTableSource("currentyearview");

                Properties.Settings.Default.TableSource = MainWnd.GetTableSource();
                Properties.Settings.Default.Save();
                MessageBox.Show("Saved!", "Data Interval");
            }
            break;

            case 2:
            {
                MainWnd.SetTableSource("historyview");

                Properties.Settings.Default.TableSource = MainWnd.GetTableSource();
                Properties.Settings.Default.Save();
                MessageBox.Show("Saved!", "Data Interval");
            }
            break;
            }
        }