Ejemplo n.º 1
0
 private void ClosePositions(object sender, RoutedEventArgs e)
 {
     if (isClosingPositions)
     {
         return;
     }
     try {
         isClosingPositions = true;
         fw.ClosePositions();
     } catch (Exception exc) {
         Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(exc.Message)));
         return;
     } finally {
         isClosingPositions = false;
     }
 }