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

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.currencyTableAdapter.ClearBeforeFill = true;
                this.currencyTableAdapter.Fill(this.hateksPurchasingDataSet.Currency);
            }
        }
Beispiel #2
0
        private void btnEdit_Click_1(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddOrUpdateCurrrenciesDialog dialog = new AddOrUpdateCurrrenciesDialog(id);

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