private void ClientToolStripMenuItem_Click(object sender, EventArgs e) { using (ClientView client = new ClientView()) { client.DataUpdated += presenter.Views; client.ShowDialog(); } }
private void ButtonSearchClient_Click(object sender, EventArgs e) { using (ClientView client = new ClientView(true)) { client.ShowDialog(); if (client.SearchIdClient != null) { presenter.GetByClient(client.SearchIdClient); } } }
private void ButtonSearchByClient_Click(object sender, EventArgs e) { radioButtonActive.Checked = false; radioButtonAll.Checked = false; radioButtonPastDue.Checked = false; using (ClientView client = new ClientView(true)) { client.ShowDialog(); if (client.SearchIdClient != null) { DefaultView(); presenterHaspKey.GetByClient(client.SearchIdClient); labelClient.Text = client.SearchIdClient.Name; labelClient.Location = new System.Drawing.Point((this.Width - 25) - labelClient.Width, labelClient.Location.Y); } } }