示例#1
0
		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();
			}
		}
示例#2
0
 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();
         }
     }
 }