aboutsummaryrefslogtreecommitdiff
path: root/lib/lufa/Projects/LEDNotifier/CPUUsageApp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lufa/Projects/LEDNotifier/CPUUsageApp')
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.Designer.cs131
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.cs115
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.csproj95
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.resx132
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Program.cs21
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/AssemblyInfo.cs36
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.Designer.cs63
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.resx117
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.Designer.cs26
-rw-r--r--lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.settings7
10 files changed, 0 insertions, 743 deletions
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.Designer.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.Designer.cs
deleted file mode 100644
index 2b189943a..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.Designer.cs
+++ /dev/null
@@ -1,131 +0,0 @@
1namespace CPUMonitor
2{
3 partial class frmCPU
4 {
5 /// <summary>
6 /// Required designer variable.
7 /// </summary>
8 private System.ComponentModel.IContainer components = null;
9
10 /// <summary>
11 /// Clean up any resources being used.
12 /// </summary>
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
22
23 #region Windows Form Designer generated code
24
25 /// <summary>
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
28 /// </summary>
29 private void InitializeComponent()
30 {
31 this.components = new System.ComponentModel.Container();
32 this.serSerialPort = new System.IO.Ports.SerialPort(this.components);
33 this.tmrCPUTimer = new System.Windows.Forms.Timer(this.components);
34 this.cmbComPort = new System.Windows.Forms.ComboBox();
35 this.pcCPUUsage = new System.Diagnostics.PerformanceCounter();
36 this.lblCPU = new System.Windows.Forms.Label();
37 this.nicoNotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
38 this.btnMinimizeToTray = new System.Windows.Forms.Button();
39 this.btnExit = new System.Windows.Forms.Button();
40 ((System.ComponentModel.ISupportInitialize)(this.pcCPUUsage)).BeginInit();
41 this.SuspendLayout();
42 //
43 // tmrCPUTimer
44 //
45 this.tmrCPUTimer.Enabled = true;
46 this.tmrCPUTimer.Interval = 1000;
47 this.tmrCPUTimer.Tick += new System.EventHandler(this.tmrCPUTimer_Tick);
48 //
49 // cmbComPort
50 //
51 this.cmbComPort.FormattingEnabled = true;
52 this.cmbComPort.Location = new System.Drawing.Point(48, 12);
53 this.cmbComPort.Name = "cmbComPort";
54 this.cmbComPort.Size = new System.Drawing.Size(156, 21);
55 this.cmbComPort.TabIndex = 0;
56 this.cmbComPort.SelectedIndexChanged += new System.EventHandler(this.cbPort_SelectedIndexChanged);
57 //
58 // pcCPUUsage
59 //
60 this.pcCPUUsage.CategoryName = "Processor";
61 this.pcCPUUsage.CounterName = "% Processor Time";
62 this.pcCPUUsage.InstanceName = "_Total";
63 //
64 // lblCPU
65 //
66 this.lblCPU.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
67 this.lblCPU.Location = new System.Drawing.Point(44, 36);
68 this.lblCPU.Name = "lblCPU";
69 this.lblCPU.Size = new System.Drawing.Size(160, 28);
70 this.lblCPU.TabIndex = 1;
71 this.lblCPU.Text = "0%";
72 this.lblCPU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
73 //
74 // nicoNotifyIcon
75 //
76 this.nicoNotifyIcon.Text = "CPU Usage Monitor";
77 this.nicoNotifyIcon.Visible = true;
78 //
79 // btnMinimizeToTray
80 //
81 this.btnMinimizeToTray.Location = new System.Drawing.Point(12, 67);
82 this.btnMinimizeToTray.Name = "btnMinimizeToTray";
83 this.btnMinimizeToTray.Size = new System.Drawing.Size(111, 28);
84 this.btnMinimizeToTray.TabIndex = 2;
85 this.btnMinimizeToTray.Text = "Minimize to Tray";
86 this.btnMinimizeToTray.UseVisualStyleBackColor = true;
87 this.btnMinimizeToTray.Click += new System.EventHandler(this.btnMinimizeToTray_Click);
88 //
89 // btnExit
90 //
91 this.btnExit.Location = new System.Drawing.Point(126, 67);
92 this.btnExit.Name = "btnExit";
93 this.btnExit.Size = new System.Drawing.Size(111, 28);
94 this.btnExit.TabIndex = 3;
95 this.btnExit.Text = "Exit";
96 this.btnExit.UseVisualStyleBackColor = true;
97 this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
98 //
99 // frmCPU
100 //
101 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
102 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
103 this.ClientSize = new System.Drawing.Size(249, 106);
104 this.Controls.Add(this.btnExit);
105 this.Controls.Add(this.btnMinimizeToTray);
106 this.Controls.Add(this.lblCPU);
107 this.Controls.Add(this.cmbComPort);
108 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
109 this.MaximizeBox = false;
110 this.Name = "frmCPU";
111 this.Text = "CPU Usage Monitor";
112 this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
113 this.Load += new System.EventHandler(this.Form1_Load);
114 ((System.ComponentModel.ISupportInitialize)(this.pcCPUUsage)).EndInit();
115 this.ResumeLayout(false);
116
117 }
118
119 #endregion
120
121 private System.IO.Ports.SerialPort serSerialPort;
122 private System.Windows.Forms.Timer tmrCPUTimer;
123 private System.Windows.Forms.ComboBox cmbComPort;
124 private System.Diagnostics.PerformanceCounter pcCPUUsage;
125 private System.Windows.Forms.Label lblCPU;
126 private System.Windows.Forms.NotifyIcon nicoNotifyIcon;
127 private System.Windows.Forms.Button btnMinimizeToTray;
128 private System.Windows.Forms.Button btnExit;
129 }
130}
131
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.cs
deleted file mode 100644
index 32543fc59..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.cs
+++ /dev/null
@@ -1,115 +0,0 @@
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9using Microsoft.Win32;
10
11namespace CPUMonitor
12{
13 public partial class frmCPU : Form
14 {
15 private RegistryKey AppRegKey;
16
17 private const int LIGHT_MAX = 0x1F;
18
19 public frmCPU()
20 {
21 InitializeComponent();
22
23 nicoNotifyIcon.Icon = this.Icon;
24 nicoNotifyIcon.MouseClick += new MouseEventHandler(TrayIconClick);
25 }
26
27 private void Form1_Load(object sender, EventArgs e)
28 {
29 AppRegKey = Registry.CurrentUser.CreateSubKey("Software\\CPUMonitor");
30
31 String[] PortNames = System.IO.Ports.SerialPort.GetPortNames();
32 Array.Sort<String>(PortNames, delegate(string strA, string strB) { return int.Parse(strA.Substring(3)).CompareTo(int.Parse(strB.Substring(3))); });
33 cmbComPort.Items.Clear();
34 cmbComPort.Items.AddRange(PortNames);
35
36 cmbComPort.SelectedIndex = System.Convert.ToInt32(AppRegKey.GetValue("Port", "1")) - 1;
37 serSerialPort.PortName = cmbComPort.Text;
38
39 Hide();
40 }
41
42 private void NotifyLight(int Red, int Green, int Blue)
43 {
44 byte[] buffer = new byte[3];
45 buffer[0] = (byte)(0x80 | (Red & LIGHT_MAX));
46 buffer[1] = (byte)(0x40 | (Green & LIGHT_MAX));
47 buffer[2] = (byte)(0x20 | (Blue & LIGHT_MAX));
48
49 try
50 {
51 serSerialPort.PortName = cmbComPort.Text;
52 serSerialPort.Open();
53 serSerialPort.Write(buffer, 0, buffer.Length);
54 serSerialPort.Close();
55 }
56 catch (Exception e)
57 {
58
59 }
60 }
61
62 private void tmrCPUTimer_Tick(object sender, EventArgs e)
63 {
64 float CPUUsage = pcCPUUsage.NextValue();
65
66 int Red = 0;
67 int Green = 0;
68 int Blue = 0;
69
70 if (CPUUsage < 25)
71 {
72 Green = (int)((LIGHT_MAX / 25) * CPUUsage);
73 }
74 else if (CPUUsage < 50)
75 {
76 Blue = (int)((LIGHT_MAX / 25) * (CPUUsage - 25));
77 Green = LIGHT_MAX - Blue;
78 }
79 else if (CPUUsage < 75)
80 {
81 Red = (int)((LIGHT_MAX / 25) * (CPUUsage - 50));
82 Blue = LIGHT_MAX - Red;
83 }
84 else
85 {
86 Red = LIGHT_MAX;
87 }
88
89 NotifyLight(Red, Green, Blue);
90 lblCPU.Text = ((int)CPUUsage).ToString() + "%";
91 }
92
93 private void btnExit_Click(object sender, EventArgs e)
94 {
95 Application.Exit();
96 }
97
98 private void btnMinimizeToTray_Click(object sender, EventArgs e)
99 {
100 this.Hide();
101 }
102
103 private void TrayIconClick(object sender, MouseEventArgs e)
104 {
105 this.Show();
106 this.WindowState = FormWindowState.Normal;
107 }
108
109 private void cbPort_SelectedIndexChanged(object sender, EventArgs e)
110 {
111 AppRegKey.SetValue("Port", cmbComPort.SelectedIndex + 1);
112 serSerialPort.PortName = cmbComPort.Text;
113 }
114 }
115}
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.csproj b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.csproj
deleted file mode 100644
index d568a9dc4..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.csproj
+++ /dev/null
@@ -1,95 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6 <ProductVersion>9.0.21022</ProductVersion>
7 <SchemaVersion>2.0</SchemaVersion>
8 <ProjectGuid>{6040B049-4241-4FFD-B388-AACDA78D1469}</ProjectGuid>
9 <OutputType>WinExe</OutputType>
10 <AppDesignerFolder>Properties</AppDesignerFolder>
11 <RootNamespace>CPUMonitor</RootNamespace>
12 <AssemblyName>CPUMonitor</AssemblyName>
13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14 <FileAlignment>512</FileAlignment>
15 <FileUpgradeFlags>
16 </FileUpgradeFlags>
17 <OldToolsVersion>3.5</OldToolsVersion>
18 <UpgradeBackupLocation />
19 </PropertyGroup>
20 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21 <DebugSymbols>true</DebugSymbols>
22 <DebugType>full</DebugType>
23 <Optimize>false</Optimize>
24 <OutputPath>bin\Debug\</OutputPath>
25 <DefineConstants>DEBUG;TRACE</DefineConstants>
26 <ErrorReport>prompt</ErrorReport>
27 <WarningLevel>4</WarningLevel>
28 </PropertyGroup>
29 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30 <DebugType>pdbonly</DebugType>
31 <Optimize>true</Optimize>
32 <OutputPath>bin\Release\</OutputPath>
33 <DefineConstants>TRACE</DefineConstants>
34 <ErrorReport>prompt</ErrorReport>
35 <WarningLevel>4</WarningLevel>
36 </PropertyGroup>
37 <ItemGroup>
38 <Reference Include="System" />
39 <Reference Include="System.Core">
40 <RequiredTargetFramework>3.5</RequiredTargetFramework>
41 </Reference>
42 <Reference Include="System.Xml.Linq">
43 <RequiredTargetFramework>3.5</RequiredTargetFramework>
44 </Reference>
45 <Reference Include="System.Data.DataSetExtensions">
46 <RequiredTargetFramework>3.5</RequiredTargetFramework>
47 </Reference>
48 <Reference Include="System.Data" />
49 <Reference Include="System.Deployment" />
50 <Reference Include="System.Drawing" />
51 <Reference Include="System.Windows.Forms" />
52 <Reference Include="System.Xml" />
53 </ItemGroup>
54 <ItemGroup>
55 <Compile Include="CPUMonitor.cs">
56 <SubType>Form</SubType>
57 </Compile>
58 <Compile Include="CPUMonitor.Designer.cs">
59 <DependentUpon>CPUMonitor.cs</DependentUpon>
60 </Compile>
61 <Compile Include="Program.cs" />
62 <Compile Include="Properties\AssemblyInfo.cs" />
63 <EmbeddedResource Include="CPUMonitor.resx">
64 <DependentUpon>CPUMonitor.cs</DependentUpon>
65 <SubType>Designer</SubType>
66 </EmbeddedResource>
67 <EmbeddedResource Include="Properties\Resources.resx">
68 <Generator>ResXFileCodeGenerator</Generator>
69 <LastGenOutput>Resources.Designer.cs</LastGenOutput>
70 <SubType>Designer</SubType>
71 </EmbeddedResource>
72 <Compile Include="Properties\Resources.Designer.cs">
73 <AutoGen>True</AutoGen>
74 <DependentUpon>Resources.resx</DependentUpon>
75 <DesignTime>True</DesignTime>
76 </Compile>
77 <None Include="Properties\Settings.settings">
78 <Generator>SettingsSingleFileGenerator</Generator>
79 <LastGenOutput>Settings.Designer.cs</LastGenOutput>
80 </None>
81 <Compile Include="Properties\Settings.Designer.cs">
82 <AutoGen>True</AutoGen>
83 <DependentUpon>Settings.settings</DependentUpon>
84 <DesignTimeSharedInput>True</DesignTimeSharedInput>
85 </Compile>
86 </ItemGroup>
87 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
88 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
89 Other similar extension points exist, see Microsoft.Common.targets.
90 <Target Name="BeforeBuild">
91 </Target>
92 <Target Name="AfterBuild">
93 </Target>
94 -->
95</Project> \ No newline at end of file
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.resx b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.resx
deleted file mode 100644
index c62b1b020..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/CPUMonitor.resx
+++ /dev/null
@@ -1,132 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<root>
3 <!--
4 Microsoft ResX Schema
5
6 Version 2.0
7
8 The primary goals of this format is to allow a simple XML format
9 that is mostly human readable. The generation and parsing of the
10 various data types are done through the TypeConverter classes
11 associated with the data types.
12
13 Example:
14
15 ... ado.net/XML headers & schema ...
16 <resheader name="resmimetype">text/microsoft-resx</resheader>
17 <resheader name="version">2.0</resheader>
18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23 <value>[base64 mime encoded serialized .NET Framework object]</value>
24 </data>
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27 <comment>This is a comment</comment>
28 </data>
29
30 There are any number of "resheader" rows that contain simple
31 name/value pairs.
32
33 Each data row contains a name, and value. The row also contains a
34 type or mimetype. Type corresponds to a .NET class that support
35 text/value conversion through the TypeConverter architecture.
36 Classes that don't support this are serialized and stored with the
37 mimetype set.
38
39 The mimetype is used for serialized objects, and tells the
40 ResXResourceReader how to depersist the object. This is currently not
41 extensible. For a given mimetype the value must be set accordingly:
42
43 Note - application/x-microsoft.net.object.binary.base64 is the format
44 that the ResXResourceWriter will generate, however the reader can
45 read any of the formats listed below.
46
47 mimetype: application/x-microsoft.net.object.binary.base64
48 value : The object must be serialized with
49 : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50 : and then encoded with base64 encoding.
51
52 mimetype: application/x-microsoft.net.object.soap.base64
53 value : The object must be serialized with
54 : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55 : and then encoded with base64 encoding.
56
57 mimetype: application/x-microsoft.net.object.bytearray.base64
58 value : The object must be serialized into a byte array
59 : using a System.ComponentModel.TypeConverter
60 : and then encoded with base64 encoding.
61 -->
62 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64 <xsd:element name="root" msdata:IsDataSet="true">
65 <xsd:complexType>
66 <xsd:choice maxOccurs="unbounded">
67 <xsd:element name="metadata">
68 <xsd:complexType>
69 <xsd:sequence>
70 <xsd:element name="value" type="xsd:string" minOccurs="0" />
71 </xsd:sequence>
72 <xsd:attribute name="name" use="required" type="xsd:string" />
73 <xsd:attribute name="type" type="xsd:string" />
74 <xsd:attribute name="mimetype" type="xsd:string" />
75 <xsd:attribute ref="xml:space" />
76 </xsd:complexType>
77 </xsd:element>
78 <xsd:element name="assembly">
79 <xsd:complexType>
80 <xsd:attribute name="alias" type="xsd:string" />
81 <xsd:attribute name="name" type="xsd:string" />
82 </xsd:complexType>
83 </xsd:element>
84 <xsd:element name="data">
85 <xsd:complexType>
86 <xsd:sequence>
87 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89 </xsd:sequence>
90 <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91 <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92 <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93 <xsd:attribute ref="xml:space" />
94 </xsd:complexType>
95 </xsd:element>
96 <xsd:element name="resheader">
97 <xsd:complexType>
98 <xsd:sequence>
99 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100 </xsd:sequence>
101 <xsd:attribute name="name" type="xsd:string" use="required" />
102 </xsd:complexType>
103 </xsd:element>
104 </xsd:choice>
105 </xsd:complexType>
106 </xsd:element>
107 </xsd:schema>
108 <resheader name="resmimetype">
109 <value>text/microsoft-resx</value>
110 </resheader>
111 <resheader name="version">
112 <value>2.0</value>
113 </resheader>
114 <resheader name="reader">
115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116 </resheader>
117 <resheader name="writer">
118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 </resheader>
120 <metadata name="serSerialPort.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121 <value>17, 17</value>
122 </metadata>
123 <metadata name="tmrCPUTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124 <value>137, 17</value>
125 </metadata>
126 <metadata name="pcCPUUsage.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127 <value>262, 17</value>
128 </metadata>
129 <metadata name="nicoNotifyIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
130 <value>383, 17</value>
131 </metadata>
132</root> \ No newline at end of file
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Program.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Program.cs
deleted file mode 100644
index cb4fd89f2..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Program.cs
+++ /dev/null
@@ -1,21 +0,0 @@
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Windows.Forms;
5
6namespace CPUMonitor
7{
8 static class Program
9 {
10 /// <summary>
11 /// The main entry point for the application.
12 /// </summary>
13 [STAThread]
14 static void Main()
15 {
16 Application.EnableVisualStyles();
17 Application.SetCompatibleTextRenderingDefault(false);
18 Application.Run(new frmCPU());
19 }
20 }
21}
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/AssemblyInfo.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 85d31fcba..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
1using System.Reflection;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5// General Information about an assembly is controlled through the following
6// set of attributes. Change these attribute values to modify the information
7// associated with an assembly.
8[assembly: AssemblyTitle("CPUMonitor")]
9[assembly: AssemblyDescription("")]
10[assembly: AssemblyConfiguration("")]
11[assembly: AssemblyCompany("Microsoft")]
12[assembly: AssemblyProduct("CPUMonitor")]
13[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
14[assembly: AssemblyTrademark("")]
15[assembly: AssemblyCulture("")]
16
17// Setting ComVisible to false makes the types in this assembly not visible
18// to COM components. If you need to access a type in this assembly from
19// COM, set the ComVisible attribute to true on that type.
20[assembly: ComVisible(false)]
21
22// The following GUID is for the ID of the typelib if this project is exposed to COM
23[assembly: Guid("3e4a61da-cdde-46de-848b-b5206d225e21")]
24
25// Version information for an assembly consists of the following four values:
26//
27// Major Version
28// Minor Version
29// Build Number
30// Revision
31//
32// You can specify all the values or you can default the Build and Revision Numbers
33// by using the '*' as shown below:
34// [assembly: AssemblyVersion("1.0.*")]
35[assembly: AssemblyVersion("1.0.0.0")]
36[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.Designer.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.Designer.cs
deleted file mode 100644
index bf80e05fc..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:4.0.30319.239
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace CPUMonitor.Properties {
12 using System;
13
14
15 /// <summary>
16 /// A strongly-typed resource class, for looking up localized strings, etc.
17 /// </summary>
18 // This class was auto-generated by the StronglyTypedResourceBuilder
19 // class via a tool like ResGen or Visual Studio.
20 // To add or remove a member, edit your .ResX file then rerun ResGen
21 // with the /str option, or rebuild your VS project.
22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 internal class Resources {
26
27 private static global::System.Resources.ResourceManager resourceMan;
28
29 private static global::System.Globalization.CultureInfo resourceCulture;
30
31 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 internal Resources() {
33 }
34
35 /// <summary>
36 /// Returns the cached ResourceManager instance used by this class.
37 /// </summary>
38 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 internal static global::System.Resources.ResourceManager ResourceManager {
40 get {
41 if (object.ReferenceEquals(resourceMan, null)) {
42 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CPUMonitor.Properties.Resources", typeof(Resources).Assembly);
43 resourceMan = temp;
44 }
45 return resourceMan;
46 }
47 }
48
49 /// <summary>
50 /// Overrides the current thread's CurrentUICulture property for all
51 /// resource lookups using this strongly typed resource class.
52 /// </summary>
53 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 internal static global::System.Globalization.CultureInfo Culture {
55 get {
56 return resourceCulture;
57 }
58 set {
59 resourceCulture = value;
60 }
61 }
62 }
63}
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.resx b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.resx
deleted file mode 100644
index af7dbebba..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<root>
3 <!--
4 Microsoft ResX Schema
5
6 Version 2.0
7
8 The primary goals of this format is to allow a simple XML format
9 that is mostly human readable. The generation and parsing of the
10 various data types are done through the TypeConverter classes
11 associated with the data types.
12
13 Example:
14
15 ... ado.net/XML headers & schema ...
16 <resheader name="resmimetype">text/microsoft-resx</resheader>
17 <resheader name="version">2.0</resheader>
18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23 <value>[base64 mime encoded serialized .NET Framework object]</value>
24 </data>
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27 <comment>This is a comment</comment>
28 </data>
29
30 There are any number of "resheader" rows that contain simple
31 name/value pairs.
32
33 Each data row contains a name, and value. The row also contains a
34 type or mimetype. Type corresponds to a .NET class that support
35 text/value conversion through the TypeConverter architecture.
36 Classes that don't support this are serialized and stored with the
37 mimetype set.
38
39 The mimetype is used for serialized objects, and tells the
40 ResXResourceReader how to depersist the object. This is currently not
41 extensible. For a given mimetype the value must be set accordingly:
42
43 Note - application/x-microsoft.net.object.binary.base64 is the format
44 that the ResXResourceWriter will generate, however the reader can
45 read any of the formats listed below.
46
47 mimetype: application/x-microsoft.net.object.binary.base64
48 value : The object must be serialized with
49 : System.Serialization.Formatters.Binary.BinaryFormatter
50 : and then encoded with base64 encoding.
51
52 mimetype: application/x-microsoft.net.object.soap.base64
53 value : The object must be serialized with
54 : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55 : and then encoded with base64 encoding.
56
57 mimetype: application/x-microsoft.net.object.bytearray.base64
58 value : The object must be serialized into a byte array
59 : using a System.ComponentModel.TypeConverter
60 : and then encoded with base64 encoding.
61 -->
62 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63 <xsd:element name="root" msdata:IsDataSet="true">
64 <xsd:complexType>
65 <xsd:choice maxOccurs="unbounded">
66 <xsd:element name="metadata">
67 <xsd:complexType>
68 <xsd:sequence>
69 <xsd:element name="value" type="xsd:string" minOccurs="0" />
70 </xsd:sequence>
71 <xsd:attribute name="name" type="xsd:string" />
72 <xsd:attribute name="type" type="xsd:string" />
73 <xsd:attribute name="mimetype" type="xsd:string" />
74 </xsd:complexType>
75 </xsd:element>
76 <xsd:element name="assembly">
77 <xsd:complexType>
78 <xsd:attribute name="alias" type="xsd:string" />
79 <xsd:attribute name="name" type="xsd:string" />
80 </xsd:complexType>
81 </xsd:element>
82 <xsd:element name="data">
83 <xsd:complexType>
84 <xsd:sequence>
85 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87 </xsd:sequence>
88 <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89 <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90 <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91 </xsd:complexType>
92 </xsd:element>
93 <xsd:element name="resheader">
94 <xsd:complexType>
95 <xsd:sequence>
96 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97 </xsd:sequence>
98 <xsd:attribute name="name" type="xsd:string" use="required" />
99 </xsd:complexType>
100 </xsd:element>
101 </xsd:choice>
102 </xsd:complexType>
103 </xsd:element>
104 </xsd:schema>
105 <resheader name="resmimetype">
106 <value>text/microsoft-resx</value>
107 </resheader>
108 <resheader name="version">
109 <value>2.0</value>
110 </resheader>
111 <resheader name="reader">
112 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113 </resheader>
114 <resheader name="writer">
115 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116 </resheader>
117</root> \ No newline at end of file
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.Designer.cs b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.Designer.cs
deleted file mode 100644
index 690fde3ba..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:4.0.30319.239
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace CPUMonitor.Properties {
12
13
14 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
16 internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17
18 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19
20 public static Settings Default {
21 get {
22 return defaultInstance;
23 }
24 }
25 }
26}
diff --git a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.settings b/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.settings
deleted file mode 100644
index 39645652a..000000000
--- a/lib/lufa/Projects/LEDNotifier/CPUUsageApp/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
1<?xml version='1.0' encoding='utf-8'?>
2<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
3 <Profiles>
4 <Profile Name="(Default)" />
5 </Profiles>
6 <Settings />
7</SettingsFile>