Skip to content

Commit bdbce24

Browse files
committed
Add source code for first version
1 parent f6e9156 commit bdbce24

31 files changed

+4726
-0
lines changed

MetaCom.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32210.238
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetaCom", "MetaCom\MetaCom.csproj", "{B1148E4A-5E2D-4469-87ED-980AF372464C}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{B1148E4A-5E2D-4469-87ED-980AF372464C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B1148E4A-5E2D-4469-87ED-980AF372464C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B1148E4A-5E2D-4469-87ED-980AF372464C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B1148E4A-5E2D-4469-87ED-980AF372464C}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {F3AA94C1-3806-431C-A06A-48AA1DAFB6B7}
24+
EndGlobalSection
25+
EndGlobal

MetaCom/App.xaml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<Application x:Class="MetaCom.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:MetaCom"
5+
StartupUri="Views\MainWindow.xaml">
6+
<Application.Resources>
7+
<ResourceDictionary>
8+
9+
<!--GroupBox Header Style Template(Base)-->
10+
<Style x:Key="GroupBoxHeaderStyle" TargetType="HeaderedContentControl">
11+
<Setter Property="OverridesDefaultStyle" Value="True" />
12+
<Setter Property="SnapsToDevicePixels" Value="True" />
13+
<Setter Property="Template">
14+
<Setter.Value>
15+
<ControlTemplate TargetType="{x:Type HeaderedContentControl}">
16+
<ContentPresenter ContentSource="Header"/>
17+
</ControlTemplate>
18+
</Setter.Value>
19+
</Setter>
20+
</Style>
21+
22+
<!--MainWindows XAML - Menu style-->
23+
<Style TargetType="MenuItem" x:Key="MainMenuItem">
24+
<Setter Property="Margin" Value="0,3,0,3"/>
25+
<Setter Property="Padding" Value="5,3,5,3"/>
26+
</Style>
27+
<Style TargetType="Button" x:Key="MainButton">
28+
<Setter Property="Width" Value="35"/>
29+
<Setter Property="Background" Value="White"/>
30+
<Setter Property="BorderBrush" Value="White"/>
31+
</Style>
32+
33+
<!--MainWindows XAML - Status style-->
34+
<Style TargetType="StatusBarItem" x:Key="SBStatusBarItem">
35+
<Setter Property="Foreground" Value="Black"/>
36+
</Style>
37+
38+
<!--MainWindows XAML - Recv and Send style-->
39+
<Style TargetType="TextBox" x:Key="RSTextBox">
40+
<Setter Property="TextWrapping" Value="Wrap"/>
41+
<Setter Property="AcceptsReturn" Value="True"/>
42+
<Setter Property="Background" Value="#FCFCFC"/>
43+
</Style>
44+
<Style TargetType="Button" x:Key="SendButton">
45+
<Setter Property="Height" Value="25"/>
46+
<Setter Property="Background" Value="White"/>
47+
<Setter Property="BorderBrush" Value="Black"/>
48+
</Style>
49+
50+
<!--MainWindows XAML - Config Block style-->
51+
<Style TargetType="TextBlock" x:Key="ConfigTextBlock">
52+
<Setter Property="HorizontalAlignment" Value="Left"/>
53+
<Setter Property="VerticalAlignment" Value="Center"/>
54+
</Style>
55+
<Style TargetType="ComboBox" x:Key="ConfigComboBox">
56+
<Setter Property="Height" Value="25"/>
57+
<Setter Property="HorizontalAlignment" Value="Stretch"/>
58+
<Setter Property="ItemContainerStyle">
59+
<Setter.Value>
60+
<Style TargetType="ComboBoxItem">
61+
<Setter Property="Height" Value="25"/>
62+
<Setter Property="VerticalContentAlignment" Value="Center"/>
63+
</Style>
64+
</Setter.Value>
65+
</Setter>
66+
</Style>
67+
<Style TargetType="Ellipse" x:Key="ConfigEilipse">
68+
<Setter Property="Width" Value="24"/>
69+
<Setter Property="Height" Value="24"/>
70+
</Style>
71+
<Style TargetType="Button" x:Key="ConfigButton">
72+
73+
<Setter Property="Height" Value="25"/>
74+
<Setter Property="Background" Value="#f0f0f0"/>
75+
<Setter Property="BorderBrush" Value="Black"/>
76+
<Setter Property="HorizontalAlignment" Value="Stretch"/>
77+
78+
</Style>
79+
80+
<!--MainWindows XAML - Signal Block style-->
81+
<Style TargetType="TextBlock" x:Key="HDTextBlock">
82+
<Setter Property="Margin" Value="0,6,0,2"/>
83+
<Setter Property="HorizontalAlignment" Value="Center"/>
84+
<Setter Property="VerticalAlignment" Value="Center"/>
85+
</Style>
86+
<Style TargetType="Ellipse" x:Key="HDEilipse">
87+
<Setter Property="Margin" Value="0,6,0,2"/>
88+
<Setter Property="Width" Value="13"/>
89+
<Setter Property="Height" Value="13"/>
90+
</Style>
91+
92+
<!--MainWindows XAML - Assist Block style-->
93+
<Style TargetType="CheckBox" x:Key="AssistCheckBox">
94+
<Setter Property="VerticalContentAlignment" Value="Center"/>
95+
<Setter Property="VerticalAlignment" Value="Center"/>
96+
</Style>
97+
<Style TargetType="TextBox" x:Key="AutoSendNumTextBox">
98+
99+
<Setter Property="HorizontalContentAlignment" Value="Center"/>
100+
<Setter Property="VerticalContentAlignment" Value="Center"/>
101+
<Setter Property="BorderBrush" Value="Black"/>
102+
</Style>
103+
<Style TargetType="Button" x:Key="AssistButton">
104+
<Setter Property="Height" Value="23"/>
105+
<Setter Property="Background" Value="#f0f0f0"/>
106+
<Setter Property="BorderBrush" Value="Black"/>
107+
<Setter Property="HorizontalAlignment" Value="Stretch"/>
108+
</Style>
109+
110+
<!--Update XAML Style-->
111+
<Style TargetType="Button" x:Key="UpdateButton">
112+
<Setter Property="Padding" Value="18,6"/>
113+
<Setter Property="Background" Value="White"/>
114+
</Style>
115+
</ResourceDictionary>
116+
</Application.Resources>
117+
</Application>

MetaCom/App.xaml.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Windows;
2+
3+
namespace MetaCom
4+
{
5+
/// <summary>
6+
/// App.xaml 的交互逻辑
7+
/// </summary>
8+
public partial class App : Application
9+
{
10+
}
11+
}

MetaCom/Images/Close.png

3.73 KB
Loading

MetaCom/Images/Max.png

1.55 KB
Loading

MetaCom/Images/Min.png

1.41 KB
Loading

MetaCom/Images/Normal.png

2.13 KB
Loading

MetaCom/Images/favicon.ico

66.1 KB
Binary file not shown.

MetaCom/Images/favicon.png

10.7 KB
Loading

MetaCom/Images/send.png

1 KB
Loading

0 commit comments

Comments
 (0)