public static TrickDescriptionFragment newInstance(Trick trick) { var frag = new TrickDescriptionFragment(); // Supply num input as an argument. var args = new Bundle(); args.PutString("desc", trick.Description); args.PutString("type", trick.Type.ToString()); args.PutString("name", trick.Name); args.PutString("vidID", trick.SearchID); frag.Arguments = args; return frag; }
public TrickButton(TextView text, ImageButton button, CheckBox box, Trick trick) { Text = text; Button = button; Box = box; Trick = trick; }
public TrickButton(TextView text, CheckBox box, Trick trick) { Text = text; Box = box; Trick = trick; }
public void AlterTrick(int index, Trick trick) { Data.RanksTricks[(int)selectedRank][index] = trick; trickButtons[index].Trick = trick; trickButtons[index].Text.Text = trick.ToString(); trickButtons[index].Box.Checked = trick.Cleared; trickButtons[index].Box.Clickable = trickButtons[index].Trick.Name != Trick.NoTrickSelected.Name; //Disable check button if no trick selected. }