private async void ScheduleSaved(ScheduleSavedEventArgs obj)
        {
            var item = Patrols.SingleOrDefault(s => s.Id == obj.PatrolId);

            Patrols.Clear();
            if (item == null)
            {
                Patrols.Add(new PatrolLookupModel {
                    Id           = obj.PatrolId,
                    CustomerName = obj.CustomerName,
                    EmployeeName = obj.EmployeeName,
                    Start        = obj.PatrolStart,
                    End          = obj.PatrolEnd
                });
            }
            else
            {
                item.CustomerName = obj.CustomerName;
                item.EmployeeName = obj.EmployeeName;
                item.Start        = obj.PatrolStart;
                item.End          = obj.PatrolEnd;
            }

            await LoadPatrolsAsync();
        }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        //rotation = -1 * (transform.rotation.eulerAngles.y) * Mathf.Deg2Rad;
        //target = Quaternion.Euler(0,  + rotation, 0);

        //start = transform.rotation;

        //StartCoroutine(Rotate());
        offsetQuat = transform.rotation;//Quaternion.Euler(offset);
        pat        = GetComponent <Patrols>();
    }
Exemplo n.º 3
0
        internal bool Equals(World other)
        {
            // If parameter is null, return false.
            if (other is null)
            {
                return(false);
            }

            // Optimization for a common success case.
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(GscFileName == other.GscFileName &&
                   Administration == other.Administration &&
                   MissionObjects == other.MissionObjects &&
                   SpecialAreas == other.SpecialAreas &&
                   SoundAreas == other.SoundAreas &&
                   Patrols.Count == other.Patrols.Count && Patrols.SequenceEqual(other.Patrols));
        }