private void RegionPlayerCommand_Invoked(object sender, EventArgs e) { if (!myVegas.ActivateDockView(Strings.RegionPlayerWindowTitle)) { var player = new FormRegionPlayer { AutoLoadCommand = RegionPlayerCommand, PersistDockWindowState = true }; myVegas.LoadDockView(player); } else { IDockView ctrl; myVegas.FindDockView(Strings.RegionPlayerWindowTitle, out ctrl); if (ctrl != null) ctrl.InvokeLoaded(); } }
private void RegionPlayerCommand_Invoked(object sender, EventArgs e) { if (!myVegas.ActivateDockView(Strings.RegionPlayerWindowTitle)) { var player = new FormRegionPlayer { AutoLoadCommand = RegionPlayerCommand, PersistDockWindowState = true }; myVegas.LoadDockView(player); } else { IDockView ctrl; myVegas.FindDockView(Strings.RegionPlayerWindowTitle, out ctrl); if (ctrl != null) { ctrl.InvokeLoaded(); } } }