Beispiel #1
0
        private void GetDialogResultUpdate(frmAccountTokoUpdate dialogForm)
        {
            TextBox1.Text = dialogForm.NoAccount;
            KodeToko      = dialogForm.KodeToko;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
Beispiel #2
0
        private void ShowDialogFormUpdate(string searchArg)
        {
            frmAccountTokoUpdate ifrmDialog = new frmAccountTokoUpdate(searchArg);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResultUpdate(ifrmDialog);
            }
            else
            {
                this.TextBox1.Focus();
                this.TextBox1.SelectAll();
            }
        }