Exemple #1
0
 private void ChangeDesktopButton_Click(object sender, EventArgs e)
 {
     ChangeDesktop.Change_Desktop(DirectoryTextBox.Text);
 }
Exemple #2
0
 private void DefaultDesktopButton_Click(object sender, EventArgs e)
 {
     ChangeDesktop.Change_Desktop(@"C:\Users\" + Environment.UserName + @"\Desktop\");
 }
 public static void Change_Desktop(string newPath)
 {
     ChangeDesktop.Change_Desktop(newPath);
 }