private void doMainMenuClick(object sender, EventArgs e) { cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } else { m_UCs.ShowScreen_Main(); } }
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() { cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } else { mCash mCash = new mCash(); LINuser.Text = cAcc.accUserName; } }
public void Init() { m_UCs.SetMessageBox(pan_MessageBox); cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } else { m_cash = new mCash(); } }
public void InitApp() { this._info = FileVersionInfo.GetVersionInfo(_assembly.Location); m_UCs = new mUCs(this); cAccount m_acc = new mAccount().getAccount(); if (m_acc == null) { m_UCs.ShowScreen_Login(); } else { m_UCs.ShowScreen_Main(); } labVersion.Text = "Version: " + this._info.FileVersion; }
public void Init() { cAcc = new mAccount().getAccount(); if (cAcc == null) { m_UCs.ShowScreen_Login(); } else { m_cash = new mCash(); var lCash = m_cash.doReadList(); for (int i = 0; i < lCash.Count; i++) { dgTransactions.Rows.Add(); dgTransactions.Rows[i].Cells["DateTime"].Value = lCash[i].pcaDT.ToString("dd/MM/yyyy HH:mm"); dgTransactions.Rows[i].Cells["Person"].Value = lCash[i].accUserName; dgTransactions.Rows[i].Cells["Category"].Value = lCash[i].pccName; dgTransactions.Rows[i].Cells["Amount"].Value = lCash[i].pcaAmount.ToString("C2"); } } }