Skip to content

1.2.1

Compare
Choose a tag to compare
@JWLMT88 JWLMT88 released this 26 Apr 18:29
· 32 commits to main since this release

LAB Libary

This Libary you can use to build and develop apps with the lilo ecosystem build in.

It includes :

  • UI Elements : WinUI, WinForms, Xaml
  • Converters : any type of data conversion
  • Api Classes : many easy realisable api classes
  • LILO SYS : an easy to use system entry to LILO

This project is also included in srvlocal. Its an Libary/Engine for JW Limited Apps.

How to use it?

Just include this in youre Project and mark it on youre Codefile.

using LABLibary;

Example 1 : APICollection

  • In this Example we first Call the Interface of the ApiCollection and realise the winregistry to lock up any key values.
if (LABLibary.Interface.ApiCollection.WinRegistry.Keys.GetKeyValue("LILO\\local\\DebuggerMode") == "enabled") advancedDebug = true;
  • Here is the same Example a liddle bit advanced but with the same logic behind
    public void ConsoleHandler()
    {
        Interface.ApiCollection.WinRegistry.Keys keys = new Interface.ApiCollection.WinRegistry.Keys();  // We call the Interface
    
        if (keys.GetKeyValue("LILO\\local\\DebuggerMode") == "enabled")                                 // Checking the values 
        {
            var handle = AllocConsole();
            ShowWindow(handle, SW_SHOW);
        }
        else                                                                                            
        {
            openInExtraWindow = false;
            try
            {
                keys.SetKeyValue("DebuggerMode", "disabled");
            }
            catch (Exception msg) { Logger.Error(msg); }
        }
    }

Example 2 : Form Collection

  • This Example calls the Forms Collection and realises the InfoDialog
  • The InforDialog() Method needs two values at first the information you want to provide and the second values
LABLibary.Forms.InfoDialog.Show(ShowVersion(), "Version");

private static string ShowVersion()
{
    return String.Format("AppName Version {0}", AssemblyVersion);
}