private void ReadAdapterFiles()
        {
            try
            {
                string path = Paths.ADAPTERS;

                if (Directory.Exists(path))
                {
                    var files = Directory.GetFiles(path, Files.ADAPTER_INI, SearchOption.AllDirectories);
                    if (files != null)
                    {
                        AdapterItems.Clear();

                        foreach (var file in files)
                        {
                            var info = AdapterInfo.Read(file);

                            var item = new Controls.AdapterItem(info);
                            item.RemoveClicked += AdapterItem_RemoveClicked;
                            AdapterItems.Add(item);
                        }
                    }
                }
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); }
        }
        private void ReadAdapterFiles()
        {
            string path = Paths.ADAPTER_TEMPLATES;

            if (Directory.Exists(path))
            {
                var files = Directory.GetFiles(path, Files.ADAPTER_INI, SearchOption.AllDirectories);
                if (files != null)
                {
                    foreach (var file in files)
                    {
                        string type = Directory.GetParent(file).Name;

                        var info = AdapterInfo.Read(file);

                        var bt = new ListButton();
                        bt.Selected  += Adapter_Selected;
                        bt.Text       = type;
                        bt.DataObject = Directory.GetParent(file).FullName;
                        Adapters.Add(bt);
                    }
                }
            }
        }