void ChoiceTapped(object sender, EventArgs e) { if (sender != null) { SelectColorChoice choice = sender as SelectColorChoice; if (choice != null) { if (choice.Box != null) { boxTapped.Type = choice.Box.Type; TupleKey index = new TupleKey(Column, 8 - Row); try { var RefBox = ParentPage.BoxsToSolve[index]; ParentPage.BoxsToSolve[index] = boxTapped.Type; } catch (KeyNotFoundException) { ParentPage.BoxsToSolve.Add(index, boxTapped.Type); } ParentPage.IsChange = true; ParentPage.IsHasSolution = false; Navigation.PopModalAsync(); } } else { return; } } else { return; } }
public static string Serialize(Tuple <BigInteger, BigInteger> signTuple) { var tupleKey = new TupleKey { R = signTuple.Item1.ToString(), S = signTuple.Item2.ToString() }; return(JsonConvert.SerializeObject(tupleKey)); }