From a48d7b8d5686f834473f35d855e9017f52f9d475 Mon Sep 17 00:00:00 2001 From: DangHome Date: Sun, 2 Jul 2023 22:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EDELL=20=E8=9E=A2=E5=B9=95?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E9=96=8B=E9=97=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ControlMyMonitorManagement.sln | 6 + DellMonitorControl/App.xaml | 17 ++ DellMonitorControl/App.xaml.cs | 17 ++ DellMonitorControl/AssemblyInfo.cs | 10 + DellMonitorControl/ControlPanel.xaml | 27 ++ DellMonitorControl/ControlPanel.xaml.cs | 40 +++ DellMonitorControl/DellLogo.ico | Bin 0 -> 440487 bytes DellMonitorControl/DellMonitorControl.csproj | 29 ++ DellMonitorControl/Images/icons.xaml | 24 ++ DellMonitorControl/MainWindow.xaml | 21 ++ DellMonitorControl/MainWindow.xaml.cs | 15 + DellMonitorControl/Style/Btn.xaml | 126 +++++++++ DellMonitorControl/Style/Color.xaml | 37 +++ DellMonitorControl/Style/Main.xaml | 58 ++++ DellMonitorControl/Style/Slider.xaml | 283 +++++++++++++++++++ Library/Method/CMMCommand.cs | 277 +++++++++--------- 16 files changed, 850 insertions(+), 137 deletions(-) create mode 100644 DellMonitorControl/App.xaml create mode 100644 DellMonitorControl/App.xaml.cs create mode 100644 DellMonitorControl/AssemblyInfo.cs create mode 100644 DellMonitorControl/ControlPanel.xaml create mode 100644 DellMonitorControl/ControlPanel.xaml.cs create mode 100644 DellMonitorControl/DellLogo.ico create mode 100644 DellMonitorControl/DellMonitorControl.csproj create mode 100644 DellMonitorControl/Images/icons.xaml create mode 100644 DellMonitorControl/MainWindow.xaml create mode 100644 DellMonitorControl/MainWindow.xaml.cs create mode 100644 DellMonitorControl/Style/Btn.xaml create mode 100644 DellMonitorControl/Style/Color.xaml create mode 100644 DellMonitorControl/Style/Main.xaml create mode 100644 DellMonitorControl/Style/Slider.xaml diff --git a/ControlMyMonitorManagement.sln b/ControlMyMonitorManagement.sln index 918ed15..dfd99ed 100644 --- a/ControlMyMonitorManagement.sln +++ b/ControlMyMonitorManagement.sln @@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Language", "Language\Langua EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tester", "Tester\Tester.csproj", "{0D34DD73-3282-40EB-8F59-DF190944BF12}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DellMonitorControl", "DellMonitorControl\DellMonitorControl.csproj", "{64E96610-D431-40B9-A00B-55CE195B4B58}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,6 +35,10 @@ Global {0D34DD73-3282-40EB-8F59-DF190944BF12}.Debug|Any CPU.Build.0 = Debug|Any CPU {0D34DD73-3282-40EB-8F59-DF190944BF12}.Release|Any CPU.ActiveCfg = Release|Any CPU {0D34DD73-3282-40EB-8F59-DF190944BF12}.Release|Any CPU.Build.0 = Release|Any CPU + {64E96610-D431-40B9-A00B-55CE195B4B58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {64E96610-D431-40B9-A00B-55CE195B4B58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {64E96610-D431-40B9-A00B-55CE195B4B58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {64E96610-D431-40B9-A00B-55CE195B4B58}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DellMonitorControl/App.xaml b/DellMonitorControl/App.xaml new file mode 100644 index 0000000..aceae59 --- /dev/null +++ b/DellMonitorControl/App.xaml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/DellMonitorControl/App.xaml.cs b/DellMonitorControl/App.xaml.cs new file mode 100644 index 0000000..aa03a85 --- /dev/null +++ b/DellMonitorControl/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace DellMonitorControl +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/DellMonitorControl/AssemblyInfo.cs b/DellMonitorControl/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/DellMonitorControl/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/DellMonitorControl/ControlPanel.xaml b/DellMonitorControl/ControlPanel.xaml new file mode 100644 index 0000000..9f5ac20 --- /dev/null +++ b/DellMonitorControl/ControlPanel.xaml @@ -0,0 +1,27 @@ + + + + + + + +