當前位置: 首頁>>代碼示例>>C#>>正文


C# IsolatedStorage.IsolatedStorageSettings類代碼示例

本文整理匯總了C#中System.IO.IsolatedStorage.IsolatedStorageSettings的典型用法代碼示例。如果您正苦於以下問題:C# IsolatedStorageSettings類的具體用法?C# IsolatedStorageSettings怎麽用?C# IsolatedStorageSettings使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IsolatedStorageSettings類屬於System.IO.IsolatedStorage命名空間,在下文中一共展示了IsolatedStorageSettings類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的System.IO.IsolatedStorage.IsolatedStorageSettings類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。