Пример #1
0
        public void SetRoutineName(int address, string name)
        {
            var routine = routineTable.GetByAddress(address);

            if (routine.Name == name)
            {
                return;
            }

            routine.Name = name;

            var handler = RoutineNameChanged;

            if (handler != null)
            {
                handler(this, new RoutineNameChangedEventArgs(routine));
            }
        }
Пример #2
0
        private ZRoutine GetRoutineByAddress(int address)
        {
            ZRoutine routine;

            if (!routineTable.TryGetByAddress(address, out routine))
            {
                routineTable.Add(address);
                routine = routineTable.GetByAddress(address);
            }

            return(routine);
        }