GetUserDirectory() public static method

public static GetUserDirectory ( string storageCategory ) : string
storageCategory string
return string
Example #1
0
 void FillFields()
 {
     this.fieldName.Text     = StorageManager.GetNextName(StorageManager.GetUserDirectory("Projects"), "Project{0}");
     this.fieldLocation.Text = System.IO.Path.Combine(
         StorageManager.GetUserDirectory("Projects"),
         invalidChars.Replace(this.fieldName.Text, "")
         );
 }
Example #2
0
 static SettingsManager()
 {
     GlobalSettings = new SettingsFile(
         System.IO.Path.Combine(
             StorageManager.GetUserDirectory("Settings"),
             "Settings.xml"
             ),
         false
         );
 }