Beispiel #1
0
        private void ManagerForm_Load(object sender, EventArgs e)
        {
            ExtensionMethods.DoubleBuffered(this.usersDataGridView, true);
            selectedRow = 0;
            SqlManipulator sql = new SqlManipulator();

            try
            {
                makeTableUsers(sql.getDataLogin());
                //usersDataGridView.Columns[0].Visible = false;
                var cities = sql.queryCities();
                cityComboBox.DataSource = cities;

                // this.cityTableTableAdapter.Fill(this.daftarDataSet1.CityTable);
                makeTable(sql.getDataCity());
                makeTableUsers(sql.getDataLogin());
                makeValidationTable(sql.getValidationData());
                startendDate                = sql.findMaxminMonthDay(0);
                this.versionTextBox.Text    = global.currentVersion.ToString();
                this.versionTextBox.Enabled = false;
                DGV_SetStyle(this.cityDataGridView);


                changeCityDGVname();

                changeColumnName();
                selectedRow = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }