public override void showFormChange() { //base.showFormChange(); CurrencyManager currencyManager = (CurrencyManager) PollsDataGridView.BindingContext[PollsDataGridView.DataSource, PollsDataGridView.DataMember]; if (currencyManager.Count > 0) { //PollsDataSet.POLL_DEPOSRow tmpRow = (PollsDataSet.POLL_DEPOSRow) currencyManager.Current; //pollsDataSet.POLL_DEPOS.PrimaryKey DeposAnketAddForm tmpF = new DeposAnketAddForm(_user, pollsDataSet.POLL_DEPOS.First( c => c.DATE_POLL_DEPOS == (DateTime) PollsDataGridView.SelectedRows[0].Cells[ "DATE_POLL_DEPOS"].Value && c.NUMBER_POLL_DEPOS == (decimal) PollsDataGridView.SelectedRows[0].Cells[ "NUMBER_POLL_DEPOS"].Value && c.REF_OTD == (decimal) PollsDataGridView.SelectedRows[0].Cells[ "REF_OTD"].Value)) { Owner = this, PollsDataSet = pollsDataSet, PollsBindingSource = pollsBindingSource }; tmpF.ShowDialog(); } }
public override void showFormAdd() { DeposAnketAddForm tmpF = new DeposAnketAddForm(_user); tmpF.Owner = this; tmpF.PollsDataSet = pollsDataSet; tmpF.PollsBindingSource = pollsBindingSource; tmpF.ShowDialog(); //tmpF.ShowDialog(); }