Example #1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmMekanikLookup ifrmDialog = new frmMekanikLookup(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Example #2
0
        private void GetDialogResult(frmMekanikLookup dialogForm)
        {
            txtLookupName.Text = dialogForm.NamaMekanik;
            txtLookupCode.Text = dialogForm.KodeMekanik;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
Example #3
0
        private void ShowDialogForm()
        {
            frmMekanikLookup ifrmDialog = new frmMekanikLookup();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }