Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new <see cref="FrmConnectionManager"/> instance.
        /// </summary>
        /// <param name="m">M.</param>
        public FrmConnectionManager(MudList m)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            mudList = m;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a new <see cref="FrmConnectionManager"/> instance.
        /// </summary>
        /// <param name="m">M.</param>
        public FrmConnectionManager(MudList m)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            mudList = m;
        }
Ejemplo n.º 4
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);
            }
        }