diff options
| author | RedShirtMB Mark Linton redshirt linton <RedShirtMB Mark Linton redshirt.linton@gmail.com> | 2012-08-05 09:09:45 -0700 |
|---|---|---|
| committer | RedShirtMB Mark Linton redshirt linton <RedShirtMB Mark Linton redshirt.linton@gmail.com> | 2012-08-05 09:09:45 -0700 |
| commit | debc4e6ae513ca6f3d896c46f8bf528315108d89 (patch) | |
| tree | cf64f7f0d09917aea3d2bef40a4ebc3c7c4198c2 | |
| parent | 2abc0e902014e9ca6947f2eb378dffba485fd699 (diff) | |
Added missing reference to MediaBrowser.Common
2nd launch of ServerApplication will call OpenDashboard
4 files changed, 10 insertions, 4 deletions
diff --git a/MediaBrowser.Common/MediaBrowser.Common.csproj b/MediaBrowser.Common/MediaBrowser.Common.csproj index 7017b9b57..d647903ad 100644 --- a/MediaBrowser.Common/MediaBrowser.Common.csproj +++ b/MediaBrowser.Common/MediaBrowser.Common.csproj @@ -45,6 +45,7 @@ <SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Rx-Main.1.0.11226\lib\Net4\System.Reactive.dll</HintPath>
</Reference>
+ <Reference Include="System.Runtime.Remoting" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
@@ -78,6 +79,7 @@ <Compile Include="UI\Splash.xaml.cs">
<DependentUpon>Splash.xaml</DependentUpon>
</Compile>
+ <Compile Include="Util\SingleInstance.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
@@ -94,6 +96,7 @@ <Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
+ <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index 1106b7999..f6f05b728 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -33,8 +33,8 @@ namespace MediaBrowser.ServerApplication #region ISingleInstanceApp Members
public bool SignalExternalCommandLineArgs(IList<string> args)
{
- // handle command line arguments of second instance
- // ...
+ OpenDashboard();
+
return true;
}
#endregion
@@ -45,5 +45,9 @@ namespace MediaBrowser.ServerApplication Kernel.Instance.Dispose();
}
+
+ public static void OpenDashboard()
+ {
+ }
}
}
diff --git a/MediaBrowser.ServerApplication/MainWindow.xaml.cs b/MediaBrowser.ServerApplication/MainWindow.xaml.cs index ee473bbc0..a4be37475 100644 --- a/MediaBrowser.ServerApplication/MainWindow.xaml.cs +++ b/MediaBrowser.ServerApplication/MainWindow.xaml.cs @@ -65,7 +65,7 @@ namespace MediaBrowser.ServerApplication private void cmOpenDashboard_click(object sender, RoutedEventArgs e)
{
-
+ App.OpenDashboard();
}
private void cmVisitCT_click(object sender, RoutedEventArgs e)
diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index d976cd111..fa54626af 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -60,7 +60,6 @@ <Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
- <Compile Include="Util\SingleInstance.cs" />
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
|
