예제 #1
0
파일: MainForm.cs 프로젝트: Aborvalov/Hasp
 private void ClientToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (ClientView client = new ClientView())
     {
         client.DataUpdated += presenter.Views;
         client.ShowDialog();
     }
 }
예제 #2
0
파일: MainForm.cs 프로젝트: Aborvalov/Hasp
        private void ButtonSearchClient_Click(object sender, EventArgs e)
        {
            using (ClientView client = new ClientView(true))
            {
                client.ShowDialog();

                if (client.SearchIdClient != null)
                {
                    presenter.GetByClient(client.SearchIdClient);
                }
            }
        }
예제 #3
0
        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);
                }
            }
        }