예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddDraftDialog dialog = new AddDraftDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.viewDraftTableAdapter.ClearBeforeFill = true;
                this.viewDraftTableAdapter.Fill(this.hateksPurchasingDataSet.ViewDraft);
            }
        }
예제 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (id > 0)
            {
                AddDraftDialog dialog = new AddDraftDialog(id);

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