public WillowTreeMain()
        {
            GlobalSettings.Load();

            if (Directory.Exists(db.DataPath) == false)
            {
                MessageBox.Show("Couldn't find the 'Data' folder! Please make sure that WillowTree# and its data folder are in the same directory.");
                Application.Exit();
                return;
            }

            if (File.Exists(db.DataPath + "default.xml") == false)
            {
                File.WriteAllText(db.DataPath + "default.xml", "<?xml version=\"1.0\" encoding=\"us-ascii\"?>\r\n<INI></INI>\r\n");
            }

            InitializeComponent();

            db.InitializeNameLookup();

            Save.Enabled         = false;
            SaveAs.Enabled       = false;
            SelectFormat.Enabled = false;
            ucGeneral general = new ucGeneral();

            generalTab = general;
            CreatePluginAsTab("General", general);
            CreatePluginAsTab("Weapons", new ucGears());
            CreatePluginAsTab("Items", new ucGears());
            CreatePluginAsTab("Skills", new ucSkills());
            CreatePluginAsTab("Quest", new ucQuests());
            CreatePluginAsTab("Ammo Pools", new ucAmmo());
            CreatePluginAsTab("Echo Logs", new ucEchoes());
            CreatePluginAsTab("Bank", new ucGears());
            CreatePluginAsTab("Locker", new ucLocker());
#if DEBUG
            CreatePluginAsTab("Debug", new ucDebug());
#endif
            CreatePluginAsTab("About", new ucAbout());

            try
            {
                tabControl1.SelectTab("ucAbout");
            }
            catch { }

            SetUITreeStyles(GlobalSettings.UseColor);
        }