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(); }
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 = ""; } }
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); }
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(); }
public void ModifyItemPriceGui(AccountingInformation backGroundInformation) { textBox_item_price.Text = backGroundInformation.currentItemPrice; }
public void ModifyDateNameGui(AccountingInformation backGroundInformation) { label_Choose_Date.Text = backGroundInformation.currentDate; }
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); }