コード例 #1
0
ファイル: HaspKeyView.cs プロジェクト: Aborvalov/Hasp
        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);
                }
            }
        }