Example #1
0
 static void Main()
 {
     CDbConnection.ReadConfig();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Form1());
 }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            CDbConnection.ReadConfig();
            this.checkedListBox1.Items.Clear();
            DataTable station_tb = CDbConnection.getDt("select Address from v_Gate order by id_pole");

            for (int i = 0; i < station_tb.Rows.Count; i++)
            {
                this.checkedListBox1.Items.Add(station_tb.Rows[i]["Address"]);
            }
            this.dtpBegin.Value = DateTime.Now.AddDays(-1);
        }