private void InitializeLoginParams() { //作っておく AdjustLoginDialogUISupport("org.poderosa.terminalsessions.loginDialogUISupport", "telnetSSHLoginDialogUISupport"); LoginDialogInitializeInfo info = new LoginDialogInitializeInfo(); IExtensionPoint extp = TerminalSessionsPlugin.Instance.PoderosaWorld.PluginManager.FindExtensionPoint("org.poderosa.terminalsessions.telnetSSHLoginDialogInitializer"); Debug.Assert(extp != null); ITelnetSSHLoginDialogInitializer[] suppliers = (ITelnetSSHLoginDialogInitializer[])extp.GetExtensions(); //順序を問わず全部突っ込む foreach (ITelnetSSHLoginDialogInitializer s in suppliers) { s.ApplyLoginDialogInfo(info); } foreach (string h in info.Hosts) { _hostBox.Items.Add(h); } if (_hostBox.Items.Count > 0) { _hostBox.SelectedIndex = 0; } foreach (string a in info.Accounts) { _userNameBox.Items.Add(a); } if (_userNameBox.Items.Count > 0) { _userNameBox.SelectedIndex = 0; } foreach (int p in info.Ports) { _portBox.Items.Add(PortDescription(p)); } //TODO ここをEXTP化して、ログの初期設定を行えるようにする _logTypeBox.SelectedIndex = 0; }
private void InitializeLoginParams() { //作っておく AdjustLoginDialogUISupport("org.poderosa.terminalsessions.loginDialogUISupport", "telnetSSHLoginDialogUISupport"); LoginDialogInitializeInfo info = new LoginDialogInitializeInfo(); IExtensionPoint extp = TerminalSessionsPlugin.Instance.PoderosaWorld.PluginManager.FindExtensionPoint("org.poderosa.terminalsessions.telnetSSHLoginDialogInitializer"); Debug.Assert(extp != null); ITelnetSSHLoginDialogInitializer[] suppliers = (ITelnetSSHLoginDialogInitializer[])extp.GetExtensions(); //順序を問わず全部突っ込む foreach (ITelnetSSHLoginDialogInitializer s in suppliers) s.ApplyLoginDialogInfo(info); foreach (string h in info.Hosts) _hostBox.Items.Add(h); if (_hostBox.Items.Count > 0) _hostBox.SelectedIndex = 0; foreach (string a in info.Accounts) _userNameBox.Items.Add(a); if (_userNameBox.Items.Count > 0) _userNameBox.SelectedIndex = 0; foreach (int p in info.Ports) _portBox.Items.Add(PortDescription(p)); //TODO ここをEXTP化して、ログの初期設定を行えるようにする _logTypeBox.SelectedItem = LogType.None; // select EnumListItem<T> by T }