コード例 #1
0
        public static SendItemToResult ShowDialog(Window owner, int gameIndex, ushort id, uint maxCount)
        {
            SendItemToWindow window = new SendItemToWindow(gameIndex, id, maxCount);

            window.Owner = owner;
            var result = window.ShowDialog();

            if (result != null && result.Value)
            {
                SendItemToResult sendItemResult = new SendItemToResult();
                sendItemResult.Count     = window.count;
                sendItemResult.GameIndex = window.gameIndex;
                sendItemResult.Pocket    = window.pocket;
                return(sendItemResult);
            }
            return(null);
        }
コード例 #2
0
 public static SendItemToResult ShowDialog(Window owner, int gameIndex, ushort id, uint maxCount)
 {
     SendItemToWindow window = new SendItemToWindow(gameIndex, id, maxCount);
     window.Owner = owner;
     var result = window.ShowDialog();
     if (result != null && result.Value) {
         SendItemToResult sendItemResult = new SendItemToResult();
         sendItemResult.Count = window.count;
         sendItemResult.GameIndex = window.gameIndex;
         sendItemResult.Pocket = window.pocket;
         return sendItemResult;
     }
     return null;
 }