コード例 #1
0
ファイル: TradeList.cs プロジェクト: thomotron/Phinix
 private void onTradeCompletedOrCancelledHandler(object sender, CompleteTradeEventArgs args)
 {
     lock (tradeRowsLock)
     {
         // Remove the trade and mark the rows to be updated
         tradeRows.RemoveAll(tradeRow => tradeRow.TradeId == args.TradeId);
         tradesUpdated = true;
     }
 }
コード例 #2
0
ファイル: TradeWindow.cs プロジェクト: Maatss/Phinix
        /// <summary>
        /// Event handler for the <see cref="OnTradeCompleted"/> event.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void OnTradeCompleted(object sender, CompleteTradeEventArgs args)
        {
            // Delete our selected items
            foreach (StackedThings itemStack in itemStacks)
            {
                itemStack.DeleteSelected();
            }

            // Close the window
            Close();
        }
コード例 #3
0
ファイル: TradeWindow.cs プロジェクト: Maatss/Phinix
 /// <summary>
 /// Event handler for the <see cref="OnTradeCancelled"/> event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void OnTradeCancelled(object sender, CompleteTradeEventArgs args)
 {
     // Close the window
     Close();
 }