public void Init() { m_UCs.SetMessageBox(pan_MessageBox); cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } m_cash = new mCash(); ButtonPCSpendEnable(false); var dict = new Dictionary <string, string>(); var lCat = m_cash.getCategoryList(); dict.Add(pcc_select, "Select Category"); for (int i = 0; i < lCat.Count; i++) { string key = lCat[i].pccKey; string value = lCat[i].pccName; if (String.Compare(key, CashCategory.PCC_CashAdd.ToString(), true) != 0) { dict.Add(key, value); } } PCScombo.DataSource = new BindingSource(dict, null); PCScombo.DisplayMember = "Value"; PCScombo.ValueMember = "Key"; }
public void Init() { m_UCs.SetMessageBox(pan_MessageBox); cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } else { m_cash = new mCash(); } }