private void lookupCollectorDialog() { frmLookupCollector ifrmDialog = new frmLookupCollector(tbCollector.Text); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void GetDialogResult(frmLookupCollector dialogForm) { this.CollectorID = dialogForm.KodeCollector; this.NamaCollector = dialogForm.NamaCollector; tbCollector.Text = NamaCollector; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }