Skip to content

Commit f1cefa4

Browse files
transtrans
authored andcommitted
添加项目文件。
1 parent 4c2a789 commit f1cefa4

15 files changed

Lines changed: 883 additions & 0 deletions

LibVideo/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
5+
</startup>
6+
</configuration>

LibVideo/App.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="LibVideo.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:LibVideo"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

LibVideo/App.xaml.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace LibVideo
10+
{
11+
/// <summary>
12+
/// App.xaml 的交互逻辑
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
17+
18+
}
19+
}

LibVideo/LibVideo2.csproj

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{C25832BC-B946-4590-A45E-F71897CE05A9}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>LibVideo</RootNamespace>
10+
<AssemblyName>LibVideo</AssemblyName>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14+
<WarningLevel>4</WarningLevel>
15+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16+
<Deterministic>true</Deterministic>
17+
<IsWebBootstrapper>false</IsWebBootstrapper>
18+
<TargetFrameworkProfile />
19+
<PublishUrl>\\ds1517\Backups\</PublishUrl>
20+
<Install>true</Install>
21+
<InstallFrom>Unc</InstallFrom>
22+
<UpdateEnabled>true</UpdateEnabled>
23+
<UpdateMode>Foreground</UpdateMode>
24+
<UpdateInterval>7</UpdateInterval>
25+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
26+
<UpdatePeriodically>false</UpdatePeriodically>
27+
<UpdateRequired>false</UpdateRequired>
28+
<MapFileExtensions>true</MapFileExtensions>
29+
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
30+
<WebPage>publish.htm</WebPage>
31+
<ApplicationRevision>18</ApplicationRevision>
32+
<ApplicationVersion>1.1.0.%2a</ApplicationVersion>
33+
<UseApplicationTrust>false</UseApplicationTrust>
34+
<PublishWizardCompleted>true</PublishWizardCompleted>
35+
<BootstrapperEnabled>true</BootstrapperEnabled>
36+
</PropertyGroup>
37+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
38+
<PlatformTarget>AnyCPU</PlatformTarget>
39+
<DebugSymbols>true</DebugSymbols>
40+
<DebugType>full</DebugType>
41+
<Optimize>false</Optimize>
42+
<OutputPath>bin\Debug\</OutputPath>
43+
<DefineConstants>DEBUG;TRACE</DefineConstants>
44+
<ErrorReport>prompt</ErrorReport>
45+
<WarningLevel>4</WarningLevel>
46+
</PropertyGroup>
47+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
48+
<PlatformTarget>AnyCPU</PlatformTarget>
49+
<DebugType>pdbonly</DebugType>
50+
<Optimize>true</Optimize>
51+
<OutputPath>bin\Release\</OutputPath>
52+
<DefineConstants>TRACE</DefineConstants>
53+
<ErrorReport>prompt</ErrorReport>
54+
<WarningLevel>4</WarningLevel>
55+
</PropertyGroup>
56+
<PropertyGroup>
57+
<ApplicationIcon>周 图标.ico</ApplicationIcon>
58+
</PropertyGroup>
59+
<PropertyGroup>
60+
<ManifestCertificateThumbprint>40C6BE07C3F696ABC1795025D50CA53538BCBA43</ManifestCertificateThumbprint>
61+
</PropertyGroup>
62+
<PropertyGroup>
63+
<ManifestKeyFile>LibVideo_TemporaryKey.pfx</ManifestKeyFile>
64+
</PropertyGroup>
65+
<PropertyGroup>
66+
<GenerateManifests>true</GenerateManifests>
67+
</PropertyGroup>
68+
<PropertyGroup>
69+
<SignManifests>false</SignManifests>
70+
</PropertyGroup>
71+
<PropertyGroup>
72+
<Win32Resource>
73+
</Win32Resource>
74+
</PropertyGroup>
75+
<PropertyGroup>
76+
<SignAssembly>false</SignAssembly>
77+
</PropertyGroup>
78+
<ItemGroup>
79+
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
80+
<HintPath>..\packages\WindowsAPICodePack-Core.1.1.1\lib\Microsoft.WindowsAPICodePack.dll</HintPath>
81+
</Reference>
82+
<Reference Include="Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
83+
<HintPath>..\packages\WindowsAPICodePack-Shell.1.1.1\lib\Microsoft.WindowsAPICodePack.Shell.dll</HintPath>
84+
</Reference>
85+
<Reference Include="System" />
86+
<Reference Include="System.Data" />
87+
<Reference Include="System.Drawing" />
88+
<Reference Include="System.Xml" />
89+
<Reference Include="Microsoft.CSharp" />
90+
<Reference Include="System.Core" />
91+
<Reference Include="System.Xml.Linq" />
92+
<Reference Include="System.Data.DataSetExtensions" />
93+
<Reference Include="System.Net.Http" />
94+
<Reference Include="System.Xaml">
95+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
96+
</Reference>
97+
<Reference Include="WindowsBase" />
98+
<Reference Include="PresentationCore" />
99+
<Reference Include="PresentationFramework" />
100+
</ItemGroup>
101+
<ItemGroup>
102+
<ApplicationDefinition Include="App.xaml">
103+
<Generator>MSBuild:Compile</Generator>
104+
<SubType>Designer</SubType>
105+
</ApplicationDefinition>
106+
<Page Include="MainWindow.xaml">
107+
<Generator>MSBuild:Compile</Generator>
108+
<SubType>Designer</SubType>
109+
</Page>
110+
<Compile Include="App.xaml.cs">
111+
<DependentUpon>App.xaml</DependentUpon>
112+
<SubType>Code</SubType>
113+
</Compile>
114+
<Compile Include="MainWindow.xaml.cs">
115+
<DependentUpon>MainWindow.xaml</DependentUpon>
116+
<SubType>Code</SubType>
117+
</Compile>
118+
</ItemGroup>
119+
<ItemGroup>
120+
<Compile Include="Properties\AssemblyInfo.cs">
121+
<SubType>Code</SubType>
122+
</Compile>
123+
<Compile Include="Properties\Resources.Designer.cs">
124+
<AutoGen>True</AutoGen>
125+
<DesignTime>True</DesignTime>
126+
<DependentUpon>Resources.resx</DependentUpon>
127+
</Compile>
128+
<Compile Include="Properties\Settings.Designer.cs">
129+
<AutoGen>True</AutoGen>
130+
<DependentUpon>Settings.settings</DependentUpon>
131+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
132+
</Compile>
133+
<EmbeddedResource Include="Properties\Resources.resx">
134+
<Generator>ResXFileCodeGenerator</Generator>
135+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
136+
<SubType>Designer</SubType>
137+
</EmbeddedResource>
138+
<None Include="LibVideo_TemporaryKey.pfx" />
139+
<None Include="packages.config" />
140+
<None Include="Properties\Settings.settings">
141+
<Generator>SettingsSingleFileGenerator</Generator>
142+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
143+
</None>
144+
</ItemGroup>
145+
<ItemGroup>
146+
<None Include="App.config" />
147+
</ItemGroup>
148+
<ItemGroup>
149+
<Resource Include="周 图标.ico" />
150+
</ItemGroup>
151+
<ItemGroup>
152+
<Content Include="background.jpg" />
153+
</ItemGroup>
154+
<ItemGroup>
155+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
156+
<Visible>False</Visible>
157+
<ProductName>.NET Framework 3.5 SP1</ProductName>
158+
<Install>false</Install>
159+
</BootstrapperPackage>
160+
</ItemGroup>
161+
<ItemGroup>
162+
<Folder Include="Resources\" />
163+
</ItemGroup>
164+
<ItemGroup>
165+
<PublishFile Include="LibVideo.pdb">
166+
<Visible>False</Visible>
167+
<Group>
168+
</Group>
169+
<TargetPath>
170+
</TargetPath>
171+
<PublishState>Include</PublishState>
172+
<IncludeHash>True</IncludeHash>
173+
<FileType>File</FileType>
174+
</PublishFile>
175+
</ItemGroup>
176+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
177+
</Project>

LibVideo/MainWindow.xaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<Window x:Class="LibVideo.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:LibVideo"
7+
mc:Ignorable="d"
8+
Title="我家视频" Height="527.371" Width="800"
9+
WindowState="Normal" ResizeMode="NoResize"
10+
11+
>
12+
<Grid>
13+
14+
15+
<TextBox x:Name="dirTxt" HorizontalAlignment="Left" Height="113" Margin="630,10,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="147" TextChanged="dirTextBox_TextChanged"/>
16+
<Button Content="添加视频目录" HorizontalAlignment="Left" Height="27" Margin="669,128,0,0" VerticalAlignment="Top" Width="80" Click="dirButton_Click"/>
17+
<Label Content="" HorizontalAlignment="Center" Height="33" Margin="81.667,60,62.666,406.333" VerticalAlignment="Center" Width="153" FontSize="18" Grid.Column="2" Grid.ColumnSpan="2"/>
18+
<DataGrid x:Name="outputGrid" HorizontalAlignment="Left" Height="456" Margin="10,43,0,0" VerticalAlignment="Top" Width="615"
19+
AutoGenerateColumns="False" SelectionMode="Single" SelectionUnit="Cell" IsReadOnly="true">
20+
<DataGrid.Columns>
21+
<DataGridTextColumn Header="编号" Binding="{Binding Id}" />
22+
<DataGridTextColumn Header="视频" Binding="{Binding FullName}" />
23+
</DataGrid.Columns>
24+
25+
<DataGrid.Resources>
26+
<Style TargetType="DataGridRow">
27+
<EventSetter Event="MouseDoubleClick" Handler="Row_DoubleClick"/>
28+
</Style>
29+
</DataGrid.Resources>
30+
31+
32+
<DataGrid.ContextMenu>
33+
<ContextMenu>
34+
<MenuItem Header="复制" Command="Copy" />
35+
<MenuItem Header="打开" Click="OpenItem" />
36+
</ContextMenu>
37+
</DataGrid.ContextMenu>
38+
</DataGrid>
39+
40+
<TextBox x:Name="keywords" HorizontalAlignment="Left" Height="28" Margin="190,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="251" TextChanged="keywords_TextChanged" />
41+
<Image Grid.Column="2" HorizontalAlignment="Left" Height="26" Margin="62.667,297,0,0" VerticalAlignment="Top" Width="113"/>
42+
<Label Content="搜索:" HorizontalAlignment="Left" Height="37" Margin="143,10,0,0" VerticalAlignment="Top" Width="63"/>
43+
44+
45+
</Grid>
46+
47+
</Window>

0 commit comments

Comments
 (0)