Пример #1
0
        public override Fragment GetItem(int position)
        {
            if (fragments[position] == null)
            {
                switch ((FragmentPosition)position)
                {
                case FragmentPosition.WorkPathFragment:
                    fragments[position] = new WorkPathFragment();
                    break;

                case FragmentPosition.WeldCountFragment:
                    fragments[position] = new WeldCountFragment();
                    break;

                case FragmentPosition.WeldConditionFragment:
                    fragments[position] = new WeldConditionFragment();
                    break;

                case FragmentPosition.BackupPathFragment:
                    fragments[position] = new BackupPathFragment();
                    break;
                }
            }
            return(fragments[position]);
        }
Пример #2
0
		public override Fragment GetItem(int position)
		{
			if (fragments[position] == null) {
				switch ((FragmentPosition)position) {
					case FragmentPosition.WorkPathFragment:
					fragments[position] = new WorkPathFragment();
					break;
					case FragmentPosition.WeldCountFragment:
					fragments[position] = new WeldCountFragment();
					break;
					case FragmentPosition.WeldConditionFragment:
					fragments[position] = new WeldConditionFragment();
					break;
					case FragmentPosition.BackupPathFragment:
					fragments[position] = new BackupPathFragment();
					break;
				}
			}
			return fragments[position];
		}