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,8 @@
<Application x:Class="MSLMobile.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="HiddenMainWindow.xaml" Startup="Application_Startup" Exit="Application_Exit">
<Application.Resources>
</Application.Resources>
</Application>

View File

@@ -0,0 +1,116 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
//using Installables.All;
//using Yaulw.Other;
using System.IO;
using System.Reflection;
namespace MSLMobile
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
/// <summary>
/// Main Application Object
/// </summary>
public App()
{
// Make sure all embedded Assemblies get loaded
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
}
#region Application Startup N' Exit
/// <summary>
/// Application_Startup
/// </summary>
private void Application_Startup(object sender, StartupEventArgs e)
{
}
/// <summary>
/// Application_Exit
/// </summary>
private void Application_Exit(object sender, ExitEventArgs e)
{
}
#endregion
#region Unhandled Expections! IMP - Show WinForm and Log
/// <summary>
/// * Generic Unhandled Exception Handler *
/// Handles all unhandled Exceptions for the Entire AppDomain.
/// First Show a Window Message Box, so that we can for sure capture the message
/// Second Log it
/// </summary>
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
Exception ex = (Exception)e.ExceptionObject;
// Exeption to capture error information
string exceptionMessage = "Setup will exit.\n";
exceptionMessage += ex.Message + "\n\n";
if (!String.IsNullOrEmpty(ex.StackTrace))
exceptionMessage += ex.StackTrace.Substring(0, 880) + "\n\n";
if (!String.IsNullOrEmpty(ex.InnerException.Message))
exceptionMessage += ex.InnerException.Message + "\n\n";
if (!String.IsNullOrEmpty(ex.Source))
exceptionMessage += ex.Source + "\n\n";
// Show Message Box First - Guaranteed to work (Polite Exception Message)
MessageBox.Show(exceptionMessage, "Fatal Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
#endregion
#region Application Multi-File Assembly Handling
/// <summary>
/// A way to embed multiple dlls into one exe:
/// http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx
/// </summary>
/// <returns>a loaded assembly if found, null otherwise</returns>
static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
String AssemblyToLookFor = (new AssemblyName(args.Name).Name + ".dll").ToLower();
// Note: due to the nature of click once, we must always
// load the signed assembly not the unsigned
//string[] parts = AssemblyToLookFor.Split('.');
//AssemblyToLookFor = parts[0] + ".signed.dll";
string[] resources = Assembly.GetExecutingAssembly().GetManifestResourceNames();
foreach (string s in resources)
{
if (s.ToLower().EndsWith(AssemblyToLookFor))
{
var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(s);
if (stream != null)
{
using (stream)
{
Byte[] assemblyData = new Byte[stream.Length];
stream.Read(assemblyData, 0, assemblyData.Length);
return Assembly.Load(assemblyData);
}
}
}
}
return null;
}
#endregion
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,73 @@
USE [Mobile_Registration]
GO
/****** Object: Table [dbo].[Hosts_Guids] Script Date: 01/02/2013 00:53:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
-- WILL ONLY WORK LIKE THIS ON SQL 2008
CREATE TABLE [dbo].[Hosts_Guids](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[SystemApiKey] [nchar](22) NOT NULL,
[Host_Guid] [uniqueidentifier] NOT NULL,
[Internal_IP] [nchar](15) NOT NULL,
[External_IP] [nchar](15) NOT NULL,
[Port] [int] NOT NULL,
[Practice_Name] [nvarchar](50) NOT NULL,
[UpdatedToVersion] [varchar](15) NULL,
[LastServerUpdate] [datetime] NULL,
[IsInternal] [bit] NULL,
CONSTRAINT [Hosts_Guids.Primary Key - ID] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [IX_SystemApiKeys] UNIQUE NONCLUSTERED
(
[SystemApiKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
--
-- INDEXES
--
-- Now tie System Api Keys and Host Guids together
CREATE UNIQUE NONCLUSTERED INDEX [IX_SystemApiKeys - HostGuid] ON [dbo].[Hosts_Guids]
(
[SystemApiKey] ASC,
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Host Guids
CREATE NONCLUSTERED INDEX [IX_HostGUIDs] ON [dbo].[Hosts_Guids]
(
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Mobile Api Versions (for later lookup)
CREATE NONCLUSTERED INDEX [IX_ApiVersions] ON [dbo].[Hosts_Guids]
(
[UpdatedToVersion] DESC
) ON [PRIMARY];
-- Create an Index on last IP Update (for seeing who doesn't use it)
CREATE NONCLUSTERED INDEX [IX_IPUpade] ON [dbo].[Hosts_Guids]
(
[LastServerUpdate] ASC
) ON [PRIMARY];
SET ANSI_PADDING OFF
GO

Binary file not shown.

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup>
<appSettings>
<add key="Url" value="ppsmobile.mckesson.com"/>
<add key="Port" value="443" />
<add key="SQLServer" value="127.0.0.1" />
<add key="SQLInstance" value="SQLEXPRESS" />
<add key="SQLDatabaseName" value="Mobile_Registration" />
<add key="SQLUsername" value="sa" />
<add key="SQLPassword" value="Clinical$1" />
</appSettings>
</configuration>

Binary file not shown.

View File

@@ -0,0 +1,59 @@
USE [Mobile_Registration]
GO
/****** Object: Table [dbo].[Hosts_Guids] Script Date: 01/01/2013 23:54:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if not exists(select * from sys.columns where Name = N'UpdatedToVersion' and Object_ID = Object_ID(N'[dbo].[Hosts_Guids]'))
begin
ALTER TABLE [dbo].[Hosts_Guids] ADD [UpdatedToVersion] VARCHAR(15) NULL;
ALTER TABLE [dbo].[Hosts_Guids] ADD [LastServerUpdate] DateTime NULL;
ALTER TABLE [dbo].[Hosts_Guids] ADD [IsInternal] bit NULL;
-- Create new Primary Key Constraint off of ID
ALTER TABLE [dbo].[Hosts_Guids] ADD CONSTRAINT [Hosts_Guids.Primary Key - ID] PRIMARY KEY CLUSTERED ([ID] ASC);
-- Create System Api Key Constraint of SystemApiKey
ALTER TABLE [dbo].[Hosts_Guids] ADD CONSTRAINT [IX_SystemApiKeys] UNIQUE NONCLUSTERED
(
[SystemApiKey] ASC
)
--Only works on SQLServer 2008 it seems
--WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = OFF) ON [PRIMARY]
--
-- INDEXES
--
-- Now tie System Api Keys and Host Guids together
CREATE UNIQUE NONCLUSTERED INDEX [IX_SystemApiKeys - HostGuid] ON [dbo].[Hosts_Guids]
(
[SystemApiKey] ASC,
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Host Guids
CREATE NONCLUSTERED INDEX [IX_HostGUIDs] ON [dbo].[Hosts_Guids]
(
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Mobile Api Versions (for later lookup)
CREATE NONCLUSTERED INDEX [IX_ApiVersions] ON [dbo].[Hosts_Guids]
(
[UpdatedToVersion] DESC
) ON [PRIMARY];
-- Create an Index on last IP Update (for seeing who doesn't use it)
CREATE NONCLUSTERED INDEX [IX_IPUpade] ON [dbo].[Hosts_Guids]
(
[LastServerUpdate] ASC
) ON [PRIMARY];
END
GO

Binary file not shown.

View File

@@ -0,0 +1,3 @@
@echo off
c:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe Pluto.RegistrationServer.exe

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
@echo off
net start "McKesson Mobile Gateway Server"

View File

@@ -0,0 +1,3 @@
@echo off
net stop "McKesson Mobile Gateway Server"

View File

@@ -0,0 +1,3 @@
@echo off
c:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe /u Pluto.RegistrationServer.exe

Binary file not shown.

View File

@@ -0,0 +1,8 @@
<Window x:Class="MSLMobile.HiddenMainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HiddenMainWindow" Height="25" Width="116" Loaded="Window_Loaded" WindowState="Minimized" WindowStyle="None" ShowInTaskbar="False" ResizeMode="NoResize" AllowsTransparency="True" Opacity="0" Visibility="Hidden" ShowActivated="False" IsTabStop="False">
<Grid>
</Grid>
</Window>

View File

@@ -0,0 +1,111 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Yaulw.WPF;
using System.Reflection;
using System.IO;
namespace MSLMobile
{
/// <summary>
/// Interaction logic for HiddenMainWindow.xaml
/// </summary>
public partial class HiddenMainWindow : Window
{
KeepHidden _keepHidden = null;
public HiddenMainWindow()
{
InitializeComponent();
_keepHidden = new KeepHidden(this);
_keepHidden.Show();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
const string SERVICE_NAME = "McKesson Mobile Gateway Server";
const string FOLDER_NAME = "McKesson Mobile Gateway";
string Result = "";
// Stop the service if it exists
Yaulw.Installer.Common.StopService(SERVICE_NAME, 120);
// Get DestPath
//string ProgramFiles = Yaulw.Installer.Common.GetProgramFilesPathOnSystemWithEndSlash();
string ProgramFiles = @"D:\";
string DestPath = ProgramFiles + FOLDER_NAME;
if (!System.IO.Directory.Exists(DestPath))
System.IO.Directory.CreateDirectory(DestPath);
// Extract All Resources to corresponding Programs Folder
string[] resources = Assembly.GetExecutingAssembly().GetManifestResourceNames();
foreach (string s in resources)
{
int nIndex = s.IndexOf("Components.");
if (nIndex != -1)
{
var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(s);
if (stream != null)
{
// Extract the File
string FileName = s.Substring(nIndex + "Components.".Length);
string FileNameNPath = DestPath + "\\" + FileName;
bool bForceRewrite = !FileName.ToLower().EndsWith(".config");
if (!bForceRewrite && File.Exists(FileNameNPath))
{
MessageBoxResult result = MessageBox.Show(String.Format("Would you like to overwrite the following file '{0}' with the default installation File?", FileNameNPath), "Overwrite File?", MessageBoxButton.YesNo, MessageBoxImage.Question);
bForceRewrite = (result == MessageBoxResult.Yes);
if (bForceRewrite) // Make a backup copy
File.Copy(FileNameNPath, FileNameNPath + ".bak");
}
Yaulw.Installer.Common.ExtractResourceStreamToFile(stream, FileNameNPath, bForceRewrite);
}
}
}
// Install the Service
bool bServiceExists = Yaulw.Installer.Common.ServiceExists(SERVICE_NAME);
if (!bServiceExists)
{
string InstallUtil = Yaulw.Installer.Common.GetNetFrameworkUtilFileNameNPathFile("installutil.exe");
if (!String.IsNullOrEmpty(InstallUtil))
{
Result = Yaulw.Installer.Common.RunCmdLine(InstallUtil + " \"" + (DestPath + "\\" + "Pluto.RegistrationServer.exe") + "\"");
//if (!Result.Contains("failed"))
//{
//}
}
}
// Open everything needed for Windows Firewall
// http://stackoverflow.com/questions/7701667/how-to-add-outbound-windows-firewall-exception
// http://www.rickwargo.com/2011/01/08/port-forwarding-port-mapping-on-windows-server-2008-r2/
// http://support.microsoft.com/kb/947709
Result = Yaulw.Installer.Common.RunCmdLine(String.Format("netsh firewall add allowedprogram \"{0}\" \"{1}\" ENABLE ALL", (DestPath + "\\" + "Pluto.RegistrationServer.exe"), "Pluto.RegistrationServer.exe"));
Result = Yaulw.Installer.Common.RunCmdLine("netsh firewall set portopening tcp 443 Pluto.RegistrationServer.exe ENABLE ALL");
//bSuccess = Result.Contains("successfully") || result.Contains("Ok.") || result.Contains("The service has not been started");
// Dont' Start the Service automatically, because maybe the DB Still needs to be configured
// via the app.config file
// Start the Service, when done? - Allow user to specify, there could be db changes, which will crash the
// service so why auto-start it.
MessageBoxResult result2 = MessageBox.Show("Installation Done. Would you like to try to start the service?", "Install Complete", MessageBoxButton.YesNo, MessageBoxImage.Question);
if(result2 == MessageBoxResult.Yes)
Yaulw.Installer.Common.StartService(SERVICE_NAME);
// Close this window, setup is done...
//this.Close();
Application.Current.Shutdown();
}
}
}

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yaulw.File;
using Yaulw.Other;
using Yaulw.Assembly;
namespace MSLMobile
{
//public static class Logger
//{
// // Default Log File Settings
// internal static readonly string LOG_NAME_APPMAIN = "SetupLog";
// internal const int LOG_FILE_FILE_SIZE_IN_MB = 2;
// internal const int LOG_FILE_NUM_OF_BACKUPS = 4;
// internal static string APP_LOG_FILENAMEANDPATH = AssemblyW.SpecializedAssemblyInfo.GetAssemblyPath(AssemblyW.AssemblyST.Entry) + "\\" + "Setup.log";
// // Application's Main Log Object
// internal static Logging Log = null;
// // Log Settings
// private static Logging_Configuration CreateDefaultLoggingConfiguration(string LogFileNameNPath, Logging_Detail Detail, bool UseExclusiveFileLock)
// {
// Logging_Configuration config = new Logging_Configuration();
// config.LogFileNameNPath = LogFileNameNPath;
// config.maxFileSizeInMB = LOG_FILE_FILE_SIZE_IN_MB;
// config.numOfBackupLogFiles = LOG_FILE_NUM_OF_BACKUPS;
// config.Detail = Detail;
// config.UseExclusiveFileLock = UseExclusiveFileLock;
// config.Log4NetDetailPatternLayout = "%level - %message%newline";
// return config;
// }
// static Logger()
// {
// Log = Logging.AddGlobalLoggerConfiguration(LOG_NAME_APPMAIN, CreateDefaultLoggingConfiguration(APP_LOG_FILENAMEANDPATH, Logging_Detail.INFO, false));
// }
//}
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<PublishUrlHistory>Publish\|publish\</PublishUrlHistory>
<InstallUrlHistory>http://services.ndchealthvar.com/mobile1/|http://www.medisoft.com/mobile1/|http://www.medisoft.com/mobile/</InstallUrlHistory>
<SupportUrlHistory>http://www.medisoft.com/support/contactus.aspx</SupportUrlHistory>
<UpdateUrlHistory>http://services.ndchealthvar.com/mobile1/|http://www.medisoft.com/mobile1/|http://www.medisoft.com/mobile/</UpdateUrlHistory>
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

Binary file not shown.

View File

@@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 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("MSLMobile")]
[assembly: AssemblyDescription("MSLMobile Installer")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("McKesson")]
[assembly: AssemblyProduct("MSLMobile")]
[assembly: AssemblyCopyright("McKesson 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)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[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)
)]
// 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.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.296
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MSLMobile.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("MSLMobile.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.296
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MSLMobile.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="uri:settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
<applicationRequestMinimum>
<defaultAssemblyRequest permissionSetReference="Custom" />
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" Unrestricted="true" />
</applicationRequestMinimum>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of all Windows versions that this application is designed to work with. Windows will automatically select the most compatible environment.-->
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
</application>
</compatibility>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!-- <dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>-->
</asmv1:assembly>

View File

@@ -0,0 +1 @@
ppsmobile.mckesson.com;443

View File

@@ -0,0 +1,257 @@
<?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>{6379CBD5-182A-4623-ADDD-C0FEE8A49247}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MSLMobile</RootNamespace>
<AssemblyName>RegSetup</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<IsWebBootstrapper>true</IsWebBootstrapper>
<PublishUrl>Publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<InstallUrl>http://services.ndchealthvar.com/mobile1/</InstallUrl>
<UpdateUrl>http://services.ndchealthvar.com/mobile1/</UpdateUrl>
<SupportUrl>http://www.medisoft.com/support/contactus.aspx</SupportUrl>
<ProductName>MSLMobile</ProductName>
<PublisherName>McKesson</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>default_gen.html</WebPage>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.1</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</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>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>E81C0D2029263F884A22330BFEB4D74465665A84</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>McKesson.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>McKesson.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>false</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Yaulw, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\3rdParty\Sdaleo\Yaulw.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="HiddenMainWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="HiddenMainWindow.xaml.cs">
<DependentUpon>HiddenMainWindow.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Components\Pluto.RegistrationServer.exe.config" />
<EmbeddedResource Include="Components\install.bat" />
<EmbeddedResource Include="Components\start.bat" />
<EmbeddedResource Include="Components\stop.bat" />
<EmbeddedResource Include="Components\uninstall.bat" />
<None Include="McKesson.pfx" />
<None Include="Properties\app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Resource Include="images\Bridge.ico" />
<Resource Include="images\button_close.png" />
<Resource Include="images\mckesson_logo.png" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<PublishFile Include="log4net">
<Visible>False</Visible>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>Assembly</FileType>
</PublishFile>
<PublishFile Include="Yaulw">
<Visible>False</Visible>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>Assembly</FileType>
</PublishFile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Components\Pluto.MSL.Api.dll" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Components\Ace32.dll" />
<EmbeddedResource Include="Components\ADSLOC32.dll" />
<EmbeddedResource Include="Components\Advantage.Data.Provider.dll" />
<EmbeddedResource Include="Components\axcws32.dll" />
<EmbeddedResource Include="Components\log4net.dll" />
<EmbeddedResource Include="Components\RemObjects.InternetPack.dll" />
<EmbeddedResource Include="Components\RemObjects.SDK.dll" />
<EmbeddedResource Include="Components\RemObjects.SDK.Server.dll" />
<EmbeddedResource Include="Components\RemObjects.SDK.ZLib.dll" />
<EmbeddedResource Include="Components\sdaleo.dll" />
<EmbeddedResource Include="Components\yaulw.dll" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Components\Pluto.RegistrationServer.exe" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Components\Hosts_Guids.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Components\SQL_Snippets.sql" />
</ItemGroup>
<ItemGroup>
<Content Include="REGURL.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>copy /y "$(SolutionDir)..\3rdParty\RemObjects\Server\RemObjects.InternetPack.dll" "$(ProjectDir)Components\RemObjects.InternetPack.dll"
copy /y "$(SolutionDir)..\3rdParty\RemObjects\Server\RemObjects.SDK.dll" "$(ProjectDir)Components\RemObjects.SDK.dll"
copy /y "$(SolutionDir)..\3rdParty\RemObjects\Server\RemObjects.SDK.Server.dll" "$(ProjectDir)Components\RemObjects.SDK.Server.dll"
copy /y "$(SolutionDir)..\3rdParty\RemObjects\Server\RemObjects.SDK.ZLib.dll" "$(ProjectDir)Components\RemObjects.SDK.ZLib.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\log4net.dll" "$(ProjectDir)Components\log4net.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\sdaleo.dll" "$(ProjectDir)Components\sdaleo.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\yaulw.dll" "$(ProjectDir)Components\yaulw.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\axcws32.dll" "$(ProjectDir)Components\axcws32.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\Advantage.Data.Provider.dll" "$(ProjectDir)Components\Advantage.Data.Provider.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\ADSLOC32.dll" "$(ProjectDir)Components\ADSLOC32.dll"
copy /y "$(SolutionDir)..\3rdParty\Sdaleo\Ace32.dll" "$(ProjectDir)Components\Ace32.dll"
copy /y "$(TargetDir)Pluto.RegistrationServer.exe.config" "$(ProjectDir)Components\Pluto.RegistrationServer.exe.config"
if $(ConfigurationName) == Release (
"C:\Program Files (x86)\Eziriz\.NET Reactor\dotNET_Reactor.exe" -file "$(TargetDir)Pluto.MSL.Api.dll" -targetfile "$(ProjectDir)Components\Pluto.MSL.Api.dll"
"C:\Program Files (x86)\Eziriz\.NET Reactor\dotNET_Reactor.exe" -file "$(TargetDir)Pluto.RegistrationServer.exe" -targetfile "$(ProjectDir)Components\Pluto.RegistrationServer.exe"
)
if $(ConfigurationName) == Debug (
copy /y "$(TargetDir)Pluto.MSL.Api.dll" "$(ProjectDir)Components\Pluto.MSL.Api.dll"
copy /y "$(TargetDir)Pluto.RegistrationServer.exe" "$(ProjectDir)Components\Pluto.RegistrationServer.exe"
)
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</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,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,31 @@
<Window x:Class="MSLMobile.SetupMainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Window_Loaded" Closed="Window_Closed" BorderBrush="Black" BorderThickness="1" Icon="Bridge.ico"
Title="SetupMainWindow" Height="440" Width="600" ResizeMode="NoResize" WindowStyle="None" ShowInTaskbar="True" Topmost="False" WindowStartupLocation="CenterScreen"
MouseDown="Window_MouseDown" Closing="Window_Closing">
<Grid>
<!-- Close Button -->
<Button Background="Transparent" BorderThickness="0" BorderBrush="Transparent" Height="24" Width="24" HorizontalAlignment="Right" Margin="0,0,0,0" Name="btnCloseAll" VerticalAlignment="Top" Click="btnClose_Click" TabIndex="1">
<Button.Content>
<Image Source="images/button_close.png"></Image>
</Button.Content>
</Button>
<!-- Top Canvas -->
<Canvas Height="60" HorizontalAlignment="Left" Name="canvasTop" VerticalAlignment="Top" Width="600">
<Line X1="10" Y1="50" X2="590" Y2="50" StrokeThickness="2" Canvas.Left="0" Stroke="#FFFF6600" />
<Image Source="images/mckesson_logo.png" />
</Canvas>
<!-- Log Viewer Controls -->
<TextBox Height="304" HorizontalAlignment="Left" Margin="12,66,0,0" Name="textBoxLogViewer" VerticalAlignment="Top" Width="577" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" IsReadOnly="True" IsUndoEnabled="False" />
<Button Content="Continue" Height="23" Margin="0,380,8,0" Name="btnMainButton" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="btnMainButton_Click" />
<!-- Bottom Canvas -->
<Canvas Height="25" HorizontalAlignment="Left" Name="canvasBottom" VerticalAlignment="Bottom" Width="600" Margin="0,0,0,9">
<Line X1="10" Y1="10" X2="590" Y2="10" StrokeThickness="2" Canvas.Left="0" Stroke="#FFFF6600" />
</Canvas>
<Label Foreground="Blue" Margin="9,0,83,35" Name="lblFooter" Height="26" VerticalAlignment="Bottom" />
</Grid>
</Window>

View File

@@ -0,0 +1,265 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Yaulw.File;
using Yaulw.Assembly;
using Yaulw.Other;
using Yaulw.Thread;
using System.Timers;
//using Installables.All;
namespace MSLMobile
{
/// <summary>
/// Interaction logic for SetupMainWindow.xaml
/// </summary>
public partial class SetupMainWindow : Window
{
private Tail _tail = null;
private bool _AllowWindowClosing = true;
private TTimerDisp _dispTimer = null;
private bool _bIsInstall = true;
private string _RotateStates = @"-\|/-\|/-";
private int _lastRotateState = 0;
public SetupMainWindow()
{
InitializeComponent();
}
#region Private Methods
private enum FooterColor
{
Blue,
Red
}
/// <summary>
/// Updates the nice pretty litte footer
/// </summary>
private void updatePrettyFooter_DoingWork(FooterColor color, string Content)
{
string[] periods = new string[] { ".", "..", "...", "....", "." };
updatePrettyFooter(color, Content + " " + periods[_lastRotateState % 5] + " " + _RotateStates[_lastRotateState % 9], "McKesson Bridge Service");
_lastRotateState++;
}
/// <summary>
/// Updates the nice pretty litte footer
/// </summary>
private void updatePrettyFooter(FooterColor color, string Content)
{
updatePrettyFooter(color, Content, "McKesson Bridge Service");
}
/// <summary>
/// Updates the nice pretty litte footer
/// </summary>
private void updatePrettyFooter(FooterColor color, string Content, string ToolTip)
{
// Set the Color
object[] param_s = null;
if (color == FooterColor.Blue)
param_s = new object[] { System.Windows.Media.Brushes.Blue };
else
param_s = new object[] { System.Windows.Media.Brushes.Red };
Action<Brush> ab = delegate(Brush b) { lblFooter.Foreground = b; };
Dispatcher.Invoke(ab, param_s);
// Set the Content
param_s = new object[] { Content };
Action<string> a = delegate(string str) { lblFooter.Content = str; };
Dispatcher.Invoke(a, param_s);
// Set the ToolTip
param_s = new object[] { ToolTip };
a = delegate(string str) { lblFooter.ToolTip = str; };
Dispatcher.Invoke(a, param_s);
}
/// <summary>
/// Handles Incoming Data Stream from the Log File
/// </summary>
/// <param name="sender"></param>
/// <param name="newData"></param>
/// <param name="bIsNewFile">True if this is a new Read, False Otherwise</param>
private void _tail_IncomingData(object sender, string newData, bool bIsNewFile)
{
//if (bIsNewFile)
//{
// object[] param_s = new object[] { newData };
// Action<string> a = delegate(string str) { textBoxLogViewer.Text = str; };
// Dispatcher.Invoke(a, param_s);
// Dispatcher.Invoke((DelegateCollection.Void_Func)textBoxLogViewer.ScrollToEnd, null);
//}
//else
//{
// object[] param_s = new object[] { newData };
// Dispatcher.Invoke((DelegateCollection.Void_Param1_String_Func)textBoxLogViewer.AppendText, param_s);
// Dispatcher.Invoke((DelegateCollection.Void_Func)textBoxLogViewer.ScrollToEnd, null);
//}
}
/// <summary>
///
/// </summary>
private void DispTimerEventHandler(object sender, ElapsedEventArgs e)
{
//// Check if Install/Uninstall Completed
//bool bDone = false;
////if (_bIsInstall)
//// bDone = GenericInstall.s_PerformInstallCompleted;
////else
//// bDone = GenericInstall.s_PerformUninstallCompleted;
//if (!bDone)
//{
// updatePrettyFooter_DoingWork(FooterColor.Blue, _bIsInstall ? "Bridge Install In Progress" : "Bridge Uninstall In Progress");
//}
//else
//{
// // Stop This Timer * Done Here *
// _dispTimer.Stop();
// bool bErrorOccured = false;
// //if (_bIsInstall)
// // bErrorOccured = !GenericInstall.s_PerformInstallCompletedSuccessfully;
// //else
// // bErrorOccured = !GenericInstall.s_PerformUninstallCompletedSuccessfully;
// if (!bErrorOccured)
// updatePrettyFooter(FooterColor.Blue, _bIsInstall ? "Bridge Install Completed Successfully" : "Bride Uninstall Completed Successfully");
// else
// updatePrettyFooter(FooterColor.Red, _bIsInstall ? "Bridge Install Completed with Error(s)" : "Bride Uninstall Completed with Error(s)");
// //if (_bIsInstall && Common.ServiceExists(Common_MediLytec.MediLytecPoundDef.BRIDGE_SERVICE_NAME))
// //{
// // btnMainButton.Content = "Continue";
// //}
// //else
// //{
// // _AllowWindowClosing = true;
// // btnMainButton.Content = "Exit";
// //}
// btnMainButton.IsEnabled = true;
//}
}
#endregion
#region Window Event Handlers
/// <summary>
///
/// </summary>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
//
// _tail = new Tail(Logger.APP_LOG_FILENAMEANDPATH);
// _tail.IncomingData += new Tail.IncomingDataHandler(_tail_IncomingData);
// _tail.StartMonitoring();
// if (!App.s_bIsUninstall)
// {
// _bIsInstall = true;
// btnMainButton.Content = "Continue";
// btnMainButton.IsEnabled = false;
// _AllowWindowClosing = false;
// //GenericInstall.PerformInstall();
// }
// else
// {
// _bIsInstall = false;
// btnMainButton.Content = "Exit";
// btnMainButton.IsEnabled = false;
// _AllowWindowClosing = true;
// //GenericInstall.PerformUninstall(App.s_strComponentsToUninstall);
// }
// // Start GUI Refresh Timer
// _dispTimer = new TTimerDisp(DispTimerEventHandler, 250, true);
}
/// <summary>
///
/// </summary>
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
//if (!_AllowWindowClosing)
// e.Cancel = true;
}
/// <summary>
///
/// </summary>
private void Window_Closed(object sender, EventArgs e)
{
//if (_tail != null)
//{
// _tail.StopMonitoring(true);
// _tail = null;
//}
//Dispatcher.Invoke((DelegateCollection.Void_Func)textBoxLogViewer.Clear, null);
// Let components know that Setup is now complete
//if (btnMainButton.Content.ToString() != "Continue" && !_bIsInstall)
// GenericInstall.SetupMainCompleted();
}
/// <summary>
/// Close Button - Event Handler
/// </summary>
private void btnClose_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
/// <summary>
/// Main Button Event Handler
/// </summary>
private void btnMainButton_Click(object sender, RoutedEventArgs e)
{
Button btn = (Button)sender;
if (btn.Content.ToString() == "Continue" && _bIsInstall)
{
// * NOT NEEDED * Delete Later
//SetBridgeConfigWindow bridgeConfig = new SetBridgeConfigWindow();
//bridgeConfig.Top = this.Top;
//bridgeConfig.Left = this.Left;
//bridgeConfig.Show();
//bridgeConfig.Top = this.Top;
//bridgeConfig.Left = this.Left;
_AllowWindowClosing = true;
this.Close();
}
else
{
this.Close();
}
}
/// <summary>
///
/// </summary>
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
this.DragMove();
}
#endregion
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,80 @@
#pragma checksum "..\..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C0725614C13E97BF4AC826AB85DBEA74"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace MSLMobile {
/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
#line 4 "..\..\..\App.xaml"
this.Startup += new System.Windows.StartupEventHandler(this.Application_Startup);
#line default
#line hidden
#line 4 "..\..\..\App.xaml"
this.Exit += new System.Windows.ExitEventHandler(this.Application_Exit);
#line default
#line hidden
#line 4 "..\..\..\App.xaml"
this.StartupUri = new System.Uri("HiddenMainWindow.xaml", System.UriKind.Relative);
#line default
#line hidden
}
/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
MSLMobile.App app = new MSLMobile.App();
app.InitializeComponent();
app.Run();
}
}
}

View File

@@ -0,0 +1,84 @@
#pragma checksum "..\..\..\HiddenMainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E7B4859B1EACB2D8406511FE160C0774"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace MSLMobile {
/// <summary>
/// HiddenMainWindow
/// </summary>
public partial class HiddenMainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/RegSetup;component/hiddenmainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\..\HiddenMainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 4 "..\..\..\HiddenMainWindow.xaml"
((MSLMobile.HiddenMainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,13 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("regurl.htm")]

View File

@@ -0,0 +1,20 @@
RegSetup
winexe
C#
.cs
\\192.168.2.7\bin\FTP-Private\Pluto\Server\RegSetup\obj\x86\Debug\
MSLMobile
none
false
DEBUG;TRACE
\\192.168.2.7\bin\FTP-Private\Pluto\Server\RegSetup\App.xaml
1-148568124
110268491
51197073072
11-1165114917
HiddenMainWindow.xaml;
False