コード例 #1
0
        private void lookupCollectorDialog()
        {
            frmLookupCollector ifrmDialog = new frmLookupCollector(tbCollector.Text);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
コード例 #2
0
        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());
            }
        }