예제 #1
0
 /// <summary>
 /// Die verwendeten Ressourcen bereinigen.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
     NewList.newList = null;
 }
예제 #2
0
 public static void ShowNewList(GUI owner, string name, string[] songs)
 {
     if (NewList.newList == null)
     {
         NewList.newList = new NewList(owner);
     }
     newList.songs = songs;
     newList.nameTextBox.Text = name;
     WindowsIdentity wi = WindowsIdentity.GetCurrent();
     if (wi != null)
     {
         string[] parts = wi.Name.Split('\\');
         if (parts.Length > 0) newList.authorTextBox.Text = parts[parts.Length - 1];
     }
     NewList.newList.Show();
 }