• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IsolatedStorage.IsolatedStorageSettings类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.IO.IsolatedStorage.IsolatedStorageSettings的典型用法代码示例。如果您正苦于以下问题:C# IsolatedStorageSettings类的具体用法?C# IsolatedStorageSettings怎么用?C# IsolatedStorageSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IsolatedStorageSettings类属于System.IO.IsolatedStorage命名空间,在下文中一共展示了IsolatedStorageSettings类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MainPage

        // Constructor
        public MainPage()
        {
            InitializeComponent();
            Loaded += MainPage_Loaded;

            appSettings = IsolatedStorageSettings.ApplicationSettings;
        }
开发者ID:jprateek,项目名称:Windowsphoneproject,代码行数:8,代码来源:MainPage.xaml.cs


示例2: MainPage

        public MainPage()
        {
            InitializeComponent();

            isoSettings = IsolatedStorageSettings.ApplicationSettings;

            basicJsonObjectConverter = new JsonConverter<BasicJsonObject>();
            // TODO Remove
            App.Settings.APP_ID = "cylinder-manager-e30";
            App.Settings.API_KEY = "d6c6b4b7aa0f4162a04f23ebd34c6d2e";
            App.Settings.ADMIN_KEY = "e4b4709e31924777a4521df5fbf57692";

            data = new BasicJsonObject();
            // use two-way binding to set BasicjsonObject's key/value pairs
            JsonObjectGrid.DataContext = data;

            if (isoSettings.Contains(SETTINGS_BUCKET_NAME))
                BucketName_Box.Text = isoSettings[SETTINGS_BUCKET_NAME] as string;
            if (isoSettings.Contains(SETTINGS_OBJECT_ID))
                ObjectId_Box.Text = isoSettings[SETTINGS_OBJECT_ID] as string;
            if (isoSettings.Contains(SETTINGS_CCID))
                CCID_Box.Text = isoSettings[SETTINGS_CCID] as string;
            if (isoSettings.Contains(SETTINGS_CLIENT_ID))
                ClientId_Box.Text = isoSettings[SETTINGS_CLIENT_ID] as string;
        }
开发者ID:ledlie,项目名称:simperium-windows-phone-lib-driver,代码行数:25,代码来源:MainPage.xaml.cs


示例3: Login

        public Login()
        {

            InitializeComponent();

            this.Loaded += new RoutedEventHandler(Login_Loaded);
            //加载所有公司、部门、岗位信息
            // organClient.GetCompanyActivedAsync("");
            //登录控件禁用  在加载完组织架构后 再激活
            this.OK.IsEnabled = false;
            this.OK.Content = "加载中....";
            settings = IsolatedStorageSettings.ApplicationSettings;

            if (settings.Contains("SYS_PostInfo") && settings["SYS_PostInfo"] != null)
            {
                App.Current.Resources.Add("SYS_PostInfo", settings["SYS_PostInfo"]);
                App.Current.Resources.Add("SYS_CompanyInfo", settings["SYS_CompanyInfo"]);
                App.Current.Resources.Add("SYS_DepartmentInfo", settings["SYS_DepartmentInfo"]);
            }
            isDict = true;
            isHR = true;

            if (settings.Contains("UserName"))
            {
                UserName.Text = Convert.ToString(settings["UserName"]);
                paw.Password = Convert.ToString(settings["UserPWD"]);               
            }            
            RefreshBtn();
            
        }
开发者ID:JuRogn,项目名称:OA,代码行数:30,代码来源:Login.xaml.cs


示例4: PhotoProcess

 // Constructor
 public PhotoProcess()
 {
     InitializeComponent();
     appSettings = IsolatedStorageSettings.ApplicationSettings;
     Loaded += new System.Windows.RoutedEventHandler(MainPage_Loaded);
     OrientationChanged += new EventHandler<OrientationChangedEventArgs>(MainPage_OrientationChanged);
 }
开发者ID:bikila,项目名称:MobiPicasa,代码行数:8,代码来源:PhotoProcess.xaml.cs


示例5: Cache

 static Cache()
 {
     _lckStandards = new object();
     _appSettings = IsolatedStorageSettings
         .ApplicationSettings;
     _standards = new Dictionary<int, ImageSource>();
 }
开发者ID:MarioBinder,项目名称:7Pass,代码行数:7,代码来源:Cache.cs


示例6: Test

 public Test()
 {
     InitializeComponent();
     m_storageSettings = IsolatedStorageSettings.ApplicationSettings;
     LoadScheduleDetails();
     this.BackKeyPress += new EventHandler<System.ComponentModel.CancelEventArgs>(Test_BackKeyPress);
 }
开发者ID:manojattal,项目名称:WindowsPhone7Apps,代码行数:7,代码来源:Test.xaml.cs


示例7: App

        /// <summary>
        /// Constructor for the Application object.
        /// </summary>
        public App()
        {


            // Global handler for uncaught exceptions. 
            UnhandledException += Application_UnhandledException;

            // Standard Silverlight initialization
            InitializeComponent();

            // Phone-specific initialization
            InitializePhoneApplication();

            appSettings = IsolatedStorageSettings.ApplicationSettings;
            // Show graphics profiling information while debugging.
            if (System.Diagnostics.Debugger.IsAttached)
            {
                // Display the current frame rate counters.
                Application.Current.Host.Settings.EnableFrameRateCounter = true;

                // Show the areas of the app that are being redrawn in each frame.
                //Application.Current.Host.Settings.EnableRedrawRegions = true;

                // Enable non-production analysis visualization mode, 
                // which shows areas of a page that are handed off to GPU with a colored overlay.
                //Application.Current.Host.Settings.EnableCacheVisualization = true;

                // Disable the application idle detection by setting the UserIdleDetectionMode property of the
                // application's PhoneApplicationService object to Disabled.
                // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run
                // and consume battery power when the user is not using the phone.
                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
            }

        }
开发者ID:bikila,项目名称:MobiPicasa,代码行数:38,代码来源:App.xaml.cs


示例8: AccountViewModel

 public AccountViewModel(Simperium.Settings _settings)
 {
     isoSettings = IsolatedStorageSettings.ApplicationSettings;
     settings = _settings;
     if (isoSettings.Contains(SETTINGS_APP_ID))
         settings.APP_ID = (isoSettings[SETTINGS_APP_ID] as string);
 }
开发者ID:ledlie,项目名称:simperium-windows-phone-lib-driver,代码行数:7,代码来源:AccountViewModel.cs


示例9: About

        public About()
        {
            InitializeComponent();

            settings = IsolatedStorageSettings.ApplicationSettings;

            // Load initial settings
            if (settings.Contains("UseLocation"))
            {
                locationtoggle.IsChecked = settings["UseLocation"].ToString() == "true";
            }
            else
            {
                settings["UseLocation"] = "false";
                locationtoggle.IsChecked = false;
            }

            textBlock1.Text = "WHEWCIRC\nVersion "+ appversion +"\n\nCoded lovingly by\nJeff Stephens in St. Louis\[email protected]";
            textBlock1.Text += "\n\nFor support, please contact\[email protected]";
            textBlock1.Text += "\n\nThanks to Colin E. for his great article on\nanimation!";

            // Change logo if light theme
            Visibility isLight = (Visibility)Resources["PhoneLightThemeVisibility"]; // for light theme

            if (isLight == System.Windows.Visibility.Visible)
            {
                image1.Source = new BitmapImage(new Uri("/WhewCirc;component/icons/Marketplace_Device_173x173.png", UriKind.Relative));
            }
        }
开发者ID:jeffstephens,项目名称:wp7_whewcirc,代码行数:29,代码来源:About.xaml.cs


示例10: NotificationHub

        /// <summary>
        /// Initializes a new instance of the NotificationHub class.
        /// </summary>
        /// <param name="notificationHubPath"></param>
        /// <param name="connectionString"></param>
        public NotificationHub(string notificationHubPath, string connectionString)
        {
            setNotificationHubPath(notificationHubPath);
            setConnectionString(connectionString);

            isolatedStorageSettings = IsolatedStorageSettings.ApplicationSettings;
        }
开发者ID:hungys,项目名称:azure-notificationhubs-wns-for-silverlight81,代码行数:12,代码来源:NotificationHub.cs


示例11: CheckICollectionKeyPairValue

		void CheckICollectionKeyPairValue (IsolatedStorageSettings settings)
		{
			ICollection<KeyValuePair<string, object>> c = (settings as ICollection<KeyValuePair<string, object>>);
			Assert.AreEqual (0, c.Count, "Count");
			Assert.IsFalse (c.IsReadOnly, "IsReadOnly");
			Assert.IsNotNull (c.GetEnumerator (), "GetEnumerator");

			KeyValuePair<string,object> kvp = new KeyValuePair<string,object> ("key", "value");
			c.Add (kvp);
			Assert.AreEqual (1, c.Count, "Add/Count");
			Assert.Throws (delegate { c.Add (new KeyValuePair<string, object> (null, "value")); }, typeof (ArgumentNullException), "Add(KVP(null))");
			Assert.Throws (delegate { c.Add (new KeyValuePair<string, object> ("key", "value")); }, typeof (ArgumentException), "Add(twice)");

			Assert.IsTrue (c.Contains (kvp), "Contains(kvp)");
			Assert.IsTrue (c.Contains (new KeyValuePair<string, object> ("key", "value")), "Contains(new)");
			Assert.IsFalse (c.Contains (new KeyValuePair<string, object> ("value", "key")), "Contains(bad)");

			c.Remove (kvp);
			Assert.IsFalse (c.Contains (kvp), "Remove/Contains(kvp)");
			Assert.AreEqual (0, c.Count, "Remove/Count");

			c.Add (kvp);
			c.Clear ();
			Assert.AreEqual (0, c.Count, "Clear/Count");
		}
开发者ID:dfr0,项目名称:moon,代码行数:25,代码来源:IsolatedStorageSettingsTest.cs


示例12: classicgamelevel

        public classicgamelevel()
        {
            InitializeComponent();
          

            var prog = new ProgressIndicator { Text = "Lord of The Math", IsVisible = true, IsIndeterminate = false, Value = 0 };
            SystemTray.SetProgressIndicator(this, prog);

           

            stroge = IsolatedStorageSettings.ApplicationSettings;

            if (!stroge.Contains("levelclassic"))
            {
                IsolatedStorageSettings.ApplicationSettings["levelclassic"] = "1";
                IsolatedStorageSettings.ApplicationSettings.Save();

            }
            //gameoverden gelince limitsizi açması için
            if (stroge.Contains("hangigrid"))
            {
                if (IsolatedStorageSettings.ApplicationSettings["hangigrid"] == "1")
                {
                    kırmızı.Visibility = Visibility.Visible;
                    yesil.Visibility = Visibility.Collapsed;
                    imgkırmızı.Opacity = 100;
                    imgyesil.Opacity = 0;
                }

            }
            levelresimleri();


        }
开发者ID:ugrkbt,项目名称:GamesOfMath,代码行数:34,代码来源:classicgamelevel.xaml.cs


示例13: MainPage

        // Constructor
        public MainPage()
        {
            InitializeComponent();

            savedSettings = IsolatedStorageSettings.ApplicationSettings;

            if (savedSettings.Contains("callsign"))
            {
                callsign = (string)savedSettings["callsign"];
            }

            tbCallsign.Text = callsign + "_chase";

            if (savedSettings.Contains("interval"))
            {
                interval = Convert.ToUInt32(savedSettings["interval"]);
            }

            if (savedSettings.Contains("consent"))
            {
                consent = (bool)savedSettings["consent"];
            }

            if (!consent)
            {
                MessageBoxResult result = MessageBox.Show("This app accesses your phone's location. Is this okay?", "Location", MessageBoxButton.OKCancel);
                if (result == MessageBoxResult.OK)
                {
                    updateSetting("consent", true);
                    consent = true;
                }

            }
        }
开发者ID:danielsaul,项目名称:habhub-chase-car-tracker-wp,代码行数:35,代码来源:MainPage.xaml.cs


示例14: DeleteSetting

 /// <summary>
 /// Private helper method for performing deletes on a setting
 /// </summary>
 /// <param name="store">The IsolatedStorageSettings store to use (either "site" or "application")</param>
 /// <param name="key">The key of the object to delete</param>
 private static void DeleteSetting(IsolatedStorageSettings store, string key)
 {
     if(store.Contains(key))
     {
         store.Remove(key);
         store.Save();
     }
 }
开发者ID:Aaronontheweb,项目名称:isolatedstorage-extensions,代码行数:13,代码来源:IsolatedStorageHelper.Settings.cs


示例15: FacebookWrite

 public FacebookWrite()
 {
     settings = IsolatedStorageSettings.ApplicationSettings;
     emptystr = "What's on your mind?";
     imgstream = null;
     Loaded += new RoutedEventHandler(MainPage_Loaded);
     InitializeComponent();
 }
开发者ID:vapps,项目名称:HDStream,代码行数:8,代码来源:FacebookWrite.xaml.cs


示例16: FacebookPostView

        public FacebookPostView()
        {
            InitializeComponent();
            emptystr = "What's on your mind?";

            settings = IsolatedStorageSettings.ApplicationSettings;
            this.Loaded += new RoutedEventHandler(ListPage_Loaded);
        }
开发者ID:vapps,项目名称:HDStream,代码行数:8,代码来源:FacebookPostView.xaml.cs


示例17: CheckICollection

		void CheckICollection (IsolatedStorageSettings settings)
		{
			ICollection c = (settings as ICollection);
			Assert.AreEqual (0, c.Count, "ICollection.Count");
			Assert.IsFalse (c.IsSynchronized, "ICollection.IsSynchronized");
			Assert.IsNotNull (c.SyncRoot, "ICollection.SyncRoot");
			Assert.IsNotNull (c.GetEnumerator (), "ICollection.GetEnumerator");
		}
开发者ID:dfr0,项目名称:moon,代码行数:8,代码来源:IsolatedStorageSettingsTest.cs


示例18: LoadSettings

 private void LoadSettings()
 {
     _isolatedStorageSettings = IsolatedStorageSettings.ApplicationSettings;
     if (_isolatedStorageSettings.Contains(_merchantServerUrlKey))
     {
         _merchantServerUrl = (string)_isolatedStorageSettings[_merchantServerUrlKey];
     }
 }
开发者ID:braintree,项目名称:braintree_windows_phone_encryption_examples,代码行数:8,代码来源:MainPage.xaml.cs


示例19: Settings

 public Settings()
 {
     InitializeComponent();
     BuildLocalizedApplicationBar();
     appSettings = IsolatedStorageSettings.ApplicationSettings;
     oldPass = (string)appSettings["pass"];
     fakeOldPass = (string)appSettings["fake"];
 }
开发者ID:jaydeep17,项目名称:LetsPlay,代码行数:8,代码来源:Settings.xaml.cs


示例20: AddDefaultSettings

 private static void AddDefaultSettings(IsolatedStorageSettings settings)
 {
     settings.Add("MidThreshold", 8000);
     settings.Add("LowThreshold", 9000);
     settings.Add("MidRate", 1024);
     settings.Add("LowRate", 256);
     settings.Add("PctDiscount", 75);
 }
开发者ID:alexmullans,项目名称:RHITBandwidth,代码行数:8,代码来源:App.xaml.cs



注:本文中的System.IO.IsolatedStorage.IsolatedStorageSettings类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MemoryMappedFiles.MemoryMappedFile类代码示例发布时间:2022-05-26
下一篇:
C# IsolatedStorage.IsolatedStorageFileStream类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap