コード例 #1
0
        public static void Load()
        {
            hotspots.Clear();
            List <Hotspot> spots = (List <Hotspot>)LoadSave.Load(hotspotsFileName, typeof(List <Hotspot>));

            if (spots != null)
            {
                hotspots.AddRange(spots.ToArray());
            }
        }
コード例 #2
0
        public static void Load()
        {
            Shops.Clear();
            List <Shop> shops = (List <Shop>)LoadSave.Load(shopFileName, typeof(List <Shop>));

            if (shops != null)
            {
                Shops.AddRange(shops.ToArray());
            }
        }
コード例 #3
0
        public static void Load()
        {
            Groups.Clear();
            List <GroupSettings> groups = (List <GroupSettings>)LoadSave.Load(groupSettingsFileName, typeof(List <GroupSettings>));

            if (groups != null)
            {
                Groups.AddRange(groups.ToArray());
            }
        }
コード例 #4
0
        public void Load()
        {
            Items.Clear();
            List <string> items = (List <string>)LoadSave.Load(groupFileName, typeof(List <string>));

            if (items != null)
            {
                Items.AddRange(items.ToArray());
            }
        }
コード例 #5
0
        public static void Load()
        {
            files.Clear();
            List <string> recentfiles = (List <string>)LoadSave.Load(recentFilesFile, typeof(List <string>));

            if (recentfiles != null)
            {
                files.AddRange(recentfiles.ToArray());
            }
        }
コード例 #6
0
        public static void Load()
        {
            Ads.Clear();
            List <AdSettings> ads = (List <AdSettings>)LoadSave.Load(adsFileName, typeof(List <AdSettings>));

            if (ads != null)
            {
                Ads.AddRange(ads.ToArray());
            }
            IsLoaded = true;
        }
コード例 #7
0
 public static void Load()
 {
     instance = (User)LoadSave.Load(userFile, typeof(User));
     if (instance == null)
     {
         instance = new User();
         Save(); // Save default passwords
     }
     else
     {
         instance.adminPassword  = EncryptionHelper.Decrypt(instance.adminPassword);
         instance.clientPassword = EncryptionHelper.Decrypt(instance.clientPassword);
     }
 }
コード例 #8
0
        private void btnLoadProject_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                currentPlace = LoadSave.Load(dlg.FileName);
                imagePath    = Path.GetDirectoryName(dlg.FileName) + "\\images";

                currentPath  = currentPlace.Paths[0];
                currentPoint = currentPath.Points[0];
                currentAngle = 0;

                LoadImage();
            }
        }
コード例 #9
0
 public void Load()
 {
     instance = (LayoutSettings)LoadSave.Load(layoutSettingsFile, typeof(LayoutSettings));
 }
コード例 #10
0
 public void Load()
 {
     instance = (YouAreHereLocation)LoadSave.Load(youarehereLocationFile, typeof(YouAreHereLocation));
 }
コード例 #11
0
 public static void Load()
 {
     groupSettings = (GroupSettings)LoadSave.Load(groupSettingsFileName, typeof(GroupSettings));
 }
コード例 #12
0
 public static void Load()
 {
     instance = (LogoSettings)LoadSave.Load(logoSettingsPath, typeof(LogoSettings));
 }