GetUserDirectory() public static method

public static GetUserDirectory ( string storageCategory ) : string
storageCategory string
return string
示例#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, "")
         );
 }
示例#2
0
 static SettingsManager()
 {
     GlobalSettings = new SettingsFile(
         System.IO.Path.Combine(
             StorageManager.GetUserDirectory("Settings"),
             "Settings.xml"
             ),
         false
         );
 }