private void Clear_All_Clicked(object sender, EventArgs eventArgs) { Number_Of_Move.Text = ""; Number_Of_Move.BackgroundColor = Color.Default; Solution = new List <HumanMoveArrow>(); BoxsToSolve = new Dictionary <TupleKey, BoxType>(); SelectPage = new SelectColorPage(this); foreach (var item in MainTableGrid.Children) { BoxView boxView = item as BoxView; if (boxView != null) { BoxVM boxVM = boxView.BindingContext as BoxVM; if (boxVM != null) { boxVM.Type = BoxType.Empty; } } } IsChange = false; }
public SolveByPositionPage() { InitializeComponent(); this.BindingContext = this; SelectPage = new SelectColorPage(this); }