private void addProject_Click(object sender, EventArgs e) { decimal select = Convert.ToDecimal(dataGridViewClients.SelectedRows[0].Cells[0].Value.ToString()); FaddProject.ClientId = select; FaddProject.Button += new EventHandler(ButtonClickedForProjects); FaddProject.ShowDialog(); }
public FClients(IClientService clientService, IContactService contactService, IProjectService projectService, FAddClient fAddClient, FaddProject faddProject, FUpdateProject fUpdateProject, FAddContact fAddContact, FUpdateContact fUpdateContact) { InitializeComponent(); clientPresenter = new ClientPresenter(this, clientService); contactPresenter = new ContactPresenter(this, contactService); projectPresenter = new ProjectPresenter(this, projectService); FAddClient = fAddClient; FaddProject = faddProject; FUpdateProject = fUpdateProject; FAddContact = fAddContact; FUpdateContact = fUpdateContact; }