コード例 #1
0
        private void btnNewBroker_Click(object sender, EventArgs e)
        {
            //We will default to showing an Agency broker for new brokers.
            frmBroker newBrokerForm = new frmBroker(true);

            newBrokerForm.ShowDialog();

            ReloadAgencyBrokerGrid();
        }
コード例 #2
0
        private void dataGridAgencies_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            //A row has been double clicked. We need to get the BrokerID value, extract the Broker instance
            //and then pass this to the form to display the Broker.
            int brokerIDSelected = Convert.ToInt32(dataGridAgencies.SelectedRows[0].Cells["BrokerID"].Value.ToString());

            //PUT THIS IN A Using BLOCK?
            JobLeadRepo thisJobLeadRepo = new JobLeadRepo();
            iBroker     brokerSelected  = thisJobLeadRepo.GetBroker(brokerIDSelected);

            frmBroker newBrokerForm = new frmBroker(brokerSelected);

            newBrokerForm.ShowDialog();

            //Now reinitialise the Agency Broker Grid
            ReloadAgencyBrokerGrid();
        }
コード例 #3
0
        private void ShowNewBrokerForm(bool isAgency)
        {
            frmBroker newBrokerForm = new frmBroker(isAgency);

            newBrokerForm.ShowDialog();
        }
コード例 #4
0
        private void ShowExistingBrokerForm(iBroker selectedBroker)
        {
            frmBroker newBrokerForm = new frmBroker(selectedBroker);

            newBrokerForm.ShowDialog();
        }