Exemplo n.º 1
0
        private void GetDialogResult(frmAccountTokoLookup dialogForm)
        {
            TextBox1.Text = dialogForm.NoAccount;
            KodeToko      = dialogForm.KodeToko;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
Exemplo n.º 2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmAccountTokoLookup ifrmDialog = new frmAccountTokoLookup(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else if (ifrmDialog.DialogResult == DialogResult.None)
            {
                ShowDialogFormUpdate(TextBox1.Text);
            }
        }