|
|
@ -108,6 +108,12 @@ namespace FLocal.Common.dataobjects { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int totalThreadsExcludingSubboards { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return this.totalThreads - this.subBoards.Sum(board => board.totalThreads); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private string _name; |
|
|
|
private string _name; |
|
|
|
public string name { |
|
|
|
public string name { |
|
|
|
get { |
|
|
|
get { |
|
|
@ -323,7 +329,7 @@ namespace FLocal.Common.dataobjects { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, SortSpec[] sortBy) { |
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, SortSpec[] sortBy) { |
|
|
|
diapasone.total = this.totalThreads; |
|
|
|
diapasone.total = this.totalThreadsExcludingSubboards; |
|
|
|
return Thread.LoadByIds( |
|
|
|
return Thread.LoadByIds( |
|
|
|
from stringId in Config.instance.mainConnection.LoadIdsByConditions( |
|
|
|
from stringId in Config.instance.mainConnection.LoadIdsByConditions( |
|
|
|
Thread.TableSpec.instance, |
|
|
|
Thread.TableSpec.instance, |
|
|
@ -340,7 +346,7 @@ namespace FLocal.Common.dataobjects { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, bool isAscending) { |
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, bool isAscending) { |
|
|
|
diapasone.total = this.totalThreads; |
|
|
|
diapasone.total = this.totalThreadsExcludingSubboards; |
|
|
|
return this.getThreads( |
|
|
|
return this.getThreads( |
|
|
|
diapasone, |
|
|
|
diapasone, |
|
|
|
new SortSpec[] { |
|
|
|
new SortSpec[] { |
|
|
|