예제 #1
0
		private void MediaManagerCommand_Invoked(object sender, EventArgs e)
		{
			if (!myVegas.ActivateDockView(Strings.WindowTitle))
			{
				if (mediamanagerform == null)
				{
					mediamanagerform = new FormMediaManager { AutoLoadCommand = MediaManagerCommand, PersistDockWindowState = true, MyVegas = myVegas };
				}
				myVegas.LoadDockView(mediamanagerform);
				mediamanagerform.PopulateMediaListItems();
			}
			else
			{
				IDockView ctrl;
				myVegas.FindDockView(Strings.WindowTitle, out ctrl);
				if (ctrl != null)
					ctrl.InvokeLoaded();
			}
		}
예제 #2
0
 private void MediaManagerCommand_Invoked(object sender, EventArgs e)
 {
     if (!myVegas.ActivateDockView(Strings.WindowTitle))
     {
         if (mediamanagerform == null)
         {
             mediamanagerform = new FormMediaManager {
                 AutoLoadCommand = MediaManagerCommand, PersistDockWindowState = true, MyVegas = myVegas
             };
         }
         myVegas.LoadDockView(mediamanagerform);
         mediamanagerform.PopulateMediaListItems();
     }
     else
     {
         IDockView ctrl;
         myVegas.FindDockView(Strings.WindowTitle, out ctrl);
         if (ctrl != null)
         {
             ctrl.InvokeLoaded();
         }
     }
 }