Exemplo n.º 1
0
        public void ModifyDateTableAndPriceGui(AccountingInformation backGroundInformation)
        {
            List <DateTime> DayList = new List <DateTime>();

            foreach (string d in backGroundInformation.dateMoneyRecord.Keys)
            {
                DayList.Add(Convert.ToDateTime(d));
            }
            MyMonthCalendar.BoldedDates = DayList.ToArray();
        }
Exemplo n.º 2
0
        public void DeleteItemTableSubItem(AccountingInformation backGroundInformation)
        {
            ListViewItem foundItem = MyListView.FindItemWithText(backGroundInformation.currentItemName);

            if (null == foundItem)
            {
                MessageBox.Show("backGroundInformation have no such item");
            }
            else
            {
                MyListView.Items.Remove(foundItem);
                textBox_item_name.Text  = "";
                textBox_item_price.Text = "";
            }
        }
Exemplo n.º 3
0
        public void ModifyItemTableNameAndPriceGui(AccountingInformation backGroundInformation)
        {
            ListViewItem foundItem = MyListView.FindItemWithText(backGroundInformation.currentItemName);

            if (foundItem != null)
            {
                //int a = ItemsControl.getListIndex(textBox_item.Text);

                MyListView.Items.Remove(foundItem);
            }

            ListViewItem item = new ListViewItem();

            item.SubItems.Clear();
            item.SubItems[0].Text = backGroundInformation.currentItemName;
            item.SubItems.Add(backGroundInformation.currentItemPrice);
            MyListView.Items.Add(item);
        }
Exemplo n.º 4
0
 public void ModifyTotalGui(AccountingInformation backGroundInformation)
 {
     label_Totoal_Calendar.Text = backGroundInformation.allDatePrice.ToString();
     label_Items_Total.Text     = backGroundInformation.allItemPrice.ToString();
     label_Total.Text           = backGroundInformation.totalPrice.ToString();
 }
Exemplo n.º 5
0
 public void ModifyItemPriceGui(AccountingInformation backGroundInformation)
 {
     textBox_item_price.Text = backGroundInformation.currentItemPrice;
 }
Exemplo n.º 6
0
 public void ModifyDateNameGui(AccountingInformation backGroundInformation)
 {
     label_Choose_Date.Text = backGroundInformation.currentDate;
 }
Exemplo n.º 7
0
 public void ModifyDatePriceGui(AccountingInformation backGroundInformation)
 {
     textBox_price_calendar.Text = backGroundInformation.currentDate;
 }
 public InfoAccountingReceiver()
 {
     accountingInformation = new AccountingInformation(0, 0);
 }
        public override void Execute()
        {
            AccountingInformation accountingInformation = accountingInfo.DeleteItemCommandInformation(CmdSting);

            formMain.DeleteItemTableSubItem(accountingInformation);
        }
        public override void Execute()
        {
            AccountingInformation accountingInformation = accountingInfo.ModifyTotalInformation();

            formMain.ModifyTotalGui(accountingInformation);
        }
        public override void Execute()
        {
            AccountingInformation accountingInformation = accountingInfo.ModifyItemTableNameAndPriceInformation(CmdSting);

            formMain.ModifyItemTableNameAndPriceGui(accountingInformation);
        }
        public override void Execute()
        {
            AccountingInformation accountingInformation = accountingInfo.ModifyDatePriceInformation(CmdSting);

            formMain.ModifyDatePriceGui(accountingInformation);
        }