Adding empty FX control.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Server/FxControl.Designer.cs Fri Apr 15 14:32:45 2016 +0200
1.3 @@ -0,0 +1,45 @@
1.4 +namespace SharpDisplayManager
1.5 +{
1.6 + partial class FxControl
1.7 + {
1.8 + /// <summary>
1.9 + /// Required designer variable.
1.10 + /// </summary>
1.11 + private System.ComponentModel.IContainer components = null;
1.12 +
1.13 + /// <summary>
1.14 + /// Clean up any resources being used.
1.15 + /// </summary>
1.16 + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
1.17 + protected override void Dispose(bool disposing)
1.18 + {
1.19 + if (disposing && (components != null))
1.20 + {
1.21 + components.Dispose();
1.22 + }
1.23 + base.Dispose(disposing);
1.24 + }
1.25 +
1.26 + #region Component Designer generated code
1.27 +
1.28 + /// <summary>
1.29 + /// Required method for Designer support - do not modify
1.30 + /// the contents of this method with the code editor.
1.31 + /// </summary>
1.32 + private void InitializeComponent()
1.33 + {
1.34 + this.SuspendLayout();
1.35 + //
1.36 + // FxControl
1.37 + //
1.38 + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
1.39 + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
1.40 + this.Name = "FxControl";
1.41 + this.Size = new System.Drawing.Size(126, 122);
1.42 + this.ResumeLayout(false);
1.43 +
1.44 + }
1.45 +
1.46 + #endregion
1.47 + }
1.48 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/Server/FxControl.cs Fri Apr 15 14:32:45 2016 +0200
2.3 @@ -0,0 +1,33 @@
2.4 +using System;
2.5 +using System.Collections.Generic;
2.6 +using System.ComponentModel;
2.7 +using System.Drawing;
2.8 +using System.Data;
2.9 +using System.Linq;
2.10 +using System.Text;
2.11 +using System.Threading.Tasks;
2.12 +using System.Windows.Forms;
2.13 +
2.14 +namespace SharpDisplayManager
2.15 +{
2.16 + public partial class FxControl : UserControl
2.17 + {
2.18 + public FxControl()
2.19 + {
2.20 + InitializeComponent();
2.21 + }
2.22 +
2.23 + protected override void OnPaint(PaintEventArgs e)
2.24 + {
2.25 + // Call the OnPaint method of the base class.
2.26 + base.OnPaint(e);
2.27 +
2.28 + SolidBrush brush = new SolidBrush(Color.Blue);
2.29 + // Declare and instantiate a new pen.
2.30 + Pen myPen = new Pen(brush);
2.31 +
2.32 + // Draw an aqua rectangle in the rectangle represented by the control.
2.33 + e.Graphics.DrawRectangle(myPen, new Rectangle(new Point(0,0), this.Size - new Size(1,1)));
2.34 + }
2.35 + }
2.36 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/Server/FxControl.resx Fri Apr 15 14:32:45 2016 +0200
3.3 @@ -0,0 +1,120 @@
3.4 +<?xml version="1.0" encoding="utf-8"?>
3.5 +<root>
3.6 + <!--
3.7 + Microsoft ResX Schema
3.8 +
3.9 + Version 2.0
3.10 +
3.11 + The primary goals of this format is to allow a simple XML format
3.12 + that is mostly human readable. The generation and parsing of the
3.13 + various data types are done through the TypeConverter classes
3.14 + associated with the data types.
3.15 +
3.16 + Example:
3.17 +
3.18 + ... ado.net/XML headers & schema ...
3.19 + <resheader name="resmimetype">text/microsoft-resx</resheader>
3.20 + <resheader name="version">2.0</resheader>
3.21 + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
3.22 + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
3.23 + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
3.24 + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
3.25 + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
3.26 + <value>[base64 mime encoded serialized .NET Framework object]</value>
3.27 + </data>
3.28 + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
3.29 + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
3.30 + <comment>This is a comment</comment>
3.31 + </data>
3.32 +
3.33 + There are any number of "resheader" rows that contain simple
3.34 + name/value pairs.
3.35 +
3.36 + Each data row contains a name, and value. The row also contains a
3.37 + type or mimetype. Type corresponds to a .NET class that support
3.38 + text/value conversion through the TypeConverter architecture.
3.39 + Classes that don't support this are serialized and stored with the
3.40 + mimetype set.
3.41 +
3.42 + The mimetype is used for serialized objects, and tells the
3.43 + ResXResourceReader how to depersist the object. This is currently not
3.44 + extensible. For a given mimetype the value must be set accordingly:
3.45 +
3.46 + Note - application/x-microsoft.net.object.binary.base64 is the format
3.47 + that the ResXResourceWriter will generate, however the reader can
3.48 + read any of the formats listed below.
3.49 +
3.50 + mimetype: application/x-microsoft.net.object.binary.base64
3.51 + value : The object must be serialized with
3.52 + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
3.53 + : and then encoded with base64 encoding.
3.54 +
3.55 + mimetype: application/x-microsoft.net.object.soap.base64
3.56 + value : The object must be serialized with
3.57 + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
3.58 + : and then encoded with base64 encoding.
3.59 +
3.60 + mimetype: application/x-microsoft.net.object.bytearray.base64
3.61 + value : The object must be serialized into a byte array
3.62 + : using a System.ComponentModel.TypeConverter
3.63 + : and then encoded with base64 encoding.
3.64 + -->
3.65 + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
3.66 + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
3.67 + <xsd:element name="root" msdata:IsDataSet="true">
3.68 + <xsd:complexType>
3.69 + <xsd:choice maxOccurs="unbounded">
3.70 + <xsd:element name="metadata">
3.71 + <xsd:complexType>
3.72 + <xsd:sequence>
3.73 + <xsd:element name="value" type="xsd:string" minOccurs="0" />
3.74 + </xsd:sequence>
3.75 + <xsd:attribute name="name" use="required" type="xsd:string" />
3.76 + <xsd:attribute name="type" type="xsd:string" />
3.77 + <xsd:attribute name="mimetype" type="xsd:string" />
3.78 + <xsd:attribute ref="xml:space" />
3.79 + </xsd:complexType>
3.80 + </xsd:element>
3.81 + <xsd:element name="assembly">
3.82 + <xsd:complexType>
3.83 + <xsd:attribute name="alias" type="xsd:string" />
3.84 + <xsd:attribute name="name" type="xsd:string" />
3.85 + </xsd:complexType>
3.86 + </xsd:element>
3.87 + <xsd:element name="data">
3.88 + <xsd:complexType>
3.89 + <xsd:sequence>
3.90 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
3.91 + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
3.92 + </xsd:sequence>
3.93 + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
3.94 + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
3.95 + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
3.96 + <xsd:attribute ref="xml:space" />
3.97 + </xsd:complexType>
3.98 + </xsd:element>
3.99 + <xsd:element name="resheader">
3.100 + <xsd:complexType>
3.101 + <xsd:sequence>
3.102 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
3.103 + </xsd:sequence>
3.104 + <xsd:attribute name="name" type="xsd:string" use="required" />
3.105 + </xsd:complexType>
3.106 + </xsd:element>
3.107 + </xsd:choice>
3.108 + </xsd:complexType>
3.109 + </xsd:element>
3.110 + </xsd:schema>
3.111 + <resheader name="resmimetype">
3.112 + <value>text/microsoft-resx</value>
3.113 + </resheader>
3.114 + <resheader name="version">
3.115 + <value>2.0</value>
3.116 + </resheader>
3.117 + <resheader name="reader">
3.118 + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
3.119 + </resheader>
3.120 + <resheader name="writer">
3.121 + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
3.122 + </resheader>
3.123 +</root>
3.124 \ No newline at end of file
4.1 --- a/Server/MainForm.resx Sun Feb 07 22:37:31 2016 +0100
4.2 +++ b/Server/MainForm.resx Fri Apr 15 14:32:45 2016 +0200
4.3 @@ -185,9 +185,6 @@
4.4 WSC3/b/CbwiR/gNzbuWksIMBOAAAAABJRU5ErkJggg==
4.5 </value>
4.6 </data>
4.7 - <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
4.8 - <value>315, 17</value>
4.9 - </metadata>
4.10 <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
4.11 <value>405, 17</value>
4.12 </metadata>
5.1 --- a/Server/SharpDisplayManager.csproj Sun Feb 07 22:37:31 2016 +0100
5.2 +++ b/Server/SharpDisplayManager.csproj Fri Apr 15 14:32:45 2016 +0200
5.3 @@ -157,6 +157,12 @@
5.4 <Compile Include="CecClient.cs" />
5.5 <Compile Include="ConsumerElectronicControl.cs" />
5.6 <Compile Include="ClientData.cs" />
5.7 + <Compile Include="FxControl.cs">
5.8 + <SubType>UserControl</SubType>
5.9 + </Compile>
5.10 + <Compile Include="FxControl.Designer.cs">
5.11 + <DependentUpon>FxControl.cs</DependentUpon>
5.12 + </Compile>
5.13 <Compile Include="MainForm.Hid.cs">
5.14 <DependentUpon>MainForm.cs</DependentUpon>
5.15 </Compile>
5.16 @@ -186,6 +192,9 @@
5.17 <Compile Include="Win32API.cs" />
5.18 <Compile Include="WindowsHook.cs" />
5.19 <Compile Include="WndProcRetHook.cs" />
5.20 + <EmbeddedResource Include="FxControl.resx">
5.21 + <DependentUpon>FxControl.cs</DependentUpon>
5.22 + </EmbeddedResource>
5.23 <EmbeddedResource Include="MainForm.resx">
5.24 <DependentUpon>MainForm.cs</DependentUpon>
5.25 </EmbeddedResource>