Esempio n. 1
0
 /// <summary>
 /// Override of base-class abstract function creates an appropriately configured view.  For checkins this is
 /// always the current or "tip" view.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw)
 {
     InterOpStarTeam.StView snapshot;
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     snapshot = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     if (_label != string.Empty)
     {
         _stLabel = this.getLabelID(snapshot);
     }
     return(snapshot);
 }
Esempio n. 2
0
        /// <summary>
        /// Override of base-class abstract function creates an appropriately configured view for checkoutlists.
        /// The current view or a view of the label specified <see cref="TreeBasedTask.Label" />.
        /// </summary>
        /// <param name="raw">the unconfigured <c>View</c></param>
        /// <returns>the snapshot <c>View</c> appropriately configured.</returns>
        protected override internal InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw)
        {
            InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
            InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
            InterOpStarTeam.IStLabel      stLabel             = getLabelID(raw);

            // if a label has been supplied, use it to configure the view
            // otherwise use current view
            if (stLabel != null)
            {
                return(starTeamViewFactory.Create(raw, starTeamViewConfiguration.createFromLabel(stLabel.ID)));
            }
            else
            {
                return(starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip()));
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Override of base-class abstract function creates an appropriately configured view.  For checkins this is
 /// always the current or "tip" view.
 /// </summary>
 /// <param name="raw">the unconfigured <code>View</code></param>
 /// <returns>the snapshot <code>View</code> appropriately configured.</returns>
 protected internal override InterOpStarTeam.StView createSnapshotView(InterOpStarTeam.StView raw) {
     InterOpStarTeam.StView snapshot;
     InterOpStarTeam.StViewConfigurationStaticsClass starTeamViewConfiguration = new InterOpStarTeam.StViewConfigurationStaticsClass();
     InterOpStarTeam.StViewFactory starTeamViewFactory = new InterOpStarTeam.StViewFactory();
     snapshot = starTeamViewFactory.Create(raw, starTeamViewConfiguration.createTip());
     if(_label != string.Empty) {
         _stLabel = this.getLabelID(snapshot);
     }
     return snapshot;
 }