Beispiel #1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            config = Config.Load();
            config.ConfigChanged += new ConfigChangedEventHandler(config_ConfigChanged);
            DirectoryInfo d = Directory.GetParent(Application.UserAppDataPath);

            mudList = new MudList(d.FullName + @"\MudList.xml");
            mudList.Load();
            keyMap = new KeyMappings(d.FullName + @"\KeyMapping.xml");
            keyMap.Load();
            aliases = new Aliases(d.FullName + @"\Aliases.xml");
            aliases.Load();

            this.Icon = appIcon;

            this.Focus();

            FrmMain_Resize(null, null);
            this.imageList1.Images.Add(appIcon);
            this.imageList1.Images.Add(dataIcon);

            this.cmbInput.Font = config.InputFont;

            if (pendingHost != null && pendingPort > 0)
            {
                Connect(pendingHost, pendingPort);
            }
        }
Beispiel #2
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            config = Config.Load();
            config.ConfigChanged += new ConfigChangedEventHandler(config_ConfigChanged);
            DirectoryInfo d = Directory.GetParent(Application.UserAppDataPath);

            mudList = new MudList(d.FullName + @"\MudList.xml");
            mudList.Load();
            keyMap = new KeyMappings(d.FullName + @"\KeyMapping.xml");
            keyMap.Load();
            aliases = new Aliases(d.FullName + @"\Aliases.xml");
            aliases.Load();

            this.Icon = appIcon;

            this.Focus();

            FrmMain_Resize(null, null);
            this.imageList1.Images.Add(appIcon);
            this.imageList1.Images.Add(dataIcon);

            this.cmbInput.Font = config.InputFont;

            if (pendingHost != null && pendingPort > 0)
            {
                Connect(pendingHost, pendingPort);
            }
        }