示例#1
0
            // we use "Freeze" to kind of fake immutability for now but makes it pretty
            // easy to replace with "real" immutability later
            public ImmutableProject Freeze()
            {
                var ma   = Actions.Select(mutable => mutable.Freeze()).ToList().AsReadOnly();
                var info = new ImmutableProjectInfo(ProjectId, Outcome, Type, UIKey);

                return(new ImmutableProject(info, ma));
            }
示例#2
0
 public ImmutableProject Freeze()
 {
     var ma = Actions.Select(mutable => mutable.Freeze()).ToList().AsReadOnly();
     var info = new ImmutableProjectInfo(ProjectId, Outcome, Type, UIKey);
     return new ImmutableProject(info, ma);
 }
示例#3
0
 public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> filteredActions, string actionCount)
 {
     Info = info;
     FilteredActions = filteredActions;
     ActionCount = actionCount;
 }
示例#4
0
 public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> actions)
 {
     Info = info;
     Actions = actions;
 }
示例#5
0
文件: Ui.cs 项目: vishal-h/btw-gtd
 public ProjectDisplayed(ImmutableProjectInfo project)
 {
     this.Project = project;
 }
示例#6
0
 public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> filteredActions, string actionCount)
 {
     Info            = info;
     FilteredActions = filteredActions;
     ActionCount     = actionCount;
 }
示例#7
0
 public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> actions)
 {
     Info    = info;
     Actions = actions;
 }