/// <summary> /// Start application in FrontOffice mode. /// See IN009034 for further details. /// </summary> private static void StartFrontOffice() { _log.Debug("void StartFrontOffice() :: StartApp: AppMode.FrontOffice"); LogicPos logicPos = new LogicPos(); logicPos.StartApp(AppMode.FrontOffice); }
void PosBaseWindow_DeleteEvent(object o, DeleteEventArgs args) { Hide(); //Pos if (SourceWindow != null) { SourceWindow.ShowAll(); } //Startup Window else { LogicPos.Quit(this); }; //Prevent Window Destroy, When user Uses Close args.RetVal = true; }
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //Event: touchButtonPosToolbarApplicationClose void touchButtonPosToolbarApplicationClose_Clicked(object sender, EventArgs e) { LogicPos.Quit(this); }
void ButtonKeyQuit_Clicked(object sender, EventArgs e) { LogicPos.Quit(this); }
public static void Main(string[] args) { try { // Show current Configuration File _log.Debug(String.Format("Use configuration file: [{0}]", System.AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)); // Init Settings Main Config Settings GlobalFramework.Settings = ConfigurationManager.AppSettings; // BootStrap Paths InitPaths(); // Init PluginContainer GlobalFramework.PluginContainer = new PluginContainer(GlobalFramework.Path["plugins"].ToString()); // PluginSoftwareVendor GlobalFramework.PluginSoftwareVendor = (GlobalFramework.PluginContainer.GetFirstPluginOfType <ISoftwareVendor>()); if (GlobalFramework.PluginSoftwareVendor != null) { // Show Loaded Plugin _log.Debug(String.Format("Registered plugin: [{0}] Name : [{1}]", typeof(ISoftwareVendor), GlobalFramework.PluginSoftwareVendor.Name)); // Init Plugin SettingsApp.InitSoftwareVendorPluginSettings(); // Check if all Resources are Embedded GlobalFramework.PluginSoftwareVendor.ValidateEmbeddedResources(); } else { // Show Loaded Plugin _log.Error(String.Format("Error missing required plugin type Installed: [{0}]", typeof(ISoftwareVendor))); } // Try to Get LicenceManager IntellilockPlugin if in Release if (!Debugger.IsAttached || forceShowPluginLicenceWithDebugger) { GlobalFramework.PluginLicenceManager = (GlobalFramework.PluginContainer.GetFirstPluginOfType <ILicenceManager>()); // Show Loaded Plugin if (GlobalFramework.PluginLicenceManager != null) { _log.Debug(String.Format("Registered plugin: [{0}] Name : [{1}]", typeof(ILicenceManager), GlobalFramework.PluginLicenceManager.Name)); } } // Required before LicenseRouter Application.Init(); //Render GTK Theme : In Start to Style UI in BootStrap Dialogs Error Theme.ParseTheme(true, false); // Initialize LicenseRouter if IntellilockPlugin plugin is Registered in PluginContainer if (GlobalFramework.PluginLicenceManager != null && (!Debugger.IsAttached || forceShowPluginLicenceWithDebugger)) { // Boot LogicPos after LicenceManager.IntellilockPlugin LicenseRouter licenseRouter = new LicenseRouter(); } else { // Boot LogicPos without pass in LicenseRouter LogicPos logicPos = new LogicPos(); logicPos.StartApp(AppMode.FrontOffice); } } catch (Exception ex) { _log.Error(ex.Message, ex); } }