void LvInvoicesDoubleClick(object sender, EventArgs e)
 {
     if(lvInvoices.SelectedIndices.Count>0)
     {
         DevicesForm dfForm = new DevicesForm(invoices[lvInvoices.SelectedIndices[0]].ID,true);
         dfForm.ShowDialog();
     }
 }
 void BtnDevicesClick(object sender, EventArgs e)
 {
     if(btnDevices.Text == "Devices")
     {
         DevicesForm dfForm = new DevicesForm(invoices[lvInvoices.SelectedIndices[0]].ID,true);
         dfForm.Enabled = true;
         dfForm.ShowDialog();
     }
     else
     {
         btnDevices.Text = "Devices";
         btnEdit.Text = "Edit";
         Enabler(false);
     }
 }
 void BtnDevicesClick(object sender, EventArgs e)
 {
     DevicesForm dfForm = new DevicesForm(TheClient.ID,false);
     dfForm.Enabled = true;
     dfForm.ShowDialog();
 }