public void SetPoint(ocmengine.Waypoint pnt)
 {
     m_point = pnt;
     descriptionEntry.Buffer.Text = pnt.Desc;
     flagEntry.Active = GetPTTypeCode(pnt.Symbol);
     nameEntry.Text = pnt.Name;
     locationWidget.Latitude = pnt.Lat;
     locationWidget.Longitude = pnt.Lon;
 }
 public void SetNameMode(ocmengine.WaypointNameMode mode)
 {
     switch (mode)
     {
         case ocmengine.WaypointNameMode.CODE:
             nameMode.Active = 0;
             break;
         case ocmengine.WaypointNameMode.NAME:
             nameMode.Active = 1;
             break;
         default:
             nameMode.Active = 2;
             break;
     }
 }
Esempio n. 3
0
        void HandleAppCacheStoreReadCache(object sender, ocmengine.ReadCacheArgs args)
        {
            m_Model.Add(args.Cache);
            if (!args.Cache.Available)
                m_disabledOrArchivedCount++;
            else if (args.Cache.Archived)
                m_disabledOrArchivedCount++;
            if (args.Cache.Found)
                m_foundCount++;
            if (m_App.OwnerIDs.Contains(args.Cache.OwnerID) || m_App.OwnerIDs.Contains(args.Cache.PlacedBy))
                m_mineCount++;
            m_visibleCount++;

            m_Count++;
            if (m_Count == 50)
            {
                loadProgress.Pulse();
                OCMApp.UpdateGUIThread();
                m_Count = 0;
            }
        }
        public void SetDescMode(ocmengine.WaypointDescMode mode)
        {
            switch (mode)
            {
                case ocmengine.WaypointDescMode.DESC:
                    descMode.Active = 0;
                    break;
                case ocmengine.WaypointDescMode.CODESIZEANDHINT:
                    descMode.Active = 1;
                    break;
                default:
                    descMode.Active = 2;
                    break;

            }
        }