コード例 #1
0
 public AD7RegGroupProperty(AD7Engine engine, enum_DEBUGPROP_INFO_FLAGS dwFields, RegisterGroup grp, Tuple <int, string>[] values)
 {
     _engine      = engine;
     _group       = grp;
     _values      = values;
     PropertyInfo = CreateInfo(dwFields);
 }
コード例 #2
0
        public static void AssertWeeklyCalendarHasDayExcluded(RegisterGroup group, DayOfWeek includedDay)
        {
            var weeklyCalendar = FindCalendarOfType <WeeklyCalendar>(group);

            Assert.IsTrue(weeklyCalendar.IsDayExcluded(includedDay),
                          "day of week of {0} was expected to be excluded in the calendar but wasn't.",
                          includedDay);
        }
コード例 #3
0
ファイル: PointFeature.cs プロジェクト: Mikezar/Avaris.NLP
 public PointFeature(RegisterGroup previous, RegisterGroup next, bool isEOS)
 {
     Feature = new PointAttributeGroup()
     {
         Previous = previous,
         Next     = next
     };
     IsEOS = isEOS;
 }
コード例 #4
0
 public RegisterViewModel(string dpyno, string process, bool result)
 {
     Header        = new Header(dpyno);
     RegisterGroup = new RegisterGroup(dpyno, process);
     if (result)
     {
         RegistResultMessage = Resources.TextResource.RegistSuccess;
     }
     else
     {
         RegistResultMessage = Resources.TextResource.RegistFailure;
     }
 }
コード例 #5
0
        public static void AssertDailyCalendarIsTimeExcluded(RegisterGroup group, int hour, int minute, int sec)
        {
            DateTimeOffset date = DateTimeOffset.Now;

            date = new DateTimeOffset(date.Year, date.Month, date.Day,
                                      hour, minute, sec, date.Offset);

            date = date.ToUniversalTime();

            var dailyCal = FindCalendarOfType <LocalDailyCalendar>(group);

            Assert.IsFalse(dailyCal.IsTimeIncluded(date), "{0} as expected to be excluded in the daily calendar but wasn't", date);
        }
コード例 #6
0
        public IHttpActionResult CreateGroup([FromBody] RegisterGroup newGroup)
        {
            Group group = new Group();

            group.Owner_Id    = RequestContext.Principal.Identity.GetUserId();
            group.Name        = newGroup.Name;
            group.Description = newGroup.Description;
            IEnumerable <Station> stations = _stationsRepo.GetMultipleStations(newGroup.StationIds);

            group.Stations = new Collection <Station>(stations.ToList());
            group          = _repo.CreateGroup(group);
            return(Ok(group));
        }
コード例 #7
0
        private static T FindCalendarOfType <T>(RegisterGroup group) where T : ICalendar
        {
            bool      found = false;
            ICalendar cal   = group.Calendar;

            while (cal != null)
            {
                if (cal is T)
                {
                    found = true;
                    break;
                }

                cal = cal.CalendarBase;
            }

            if (!found)
            {
                Assert.Fail("could not find a calendar or base calendar of type {0}", typeof(T));
            }

            return((T)cal);
        }
コード例 #8
0
 public LeftShiftOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #9
0
 public BitwiseXorOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #10
0
 public RegisterViewModel(string dpyno, string process)
 {
     Header        = new Header(dpyno);
     RegisterGroup = new RegisterGroup(dpyno, process);
 }
コード例 #11
0
 public SetEqualOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #12
0
 public SetLessThanOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #13
0
 public BranchZeroOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #14
0
 public AdvancedJumpOperationUnit(RegisterGroup register) : base(register)
 {
 }
コード例 #15
0
 public PointAttributeGroup(string prev, string next)
 {
     Previous = GetAttribute(prev);
     Next     = GetAttribute(next);
 }