private void onSendToMultiGiftCardEvent(object _param) { List <Int32> _lstId = new List <Int32>(); bool detechChecked = false; var i = 0; while (i < GiftCard.Count) { if (GiftCard[i].IsChecked == true) { detechChecked = true; _lstId.Add(GiftCard[i].GiftCardID); } i++; } if (!detechChecked) { ModernDialog md = new ModernDialog(); md.CloseButton.FindResource("close").ToString(); md.Content = App.Current.FindResource("select_least_one_send").ToString(); md.Title = App.Current.FindResource("notification").ToString(); md.ShowDialog(); } else { Views.Setting.GiftCard_View page = new Views.Setting.GiftCard_View(_lstId); page.ShowDialog(); } }
private void onViewGiftCardEvent(string param) { List <Int32> _listId = new List <Int32>(); _listId.Add(Convert.ToInt32(param)); Views.Setting.GiftCard_View page = new Views.Setting.GiftCard_View(_listId); page.ShowDialog(); }