예제 #1
0
        public AdjustmentTypeDirectory(string strAdjustmentType, ScoutTypes scoutType, string userFolder)
        {
            this.scoutType = scoutType;

            adjustmentType = (AdjustmentTypes)Enum.Parse(typeof(AdjustmentTypes), strAdjustmentType);

            this.userFolder = userFolder;
        }
        public void Refresh(string userFolder)
        {
            ScoutTypes.Clear();

            foreach (string strScoutType in Enum.GetNames(typeof(ScoutTypes)))
            {
                ScoutTypeViewModel stv = new ScoutTypeViewModel(new ScoutTypeDirectory(strScoutType, (int)Mode.Formation, userFolder));
                stv.IsExpanded = true;
                ScoutTypes.Add(stv);
            }
        }
예제 #3
0
        public NewPersonnel(ScoutTypes scoutType)
        {
            InitializeComponent();

            this.DataContext              = Personnel;
            Personnel.ScoutType           = scoutType;
            this.radioOffense.IsEnabled   = false;
            this.radioDefense.IsEnabled   = false;
            this.gridSelector.DataContext = PositionSelector;
            this.listAllPosition.Items.SortDescriptions.Add(new SortDescription("Value", ListSortDirection.Ascending));
            this.listSelectedPosition.Items.SortDescriptions.Add(new SortDescription("Value", ListSortDirection.Ascending));
        }
예제 #4
0
        // 10-26-2011 Scott
        public string GetField(ScoutTypes scoutType, bool bSubField)
        {
            switch (scoutType)
            {
            case ScoutTypes.Offensive:
                return(bSubField ? OffensiveSubField : OffensiveMainField);

            case ScoutTypes.Defensive:
                return(bSubField ? DefensiveSubField : DefensiveMainField);

            case ScoutTypes.Kicks:
                return(bSubField ? KickSubField : KickMainField);

            default:
                return(bSubField ? OffensiveSubField : OffensiveMainField);
            }
        }
예제 #5
0
        public PVFormationViewModel(ScoutTypes scoutType, PlayViewModel ptm)
            : base(ptm, false)
        {
            ScoutType = scoutType;

            Path = ptm.PlayPath;

            if (scoutType == ScoutTypes.Offensive)
            {
                this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Off Formation.ico";
                this.Name  = ptm.OffensiveFormation;
            }

            if (scoutType == ScoutTypes.Defensive)
            {
                this.Image = AppDomain.CurrentDomain.BaseDirectory + @"Resource\Def Formation.ico";
                this.Name  = ptm.DefensiveFormation;
            }
        }
예제 #6
0
        public void Init(ScoutTypes scoutType)
        {
            ExistingPositions.Clear();
            switch (scoutType)
            {
            case ScoutTypes.Offensive:
                foreach (Position pos in PersonnelEditor.Setting.GetOffensePositions())
                {
                    ExistingPositions.Add(pos);
                }
                break;

            case ScoutTypes.Defensive:
                foreach (Position pos in PersonnelEditor.Setting.GetDefensePositions())
                {
                    ExistingPositions.Add(pos);
                }
                break;
            }
            SelectedPositions.Clear();
        }
예제 #7
0
 public FVFormationModelCollection(ScoutTypes scoutType)
 {
     ScoutType = scoutType;
 }
예제 #8
0
        public FVFormationModel(string formationName, ScoutTypes scoutType)
        {
            FormationName = formationName;

            ScoutType = scoutType;
        }