private void listBox6_DoubleClick(object sender, EventArgs e)
 {
     if (currentOrder != null)
     {
         Form confirmPay = new BookmakerInfProviderOrder((ProviderOrder)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();
         }
     }
 }
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     if (currentProviderOrder != null)
     {
         if (currentProviderOrder.Provider == null)
         {
             Form add = new MakeProviderOrder(currentProviderOrder, Text);
             add.ShowDialog();
         }
         else
         {
             Form edit = new BookmakerInfProviderOrder(currentProviderOrder, Text, 3);
             edit.ShowDialog();
         }
         refresh();
     }
 }