internal FrmAliases(Aliases a) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // aliases = a; }
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; }
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); } }