예제 #1
0
 //追加用コンストラクタ
 public ItemForm(
     CategoryDataSet dsCategory,
     DateTime nowDate,
     string category,
     string item,
     int money,
     string remarks)
 {
     InitializeComponent();
     categoryDataSet.Merge(dsCategory);
     monCalendar.SetDate(nowDate);
     cmbCategory.Text = category;
     txtItem.Text     = item;
     mtxtMoney.Text   = money.ToString();
     txtRemarks.Text  = remarks;
 }
예제 #2
0
 public ItemForm(CategoryDataSet dsCategory)
 {
     InitializeComponent();
     //引数のデータセットの値をデータセットに代入
     categoryDataSet.Merge(dsCategory);
 }