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(); } }
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(); } } }