Пример #1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmLookUpJenisMotor ifrmDialog = new frmLookUpJenisMotor(dt, searchArg);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Пример #2
0
        private void GetDialogResult(frmLookUpJenisMotor dialogForm)
        {
            JenisMotor = dialogForm._JenisMotor;
            Tahun      = dialogForm._Tahun;
            Harga      = dialogForm._Harga;
            RowID      = dialogForm._RowID;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }