コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddOrUpdateOfferingDialog dialog = new AddOrUpdateOfferingDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.viewOfferingTableAdapter.ClearBeforeFill = true;
                this.viewOfferingTableAdapter.Fill(this.hateksPurchasingDataSet.ViewOffering);
            }
        }
コード例 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddOrUpdateOfferingDialog dialog = new AddOrUpdateOfferingDialog(id);

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    this.viewOfferingTableAdapter.ClearBeforeFill = true;
                    this.viewOfferingTableAdapter.Fill(this.hateksPurchasingDataSet.ViewOffering);
                }
            }
            else
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("Lütfen Seçim Yapınız", "Uyarı", MessageBoxButtons.OK);
            }
        }