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

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.unitTableAdapter.ClearBeforeFill = true;
                this.unitTableAdapter.Fill(this.hateksPurchasingDataSet.Unit);
            }
        }
Exemple #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddOrUpdateUnitsDialog dialog = new AddOrUpdateUnitsDialog(id);

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