Example #1
0
 public void ToDo(MyCommandEnum myCommandEnum, object obj)
 {
     if (myCommandEnum == MyCommandEnum.RefreshMasterList)
     {
         LoadMasterList();
     }
 }
        public void ToDo(MyCommandEnum myCommandEnum, object obj)
        {
            if (myCommandEnum == MyCommandEnum.ChangeToPlayerMode)
            {
                HideAll();
                Player1.Visibility = System.Windows.Visibility.Visible;
                (Player1 as IMyCommand).ToDo(MyCommandEnum.PlayVocabulary, obj);
            }

            if (myCommandEnum == MyCommandEnum.ChangeToHomeMode)
            {
                HideAll();
                Main1.Visibility = System.Windows.Visibility.Visible;
            }

            if (myCommandEnum == MyCommandEnum.DeleteMaster)
            {
                (Main1 as IMyCommand).ToDo(MyCommandEnum.RefreshMasterList, null);
            }
        }
 public void ToDo(MyCommandEnum changeToPlayMode, object obj)
 {
     PlayList(obj);
 }