Exemplo n.º 1
0
 public ItemForm(CategoryDataSet dsCategory,
                 DateTime nowDate,
                 string category,
                 string item,
                 int money,
                 string remarks)
 {
     InitializeComponent();
     categoryDataSet.Merge(dsCategory);
     monthCalendar.SetDate(nowDate);
     cmbCategory.Text = category;
     txtItem.Text     = item;
     mtxtMoney.Text   = money.ToString();
     txtRemarks.Text  = remarks;
 }
Exemplo n.º 2
0
 //コンストラクタオーバーロード
 //データ変更する際に、登録画面に前回入力したデータを引き数として渡す
 public ItemForms(CategoryDataSet dsCategory,
                  DateTime oldDate,
                  string oldCatagory,
                  string oldItem,
                  string oldMoney,
                  string oldRemarks)
 {
     InitializeComponent();
     categoryDataSet.Merge(dsCategory);
     monCalendar.SetDate(oldDate);
     cmbCategory.Text = oldCatagory;
     txtItem.Text     = oldItem;
     mtxtMoney.Text   = oldMoney;
     txtRemarks.Text  = oldRemarks;
 }
Exemplo n.º 3
0
 public ItemForm(CategoryDataSet dsCategory)
 {
     InitializeComponent();
     categoryDataSet.Merge(dsCategory);
 }
Exemplo n.º 4
0
 //登録画面の分類にCategoryDataSetを引き数として渡す
 public ItemForms(CategoryDataSet dsCategory)
 {
     //登録画面の初期か
     InitializeComponent();
     categoryDataSet.Merge(dsCategory);
 }