private void RefreshSessions()
        {
            var    puttyRegistry = new PuttyRegistry();
            object lastKnown     = this.cmbSessionName.SelectedItem;

            this.sessionsBindingSource.DataSource = puttyRegistry.GetSessions();
            this.cmbSessionName.SelectedItem      = lastKnown;
        }
Beispiel #2
0
        public PuttyOptionsControl()
        {
            this.InitializeComponent();

            var puttyRegistry = new PuttyRegistry();
            var bindingSource = new BindingSource();

            bindingSource.DataSource         = puttyRegistry.GetSessions();
            this.cmbSessionName.DataSource   = bindingSource;
            this.cmbSessionName.SelectedItem = null;
        }
Beispiel #3
0
        private void RefreshSessions()
        {
            var puttyRegistry = new PuttyRegistry();

            this.sessionsBindingSource.DataSource = puttyRegistry.GetSessions();
        }