Exemplo n.º 1
0
 private void addFolderToLibrar_Click()
 {
     if (AddLocalFolderToLibrary != null)
     {
         if (createFolderWindow == null)
         {
             UiThread.RunOnIdle(() =>
             {
                 createFolderWindow = new CreateFolderWindow((returnInfo) =>
                 {
                     AddLocalFolderToLibrary(this, new StringEventArgs(returnInfo.newName));
                 });
                 createFolderWindow.Closed += (sender2, e2) => { createFolderWindow = null; };
             });
         }
         else
         {
             createFolderWindow.BringToFront();
         }
     }
 }
Exemplo n.º 2
0
		private bool addFolderToLibrar_Click()
		{
			if (AddLocalFolderToLibrary != null)
			{
				if (createFolderWindow == null)
				{
					UiThread.RunOnIdle(() =>
					{
						createFolderWindow = new CreateFolderWindow((returnInfo) =>
						{
							AddLocalFolderToLibrary(this, new StringEventArgs(returnInfo.newName));
						});
						createFolderWindow.Closed += (sender2, e2) => { createFolderWindow = null; };
					});
				}
				else
				{
					createFolderWindow.BringToFront();
				}
			}
			return true;
		}