public Form_ItemList(ItemReturnDelegate returner, string windowTitle, string csvName) : this() { this.Text = windowTitle; this.itemReturner = returner; this.csvname = csvName; }
public Form_ItemList() { this.itemList = null; this.itemReturner = null; this.searchText = null; this.useRegex = false; InitializeComponent(); this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.DefaultCellStyle.BackColor = GlobalData.Instance.data.symbolColor; this.dataGridView1.RowTemplate.Height = 20; this.AddColumn(this.dataGridView1, ColumnType.ItemId); this.AddColumn(this.dataGridView1, ColumnType.ReceiptIdButton); this.AddColumn(this.dataGridView1, ColumnType.SellerName); this.AddColumn(this.dataGridView1, ColumnType.ItemName); this.AddColumn(this.dataGridView1, ColumnType.TagPrice); this.AddColumn(this.dataGridView1, ColumnType.IsHenpin); this.AddColumn(this.dataGridView1, ColumnType.ItemReceiveTime); this.AddColumn(this.dataGridView1, ColumnType.ItemComment); this.AddColumn(this.dataGridView1, ColumnType.SellPrice); this.AddColumn(this.dataGridView1, ColumnType.SellTime); this.まとめて設定toolStripMenuItem1.Enabled = !GlobalData.Instance.data.isReadonly; this.アイテムを削除ToolStripMenuItem.Enabled = !GlobalData.Instance.data.isReadonly; this.addDGVEvents(this.dataGridView1); }
public ItemsShow(ItemReturnDelegate returner, string windowTitle) { InitializeComponent(); itemReturner = returner; this.itemsGridView1.Context = new DBClassDataContext(Globals.ConnectionString); this.itemsGridView1.Load(returner()); }