コード例 #1
0
        public string PilihCustomer()
        {
            var result       = "";
            var searchForm   = new SearchingForm <CustomerSearchModel>(_customerBL);
            var resultDialog = searchForm.ShowDialog();

            if (resultDialog == DialogResult.OK)
            {
                result = searchForm.SelectedDataKey;
            }
            var supplier = _customerBL.GetData(result);

            if (supplier != null)
            {
                _view.CustomerName = supplier.CustomerName;
                _view.Alamat       = supplier.Alamat1;
                _view.NoTelpon     = supplier.NoTelp;
            }

            return(result);
        }