コード例 #1
0
        private void Btn_ListeClients_Click(object sender, EventArgs e)
        {
            p_client.Controls.Clear();
            ListClient listClient = new ListClient()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = false
            };

            p_client.Controls.Add(listClient);
            listClient.Show();
        }
コード例 #2
0
 private void Btn_DesactiverClient_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow s in ListClient.g_listClient.SelectedRows)
     {
         //MessageBox.Show(s.Cells[2].Value.ToString());
         gestion      gestion = new gestion();
         List <data_> data    = new List <data_>();
         data_        data_1  = new data_();
         data_1.name   = "Active";
         data_1.type   = "int";
         data_1.valeur = "0";
         data.Add(data_1);
         gestion.Update("Clients", data, "", "ID=" + s.Cells[1].Value.ToString());
     }
     ListClient.reloadGridClient();
 }