public void Add(CardArgs source) { if (source == null) { throw new Exception("CardArgs is null!"); } this.method_6(source); }
private void method_7(object object_0, CardArgs cardArgs_0) { EventHandler <CardArgs> expr_06 = this.eventHandler_0; if (expr_06 != null) { expr_06(this, cardArgs_0); } }
internal void method_2(object object_0, CardArgs cardArgs_1) { EventHandler <CardArgs> expr_0B = this.cardContainer_0.eventHandler_0; if (expr_0B != null) { expr_0B(this.cardContainer_0, cardArgs_1); } }
private void method_6(CardArgs cardArgs_0) { Card card = new Card(cardArgs_0.Key ?? "", cardArgs_0.Title ?? "", cardArgs_0.Price, cardArgs_0.ImagePath, this.Currency); card.Theme(this.cardTheme_0, this.color_0, this.color_1); this.CardWrapper.Controls.Add(card); this.list_0.Add(card); Card expr_6C = card; expr_6C.OnCount = (EventHandler <CardArgs>)Delegate.Combine(expr_6C.OnCount, new EventHandler <CardArgs>(this.method_7)); }
private Task method_5(CardArgs cardArgs_0) { CardContainer.Class17 @class = new CardContainer.Class17(); @class.cardContainer_0 = this; @class.cardArgs_0 = cardArgs_0; @class.asyncTaskMethodBuilder_0 = AsyncTaskMethodBuilder.Create(); @class.int_0 = -1; AsyncTaskMethodBuilder asyncTaskMethodBuilder_ = @class.asyncTaskMethodBuilder_0; asyncTaskMethodBuilder_.Start <CardContainer.Class17>(ref @class); return(@class.asyncTaskMethodBuilder_0.Task); }
public Task AddAsync(CardArgs source) { CardContainer.Class8 @class = new CardContainer.Class8(); @class.cardContainer_0 = this; @class.cardArgs_0 = source; @class.asyncTaskMethodBuilder_0 = AsyncTaskMethodBuilder.Create(); @class.int_0 = -1; AsyncTaskMethodBuilder asyncTaskMethodBuilder_ = @class.asyncTaskMethodBuilder_0; asyncTaskMethodBuilder_.Start <CardContainer.Class8>(ref @class); return(@class.asyncTaskMethodBuilder_0.Task); }
private void method_8(string string_5, int int_3) { Card.Class3 @class = new Card.Class3(); @class.string_0 = string_5; CardArgs cardArgs = Card.List.Find(new Predicate <CardArgs>(@class.method_0)); if (cardArgs == null) { Card.List.Add(this.CardEventArgs); } else { cardArgs.Quantity = int_3; } }
private void method_9(string string_5, int int_3) { Card.Class4 @class = new Card.Class4(); @class.string_0 = string_5; CardArgs cardArgs = Card.List.Find(new Predicate <CardArgs>(@class.method_0)); if (cardArgs != null) { if (cardArgs.Quantity <= 1) { Card.List.Remove(cardArgs); } else { cardArgs.Quantity = int_3; } } }
void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter <IEnumerable <CardArgs> > awaiter; if (num != 0) { if (num == 1) { goto IL_CE; } this.class9_0.cardContainer_0.CardWrapper.Visible = false; awaiter = this.class9_0.cardContainer_0.method_3(this.class9_0.ienumerable_0).GetAwaiter(); if (!awaiter.IsCompleted) { int arg_55_1 = 0; num = 0; this.int_0 = arg_55_1; this.taskAwaiter_0 = awaiter; CardContainer.Class9.Class10 @class = this; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <IEnumerable <CardArgs> >, CardContainer.Class9.Class10>(ref awaiter, ref @class); return; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter <IEnumerable <CardArgs> >); int arg_8E_1 = -1; num = -1; this.int_0 = arg_8E_1; } this.ienumerable_0 = awaiter.GetResult(); this.class9_0.ienumerable_0 = this.ienumerable_0; this.ienumerable_0 = null; this.ienumerator_0 = this.class9_0.ienumerable_0.GetEnumerator(); IL_CE: try { TaskAwaiter awaiter2; if (num == 1) { awaiter2 = this.taskAwaiter_1; this.taskAwaiter_1 = default(TaskAwaiter); int arg_EC_1 = -1; num = -1; this.int_0 = arg_EC_1; goto IL_136; } IL_F3: if (!this.ienumerator_0.MoveNext()) { goto IL_186; } this.cardArgs_0 = this.ienumerator_0.Current; awaiter2 = this.class9_0.cardContainer_0.method_5(this.cardArgs_0).GetAwaiter(); if (!awaiter2.IsCompleted) { int arg_14C_1 = 1; num = 1; this.int_0 = arg_14C_1; this.taskAwaiter_1 = awaiter2; CardContainer.Class9.Class10 @class = this; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, CardContainer.Class9.Class10>(ref awaiter2, ref @class); return; } IL_136: awaiter2.GetResult(); this.cardArgs_0 = null; goto IL_F3; } finally { if (num < 0 && this.ienumerator_0 != null) { this.ienumerator_0.Dispose(); } } IL_186: this.ienumerator_0 = null; this.class9_0.cardContainer_0.CardWrapper.Visible = true; EventHandler <CardArgs> expr_1B3 = this.class9_0.cardContainer_0.OnLoaded; if (expr_1B3 != null) { expr_1B3(this.class9_0.cardContainer_0, new CardArgs { TotalCards = this.class9_0.ienumerable_0.Count <CardArgs>() }); } this.class9_0.cardContainer_0.timer_0.Stop(); } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
internal string method_5(CardArgs cardArgs_0) { return(cardArgs_0.Title); }
internal bool method_0(CardArgs cardArgs_0) { return(cardArgs_0.Key == this.string_0); }