public PlayViewModel(Play play, TreeViewItemViewModel tvivm)
            : base(tvivm, false)
        {
            this.play = play;

            // 09-15-2010 Scott
            PlayInfo playInfo = new PlayInfo();

            playInfo.Load(play.Path + ".PlayInfo");
            this.playInfo = playInfo;

            FormationViewModel fvm = Parent as FormationViewModel;

            if (fvm != null)
            {
                if (fvm.Image.Contains("Off"))
                {
                    this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Play.ico";
                }

                if (fvm.Image.Contains("Def"))
                {
                    this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Play.ico";
                }

                // 10-26-2011 Scott
                if (fvm.Image.Contains("Kick"))
                {
                    this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Play.ico";
                }
            }
            else
            {
                this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Play.ico";
            }

            ToolTip = play.Name;
        }
        public void Load(string userFolder)
        {
            string strRunPlayPath = userFolder + @"\Playbook\Run";

            string strPassPlayPath = userFolder + @"\Playbook\Pass";

            foreach (string strRunPlay in Directory.GetFiles(strRunPlayPath, "*.Play"))
            {
                PlayInfo playInfo = new PlayInfo();

                playInfo.Load(strRunPlay + ".PlayInfo");

                AddPlayInfo(playInfo);
            }

            foreach (string strPassPlay in Directory.GetFiles(strPassPlayPath, "*.Play"))
            {
                PlayInfo playInfo = new PlayInfo();

                playInfo.Load(strPassPlay + ".PlayInfo");

                AddPlayInfo(playInfo);
            }
        }