Exemple #1
0
        private void btnAddDead_Click(object sender, EventArgs e)
        {
            var form   = new AddDeadForm();
            var result = form.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                this.deadViewTableAdapter.Fill(this.farmManageDataSet.DeadView);
            }
        }
Exemple #2
0
        private void dgvOut_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            var form = new AddDeadForm();

            form.OrderOutID = ((this.deadViewBindingSource[e.RowIndex] as DataRowView).Row as FarmManageDataSet.DeadViewRow).OrderOutID;
            var result = form.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                this.deadViewTableAdapter.Fill(farmManageDataSet.DeadView);
            }
        }