Ejemplo n.º 1
0
        private void addDrid(TransectionLogs com)
        {
            dataGridView1.DataSource = trac.Getlist();

            dataGridView1.Update();
            dataGridView1.Refresh();
        }
        public bool WithDraw(TransectionLogs tlog)
        {
            bool result = false;

            if (tlog != null)
            {
                tlogs.Tamount       = tlog.Tamount;
                tlogs.BalanceAmount = tlogs.BalanceAmount + tlog.Tamount;
                result = AddToList(tlogs);
                return(result);
            }
            else
            {
                return(result);
            }
        }
 public bool AddToList(TransectionLogs tlog)
 {
     tloglist.Add(tlog);
     return(true);
 }