diff --git a/MTC_Sim/MTC_Sim/AdapterConf.cs b/MTC_Sim/MTC_Sim/AdapterConf.cs index 8835f54..4c3c78b 100644 --- a/MTC_Sim/MTC_Sim/AdapterConf.cs +++ b/MTC_Sim/MTC_Sim/AdapterConf.cs @@ -4,7 +4,7 @@ using System.IO; using System.Xml; using System.Xml.Serialization; -namespace MTC_Sim +namespace MTC_Adapter { #region -- AdapterConf Class -- /// diff --git a/MTC_Sim/MTC_Sim/AdapterDemo.cs b/MTC_Sim/MTC_Sim/AdapterDemo.cs index fcbfd8c..9c4e513 100644 --- a/MTC_Sim/MTC_Sim/AdapterDemo.cs +++ b/MTC_Sim/MTC_Sim/AdapterDemo.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace MTC_Sim +namespace MTC_Adapter { public class AdapterDemo : AdapterGeneric { @@ -17,7 +17,7 @@ namespace MTC_Sim /// /// /// - public AdapterDemo(CMS_MachineSim caller, AdapterConf adpConf) : base(caller, adpConf) + public AdapterDemo(MainForm caller, AdapterConf adpConf) : base(caller, adpConf) { if (utils.CRB("verbose")) lg.Info("Start init Adapter DEMO"); // IMPLICITO: carica da metodo base tutte le specifiche del conf... diff --git a/MTC_Sim/MTC_Sim/AdapterFanuc.cs b/MTC_Sim/MTC_Sim/AdapterFanuc.cs index 6e2c3b2..e1ce271 100644 --- a/MTC_Sim/MTC_Sim/AdapterFanuc.cs +++ b/MTC_Sim/MTC_Sim/AdapterFanuc.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using CMSCncLib.CNC; using System.Runtime.InteropServices; -namespace MTC_Sim +namespace MTC_Adapter { public class AdapterFanuc : AdapterGeneric { @@ -36,7 +36,7 @@ namespace MTC_Sim /// /// /// - public AdapterFanuc(CMS_MachineSim caller, AdapterConf adpConf) : base(caller, adpConf) + public AdapterFanuc(MainForm caller, AdapterConf adpConf) : base(caller, adpConf) { if (utils.CRB("verbose")) lg.Info("Start init Adapter FANUC all'IP {0}", utils.CRS("ipFanuc")); diff --git a/MTC_Sim/MTC_Sim/AdapterGeneric.cs b/MTC_Sim/MTC_Sim/AdapterGeneric.cs index 818f042..64238ec 100644 --- a/MTC_Sim/MTC_Sim/AdapterGeneric.cs +++ b/MTC_Sim/MTC_Sim/AdapterGeneric.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using NLog; -namespace MTC_Sim +namespace MTC_Adapter { using MTConnect; using System.Configuration; @@ -555,7 +555,7 @@ namespace MTC_Sim /// /// Form chiamante /// - protected CMS_MachineSim parentForm; + protected MainForm parentForm; /// /// Conf adapter corrente /// @@ -782,7 +782,7 @@ namespace MTC_Sim /// /// /// - public AdapterGeneric(CMS_MachineSim caller, AdapterConf adpConf) + public AdapterGeneric(MainForm caller, AdapterConf adpConf) { lg = LogManager.GetCurrentClassLogger(); lg.Info("Avvio AdapterGeneric"); diff --git a/MTC_Sim/MTC_Sim/App.config b/MTC_Sim/MTC_Sim/App.config index 4304e7b..f637708 100644 --- a/MTC_Sim/MTC_Sim/App.config +++ b/MTC_Sim/MTC_Sim/App.config @@ -31,7 +31,7 @@ - + @@ -48,7 +48,6 @@ - diff --git a/MTC_Sim/MTC_Sim/BinaryFormatter.cs b/MTC_Sim/MTC_Sim/BinaryFormatter.cs index e25512d..fa43a75 100644 --- a/MTC_Sim/MTC_Sim/BinaryFormatter.cs +++ b/MTC_Sim/MTC_Sim/BinaryFormatter.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using System.Globalization; using System.Numerics; -namespace MTC_Sim +namespace MTC_Adapter { public class BinaryFormatter : IFormatProvider, ICustomFormatter diff --git a/MTC_Sim/MTC_Sim/EnumExtensions.cs b/MTC_Sim/MTC_Sim/EnumExtensions.cs index dff1a80..58a4b05 100644 --- a/MTC_Sim/MTC_Sim/EnumExtensions.cs +++ b/MTC_Sim/MTC_Sim/EnumExtensions.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace MTC_Sim +namespace MTC_Adapter { public static class EnumerationExtensions diff --git a/MTC_Sim/MTC_Sim/MTC-Adapter.csproj b/MTC_Sim/MTC_Sim/MTC-Adapter.csproj index fd9e498..bacf468 100644 --- a/MTC_Sim/MTC_Sim/MTC-Adapter.csproj +++ b/MTC_Sim/MTC_Sim/MTC-Adapter.csproj @@ -33,7 +33,7 @@ 4 - CMS.ico + Resurces\CMS.ico @@ -59,15 +59,16 @@ AdapterVers.cs + - + Form - - CMS_MachineSim.cs + + MainForm.cs @@ -79,8 +80,8 @@ SetupAdapter.cs - - CMS_MachineSim.cs + + MainForm.cs ResXFileCodeGenerator @@ -96,13 +97,15 @@ SetupAdapter.cs - + Always Always + + Always @@ -140,6 +143,10 @@ {2d769ffd-1122-4276-a115-29246e6d23c5} CMSCncLib + + {7a12fe26-9c58-4630-973d-d4872374dbaf} + SCMCncLib + diff --git a/MTC_Sim/MTC_Sim/Program.cs b/MTC_Sim/MTC_Sim/Program.cs index 80a5e67..dda3b92 100644 --- a/MTC_Sim/MTC_Sim/Program.cs +++ b/MTC_Sim/MTC_Sim/Program.cs @@ -5,7 +5,7 @@ using System.Runtime.InteropServices; using System.Threading.Tasks; using System.Windows.Forms; -namespace MTC_Sim +namespace MTC_Adapter { static class Program { @@ -24,7 +24,7 @@ namespace MTC_Sim Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new CMS_MachineSim()); + Application.Run(new MainForm()); //FreeConsole(); } diff --git a/MTC_Sim/MTC_Sim/utils.cs b/MTC_Sim/MTC_Sim/utils.cs index 2eb2420..c68cd25 100644 --- a/MTC_Sim/MTC_Sim/utils.cs +++ b/MTC_Sim/MTC_Sim/utils.cs @@ -7,7 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace MTC_Sim +namespace MTC_Adapter { public class utils { diff --git a/MTC_Sim/VersGen/AdapterVers.cs b/MTC_Sim/VersGen/AdapterVers.cs index b75cdad..1a292be 100644 --- a/MTC_Sim/VersGen/AdapterVers.cs +++ b/MTC_Sim/VersGen/AdapterVers.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("1.0.1.85")] -[assembly: AssemblyFileVersion("1.0.1.85")] -[assembly: AssemblyCopyright("Steamware-CMS-SCM © 2016-2016")] -[assembly: AssemblyCompany("Steamware-CMS-SCM")] +[assembly: AssemblyVersion("1.0.2.86")] +[assembly: AssemblyFileVersion("1.0.2.86")] +[assembly: AssemblyCopyright("Steamware-SCM-CMS © 2015-2016")] +[assembly: AssemblyCompany("Steamware-SCM-CMS")] diff --git a/MTC_Sim/VersGen/AdapterVers.tt b/MTC_Sim/VersGen/AdapterVers.tt index d0b3311..1ec7a1d 100644 --- a/MTC_Sim/VersGen/AdapterVers.tt +++ b/MTC_Sim/VersGen/AdapterVers.tt @@ -6,10 +6,10 @@ using System.Reflection; -[assembly: AssemblyVersion("1.0.1.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("1.0.1.<#= this.RevisionNumber #>")] -[assembly: AssemblyCopyright("Steamware-CMS-SCM © 2016-<#= DateTime.Now.Year #>")] -[assembly: AssemblyCompany("Steamware-CMS-SCM")] +[assembly: AssemblyVersion("1.0.2.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("1.0.2.<#= this.RevisionNumber #>")] +[assembly: AssemblyCopyright("Steamware-SCM-CMS © 2015-<#= DateTime.Now.Year #>")] +[assembly: AssemblyCompany("Steamware-SCM-CMS")] <#+ int RevisionNumber = (int)(DateTime.UtcNow - new DateTime(2014,10,1)).TotalDays/7; #> \ No newline at end of file