コード例 #1
0
ファイル: AddAccount.cs プロジェクト: dhanushka95/POS
        private void AddAccount_Shown(object sender, EventArgs e)
        {
            cmbCounterName.Focus();
            Connector connection = new MYSQLDatabaseConnection();

            connection.establish();

            List <DatabaseColumn> Data = connection.GetCounter();

            //  counterList.Clear();
            cmbCounterName.Items.Clear();
            foreach (DatabaseColumn data in Data)
            {
                cmbCounterName.Items.Add(data.counter_name);
                counterList.Add(data);
            }
        }