public User() { this.active = true; this.administrator = false; rightsListChangeHandler = new PersistentListChangeHandler <Right>(); relationsListChangeHandler = new PersistentListChangeHandler <Relation>(); }
public PeriodName() { intervalListChangeHandler = new PersistentListChangeHandler <PeriodInterval>(); childrenListChangeHandler = new PersistentListChangeHandler <PeriodName>(); IsDefault = false; this.defaultData = false; }
public Target() { targetItemListChangeHandler = new PersistentListChangeHandler <TargetItem>(); this.cardinality = -1; this.visibleInShortcut = true; this.defaultData = false; }
public Measure() { this.childrenListChangeHandler = new PersistentListChangeHandler <Measure>(); IsDefault = false; this.visibleInShortcut = true; this.defaultData = false; }
public List <PeriodInterval> buildWeekPeriods() { List <PeriodInterval> periods = new List <PeriodInterval>(0); int fromYear = periodFromTime.Year; int toYear = periodToTime.Year; int position = 0; long dateFrom = periodFromTime.Ticks; long dateTo = periodToTime.Ticks; TimeSpan difference = periodToTime - periodFromTime; double day = difference.TotalDays; DateTime fromDate = periodFromTime; double d = 0; if (this.intervalListChangeHandler == null) { this.intervalListChangeHandler = new PersistentListChangeHandler <PeriodInterval>(); } while (d < day) { fromDate = periodFromTime.AddDays(d); string name = getWeekName(fromDate, Granularity.WEEK.name); DateTime from = new DateTime(fromDate.Year, fromDate.Month, fromDate.Day); int result = (int)fromDate.DayOfWeek; double diffToEndWeek = (7 - result); double dayToAdd = day <= diffToEndWeek ? day : diffToEndWeek; DateTime to = fromDate.AddDays(dayToAdd); periods.Add(new PeriodInterval(position, name, from, to)); this.intervalListChangeHandler.AddNew(new PeriodInterval(position, name, from, to)); d += (dayToAdd + 1); } return(periods); }
public Attribute() { this.related = false; this.incremental = false; this.canUserModifyValues = true; this.lastValue = 0; this.childrenListChangeHandler = new PersistentListChangeHandler <Attribute>(); this.valueListChangeHandler = new PersistentListChangeHandler <AttributeValue>(); this.FilterAttributeValues = new List <AttributeValue>(0); LoadValues = false; setAttributeToAttributeValue(); IsDefault = false; IsAddNewItem = false; IsShowMoreItem = false; this.Items = new ObservableCollection <Target>(); }
public PresentationSlide containsSlide(int position) { if (slideListChangeHandler == null) { slideListChangeHandler = new PersistentListChangeHandler <PresentationSlide>(); } foreach (PresentationSlide item in slideListChangeHandler.Items) { if (position == item.position) { return(item); } } return(null); }
public PresentationSlideItem containsShape(int position) { if (slideItemsListChangeHandler == null) { slideItemsListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>(); } foreach (PresentationSlideItem item in slideItemsListChangeHandler.getItems()) { if (item == null) { continue; } if (position == item.index) { return(item); } } return(null); }
public TreeActionCondition() { conditionItems = new PersistentListChangeHandler <TreeActionConditionItem>(); TreeActionConditionItem IfConditionItem = new TreeActionConditionItem(); IfConditionItem.IfStatement = true; IfConditionItem.position = 0; TreeActionConditionItem thenConditionItem = new TreeActionConditionItem(); thenConditionItem.ThenStatement = true; IfConditionItem.position = 1; TreeActionConditionItem ElseConditionItem = new TreeActionConditionItem(); ElseConditionItem.ElseStatement = true; IfConditionItem.position = 2; this.AddValue(IfConditionItem); this.AddValue(thenConditionItem); this.AddValue(ElseConditionItem); }
public Presentation() { slideListChangeHandler = new PersistentListChangeHandler <PresentationSlide>(); }
public CombinedTransformationTree() { this.treeItemListChangeHandler = new PersistentListChangeHandler <CombinedTransformationTreeItem>(); this.visibleInShortcut = true; }
public PresentationSlideItem() { childrenListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>(); }
/// <summary> /// Contructeur par défaut /// </summary> public PeriodInterval() { childrens = new ObservableCollection <PeriodInterval>(); childrenListChangeHandler = new PersistentListChangeHandler <PeriodInterval>(); }
public DesignDimensionLine() { this.itemListChangeHandler = new PersistentListChangeHandler <LineItem>(); }
public StatementActionItem(string instruction, string name) { this.instruction = instruction; this.transformationTableName = name; treeActionConditions = new PersistentListChangeHandler <TreeActionCondition>(); }
public StatementActionItem() { treeActionConditions = new PersistentListChangeHandler <TreeActionCondition>(); }
public PresentationSlide() { slideItemsListChangeHandler = new PersistentListChangeHandler <PresentationSlideItem>(); }
public TreeActionConditionItem() { statementActionItems = new PersistentListChangeHandler <StatementActionItem>(); }
public DesignDimension() { lineListChangeHandler = new PersistentListChangeHandler <DesignDimensionLine>(); }
public AutomaticSourcingSheet(string _name, int _position, bool firstRow, string range, PersistentListChangeHandler <AutomaticSourcingColumn> listeColumns) { this.automaticSourcingColumnListChangeHandler = new PersistentListChangeHandler <AutomaticSourcingColumn>(); this.Name = _name; this.position = _position; this.selectedRange = range; this.firstRowColumn = firstRow; if (listeColumns != null) { this.automaticSourcingColumnListChangeHandler = listeColumns; } }
public Profil() { this.rightsListChangeHandler = new PersistentListChangeHandler <Right>(); }
public Role() { this.childrenListChangeHandler = new PersistentListChangeHandler <Role>(); IsDefault = false; }
public WriteOffField() { writeOffFieldValueListChangeHandler = new PersistentListChangeHandler <WriteOffFieldValue>(); }
public void setRights(PersistentListChangeHandler <Right> listRights) { this.isRight = true; this.rightsListChangeHandler = listRights; }
public Period() { itemListChangeHandler = new PersistentListChangeHandler <PeriodItem>(); }
public WriteOffConfiguration() { fieldListChangeHandler = new PersistentListChangeHandler <WriteOffField>(); }
/** * Constructor */ public GrilleRelationship() { itemListChangeHandler = new PersistentListChangeHandler <GrilleRelationshipItem>(); }