Initial Commit

This commit is contained in:
2016-07-27 00:32:34 -04:00
commit 8d162b2035
701 changed files with 188672 additions and 0 deletions

View File

@@ -0,0 +1,339 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Pluto.Registration;
namespace RegistrationAPI
{
/// <remarks>
/// Communication Manager to Practice Choice Client API
/// </remarks>
public static class API
{
#region Construction
private static HiddenMainForm _hiddenFrm = null;
static API()
{
_hiddenFrm = new HiddenMainForm();
_hiddenFrm.Opacity = 0;
_hiddenFrm.Show();
_hiddenFrm.Visible = false;
}
#endregion
#region Change Network Settings
/// <summary>
/// Use this function to change the URL and port for the client to use when
/// communicating (affects entire API)
/// </summary>
/// <param name="url"></param>
/// <param name="port"></param>
public static void SetNetworkSettings(string url, uint port)
{
bool bChangeOccured = false;
if (!String.IsNullOrEmpty(url) && String.Compare(_hiddenFrm.ClientChannel.Hostname, url, true) != 0)
{
bChangeOccured = true;
_hiddenFrm.ClientChannel.Hostname = url;
}
if (port > 0 && _hiddenFrm.ClientChannel.Port != (int)port)
{
bChangeOccured = true;
_hiddenFrm.ClientChannel.Port = (int)port;
}
if (bChangeOccured)
{
_hiddenFrm.ClientChannel.TargetUrl = String.Format("tcp://{0}:{1}/bin", _hiddenFrm.ClientChannel.Hostname, _hiddenFrm.ClientChannel.Port);
}
}
#endregion
#region Public Methods (coded here)
/// <summary>
/// The max number of characters a practice name can take on
/// </summary>
public const int PRACTICENAME_LENGTH = 50;
/// <summary>
/// Const will be used when registering in order to distinguish an internal Practice from a real Customer
/// </summary>
public const string INTERNAL_TEST_PRACTICE = " (Mck)";
/// <summary>
/// Because the practice can only be 50 chars, call this function to get INTERNAL_TEST_PRACTICE
/// </summary>
/// <returns></returns>
public static string GetMcKInternalizedPracticeName(string PracticeName)
{
if (!String.IsNullOrEmpty(PracticeName))
{
int nLen = PracticeName.Length + INTERNAL_TEST_PRACTICE.Length;
if (nLen > RegistrationAPI.API.PRACTICENAME_LENGTH)
{
string PName = PracticeName.Substring(0, (RegistrationAPI.API.PRACTICENAME_LENGTH - INTERNAL_TEST_PRACTICE.Length));
return (PName + INTERNAL_TEST_PRACTICE);
}
else
{
return (PracticeName + INTERNAL_TEST_PRACTICE);
}
}
return INTERNAL_TEST_PRACTICE.Trim();
}
#endregion
#region Useful System Registration API Calls
/// <summary>
/// Retrieve the Api Mobile Host for the specified System Key
/// </summary>
/// <param name="SystemApiKey"></param>
/// <returns></returns>
public static Host GetApiMobile(string SystemApiKey)
{
if (!String.IsNullOrEmpty(SystemApiKey))
{
return _hiddenFrm.fRegistration.GetApiHostMobile(SystemApiKey);
}
return null;
}
/// <summary>
/// Is Mobile Host Reachable
/// </summary>
/// <param name="SystemApiKey"></param>
/// <returns></returns>
public static bool IsApiMobileReachable(string SystemApiKey)
{
if (!String.IsNullOrEmpty(SystemApiKey))
{
return _hiddenFrm.fRegistration.IsClientReachable(SystemApiKey);
}
return false;
}
#endregion
#region Useful Windows Client Registration API
/// <summary>
/// Allow retrival of different registration server
/// </summary>
/// <param name="UserApiKey"></param>
/// <param name="UserApiPin"></param>
/// <param name="host"></param>
/// <param name="port"></param>
public static void GetRegistrationServer(string UserApiKey, string UserApiPin, out string host, out uint port)
{
host = String.Empty;
port = 0;
string systemAPIKey = _hiddenFrm.fRegistration.RegisterNewClient(UserApiKey, UserApiPin);
if (!String.IsNullOrEmpty(systemAPIKey))
{
Host hostServer = _hiddenFrm.fRegistration.GetRegistrationServer(systemAPIKey);
if (!String.IsNullOrEmpty(hostServer.host) && hostServer.port > 0)
{
host = hostServer.host;
port = (uint)hostServer.port;
}
}
}
/// <summary>
/// Register a new Practice, should only be called once for a new practice
/// </summary>
/// <param name="ServerGuid"></param>
/// <param name="PracticeName"></param>
/// <param name="InternalIP"></param>
/// <param name="ExternalIP"></param>
/// <param name="Port"></param>
/// <param name="ServerType"></param>
/// <param name="UserApiKey"></param>
/// <param name="UserApiPin"></param>
/// <returns></returns>
public static bool RegisterNewServerPractice(Guid ServerGuid, string PracticeName, string InternalIP, string ExternalIP, uint Port, string ServerType, out string UserApiKey, out string UserApiPin)
{
UserApiKey = String.Empty;
UserApiPin = String.Empty;
if (!String.IsNullOrEmpty(PracticeName) && (!String.IsNullOrEmpty(InternalIP) || !String.IsNullOrEmpty(ExternalIP)) &&
Port > 0 && !String.IsNullOrEmpty(ServerType))
{
Server server = new Server();
server.HostGUID = ServerGuid.ToString();
server.InternalIP = InternalIP;
server.ExternalIP = ExternalIP;
server.Port = (int)Port;
string PName = (PracticeName.Length > PRACTICENAME_LENGTH) ? PracticeName.Substring(0, PRACTICENAME_LENGTH) : PracticeName;
bool bSuccess = _hiddenFrm.fRegistration.RegisterNewServerPractice(PName, server, ServerType, out UserApiKey, out UserApiPin);
return bSuccess;
}
return false;
}
/// <summary>
/// Retrieve the system api key for a userapikey and pin
/// </summary>
/// <param name="UserApiKey"></param>
/// <param name="UserApiPin"></param>
/// <returns></returns>
public static string RegisterNewClient(string UserApiKey, string UserApiPin)
{
if (!String.IsNullOrEmpty(UserApiKey) && !String.IsNullOrEmpty(UserApiPin))
{
return _hiddenFrm.fRegistration.RegisterNewClient(UserApiKey, UserApiPin);
}
return String.Empty;
}
/// <summary>
/// Retrieve the pin for a UserApiKey
/// </summary>
/// <param name="UserApiKey"></param>
/// <returns></returns>
public static string RetrieveUserApiKeyPin(string UserApiKey)
{
if (!String.IsNullOrEmpty(UserApiKey))
{
return _hiddenFrm.fRegistration.RetrieveNewClientPin(UserApiKey);
}
return String.Empty;
}
/// <summary>
/// Update the server external ip, internal ip, and port
/// </summary>
/// <param name="ServerGuid"></param>
/// <param name="InternalIP"></param>
/// <param name="ExternalIP"></param>
/// <param name="Port"></param>
/// <returns></returns>
public static bool UpdateServer(Guid ServerGuid, string InternalIP, string ExternalIP, uint Port)
{
if ((!String.IsNullOrEmpty(InternalIP) || !String.IsNullOrEmpty(ExternalIP)) && Port > 0)
{
Server server = new Server();
server.HostGUID = ServerGuid.ToString();
server.InternalIP = InternalIP;
server.ExternalIP = ExternalIP;
server.Port = (int)Port;
bool bSuccess = _hiddenFrm.fRegistration.UpdateServer(server);
return bSuccess;
}
return false;
}
/// <summary>
/// Update the practice name for a specified userapikey
/// </summary>
/// <param name="UserApiKey"></param>
/// <param name="UserApiPin"></param>
/// <param name="PracticeName"></param>
/// <returns></returns>
public static bool UpdatePracticeName(string UserApiKey, string UserApiPin, string PracticeName)
{
if (!String.IsNullOrEmpty(UserApiKey) && !String.IsNullOrEmpty(UserApiPin) &&
!String.IsNullOrEmpty(PracticeName))
{
string PName = (PracticeName.Length > PRACTICENAME_LENGTH) ? PracticeName.Substring(0, PRACTICENAME_LENGTH) : PracticeName;
return _hiddenFrm.fRegistration.UpdatePracticeName(UserApiKey, UserApiPin, PName);
}
return false;
}
/// <summary>
/// Callback from registration server to see if it can communicate to the specified ip / port
/// </summary>
/// <param name="ExternalIP"></param>
/// <param name="Port"></param>
/// <returns></returns>
public static bool IsServerReachable(string ExternalIP, uint Port)
{
if (!String.IsNullOrEmpty(ExternalIP) && Port > 0)
{
Server server = new Server();
server.ExternalIP = ExternalIP;
server.Port = (int)Port;
bool bRetVal = _hiddenFrm.fRegistration.IsServerReachable(server);
return bRetVal;
}
return false;
}
/// <summary>
/// Callback from registration server to see if the specified ip / port exposes a Pluto HostGUID
/// </summary>
/// <param name="ExternalIP"></param>
/// <param name="Port"></param>
/// <returns></returns>
public static string RetrievePlutoHostGUID(string ExternalIP, uint Port)
{
if (!String.IsNullOrEmpty(ExternalIP) && Port > 0)
{
Server server = new Server();
server.ExternalIP = ExternalIP;
server.Port = (int)Port;
string result = _hiddenFrm.fRegistration.RetrieveHostGUIDForServerFromInternet(server);
return result;
}
return String.Empty;
}
/// <summary>
/// Check to see if the Host Guid exists on the server
/// </summary>
/// <param name="ServerGuid"></param>
/// <returns></returns>
public static bool DoesServerHostGUIDExist(Guid HostGuid)
{
if (HostGuid != null)
{
bool bExists = _hiddenFrm.fRegistration.DoesServerHostGUIDExist(HostGuid.ToString());
return bExists;
}
return false;
}
/// <summary>
/// Allow the Service to communicate back to the Service that a new Version has been installed
/// </summary>
/// <param name="Version"></param>
public static void ServerHasBeenUpdated(Guid HostGuid, string Version)
{
if (!String.IsNullOrEmpty(Version) && HostGuid != null)
{
_hiddenFrm.fRegistration.ServerHasBeenUpdated(HostGuid.ToString(), Version);
}
}
#endregion
#region AutoUpdate / Client / Server Calls
public static Client[] GetExternalClients()
{
List<Client> clientToReturn = new List<Client>();
Client[] clients = _hiddenFrm.fRegistration.GetClients(false);
if (clients != null && clients.Length > 0)
{
foreach (Client client in clients)
{
if (!String.IsNullOrEmpty(client.host.host))
{
clientToReturn.Add(client);
}
}
}
return clientToReturn.ToArray();
}
#endregion
}
}

View File

@@ -0,0 +1,80 @@
namespace RegistrationAPI
{
partial class HiddenMainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.ClientChannel = new RemObjects.SDK.IpTcpClientChannel();
this.binMessage = new RemObjects.SDK.BinMessage();
this.aesEncryptionEnvelope = new RemObjects.SDK.AesEncryptionEnvelope();
this.SuspendLayout();
//
// ClientChannel
//
this.ClientChannel.Hostname = "ppsmobile.mckesson.com";
this.ClientChannel.Port = 443;
this.ClientChannel.TargetUrl = "tcp://ppsmobile.mckesson.com:443/bin";
//
// binMessage
//
this.binMessage.ContentType = "application/octet-stream";
this.binMessage.Envelopes.Add(new RemObjects.SDK.MessageEnvelopeItem(this.aesEncryptionEnvelope));
this.binMessage.SerializerInstance = null;
//
// aesEncryptionEnvelope
//
this.aesEncryptionEnvelope.EnvelopeMarker = "AES";
this.aesEncryptionEnvelope.Password = "KxHWkkE5PAp4tuTzmPKQF7RUyylMk7VOV8zfYln2w6NZJMOvT3yrXofIJWxJYRSQwAkm8DysTG9k7";
//
// HiddenMainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(124, 11);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "HiddenMainForm";
this.Opacity = 0D;
this.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Text = "Hidden";
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.Load += new System.EventHandler(this.HiddenMainForm_Load);
this.ResumeLayout(false);
}
#endregion
internal RemObjects.SDK.IpTcpClientChannel ClientChannel;
private RemObjects.SDK.BinMessage binMessage;
private RemObjects.SDK.AesEncryptionEnvelope aesEncryptionEnvelope;
}
}

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Pluto.Registration;
namespace RegistrationAPI
{
public partial class HiddenMainForm : Form
{
/// <summary>
/// Expose the Registration Object for the API
/// </summary>
internal IRegistration fRegistration = null;
public HiddenMainForm()
{
InitializeComponent();
}
private void HiddenMainForm_Load(object sender, EventArgs e)
{
fRegistration = CoRegistration.Create(binMessage, ClientChannel);
}
}
}

View File

@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ClientChannel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="binMessage.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>136, 17</value>
</metadata>
<metadata name="aesEncryptionEnvelope.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>245, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RegistrationAPI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RegistrationAPI")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("550c98cf-eee7-4d1e-83c4-a27249593fbc")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.269
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace RegistrationAPI.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RegistrationAPI.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.269
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace RegistrationAPI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D8974253-F538-4AA6-B567-48B7CD574888}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RegistrationAPI</RootNamespace>
<AssemblyName>RegistrationAPI</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Target\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\Target\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="RemObjects.InternetPack, Version=7.0.63.1055, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Components\RemObjects.InternetPack.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="RemObjects.SDK, Version=7.0.63.1055, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Components\RemObjects.SDK.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="RemObjects.SDK.ZLib, Version=7.0.63.1055, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Components\RemObjects.SDK.ZLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\RegistrationServer\Registration_Intf.cs">
<Link>Registration_Intf.cs</Link>
</Compile>
<Compile Include="API.cs" />
<Compile Include="HiddenMainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="HiddenMainForm.Designer.cs">
<DependentUpon>HiddenMainForm.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="HiddenMainForm.resx">
<DependentUpon>HiddenMainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@@ -0,0 +1,13 @@
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Debug\RegistrationAPI.pdb
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\RegistrationAPI.HiddenMainForm.resources
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\RegistrationAPI.Properties.Resources.resources
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\ResGen.read.1.tlog
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\ResGen.write.1.tlog
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\RegistrationAPI.pdb
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Debug\RegistrationAPI.dll.config
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Debug\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Debug\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\Target\Debug\RegistrationAPI.dll.config
C:\Users\Administrator\Projects\Pluto\Server\Target\Debug\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\Target\Debug\RegistrationAPI.pdb

View File

@@ -0,0 +1,13 @@
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Release\RegistrationAPI.pdb
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\ResolveAssemblyReference.cache
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\RegistrationAPI.HiddenMainForm.resources
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\RegistrationAPI.Properties.Resources.resources
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\ResGen.read.1.tlog
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\ResGen.write.1.tlog
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\RegistrationAPI.pdb
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Release\RegistrationAPI.dll.config
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\bin\Release\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\RegistrationAPI\obj\x86\Release\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\Target\Release\RegistrationAPI.dll.config
C:\Users\Administrator\Projects\Pluto\Server\Target\Release\RegistrationAPI.dll
C:\Users\Administrator\Projects\Pluto\Server\Target\Release\RegistrationAPI.pdb