Exemplo n.º 1
0
 private void ButtonDelNoBuyItem_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridViewNoBuyList.SelectedRows)
     {
         UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)((DataRowView)row.DataBoundItem).Row;
         uIDataSet.BaseGoodNoBuyList.Rows.Remove(item);
     }
 }
Exemplo n.º 2
0
 private void ButtonEditNoBuyItem_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridViewNoBuyList.SelectedRows)
     {
         UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)((DataRowView)row.DataBoundItem).Row;
         new EditNoBuyItemWindow(gameData, item).ShowDialog();
     }
 }
Exemplo n.º 3
0
        public EditNoBuyItemWindow(FLGameData gameData, UIDataSet.BaseGoodNoBuyListRow dataItem)
        {
            InitializeComponent();

            this.gameData = gameData;
            this.dataItem = dataItem;
            this.Text     = "Edit No Buy Item: " + dataItem.BaseDescription;

            hashListBindingSource.DataSource = gameData.DataStore;
            FilterUpdate();
        }
Exemplo n.º 4
0
 private void DataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)(((DataRowView)(dataGridViewNoBuyList[e.ColumnIndex, e.RowIndex].OwningRow).DataBoundItem)).Row;
     new EditNoBuyItemWindow(gameData, item).ShowDialog();
 }