Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddOrUpdateDraftTypesDialod dialog = new AddOrUpdateDraftTypesDialod();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.draftTypeTableAdapter.ClearBeforeFill = true;
                this.draftTypeTableAdapter.Fill(this.hateksPurchasingDataSet.DraftType);
            }
        }
Esempio n. 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddOrUpdateDraftTypesDialod dialog = new AddOrUpdateDraftTypesDialod(id);

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