Exemplo n.º 1
0
        /*  frmMainWindow()
         *
         * Form Constructor, Initializes Components & Server Control Object
         */
        public frmMainWindow()
        {
            // init Window
            InitializeComponent();
            this.Text = this.Text + " v" + skbtCoreConfig.strVersion;

            // Initialize Members
            sc = new skbtServerControl(this);
        }
Exemplo n.º 2
0
        /*  skbtCoreConfig()
         *
         * Initializes all members and attempts to load required config files
         */
        public skbtCoreConfig(skbtServerControl s)
        {
            this.sc = s;

            // Initialize
            this.skbtXMLConfigPath = Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SKBT_Data"), "skbtConfig.xml");

            // Check if folder exists and if not, create it
            if (!Directory.Exists(Path.GetDirectoryName(this.skbtXMLConfigPath)))
            {
                Directory.CreateDirectory(Path.GetDirectoryName(this.skbtXMLConfigPath));
            }

            // Load core config
            loadCoreConfig();
        }