private void listBox8_DoubleClick(object sender, EventArgs e)
 {
     if (currentOrder != null)
     {
         Form confirmPay = new BookmakerInfClientOrder((ClientOrder)currentOrder, Text, 2);
         confirmPay.ShowDialog();
     }
 }
 private void listBox_DoubleClick(object sender, EventArgs e)
 {
     if (currentOrder != null)
     {
         if (currentOrder.GetType().IsAssignableFrom(new ClientOrder().GetType()))
         {
             Form confirmPay = new BookmakerInfClientOrder((ClientOrder)currentOrder, Text, 1);
             confirmPay.ShowDialog();
         }
         else if (currentOrder.GetType().IsAssignableFrom(new ProviderOrder().GetType()))
         {
             Form confirmPay = new BookmakerInfProviderOrder((ProviderOrder)currentOrder, Text, 1);
             confirmPay.ShowDialog();
         }
     }
 }