Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddOrUpdateMember dialog = new AddOrUpdateMember();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.memberTableAdapter.ClearBeforeFill = true;
                this.memberTableAdapter.Fill(this.hateksPurchasingDataSet.Member);
            }
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddOrUpdateMember dialog = new AddOrUpdateMember(id);

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