示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainForm"/> class.
        /// </summary>
        /// <param name="theProxyList">The proxy list.</param>
        public MainForm(SortableBindingList <ProxySetting> theProxyList)
        {
            InitializeComponent();

            _proxyList = theProxyList;
            _proxyList.Sort("Name", ListSortDirection.Ascending);
            this.proxyBindingSource.DataSource = _proxyList;

            this.gridProxySettings.Columns[0].HeaderCell.SortGlyphDirection = System.Windows.Forms.SortOrder.Ascending;
            this.gridProxySettings.Refresh();

            //Handle Power events
            SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);

            icnProxyNotifyIcon.ShowBalloonTip(1);             // when first opening display a balloon tip.

            checkForUpdatesToolStripMenuItem.Visible = ApplicationDeployment.IsNetworkDeployed;
        }
示例#2
0
 public ProxyNamePromptDialog(SortableBindingList <ProxySetting> proxyList)
 {
     InitializeComponent();
     _proxyList = proxyList;
 }
示例#3
0
        public ExportForm(SortableBindingList <ProxySetting> proxyList)
        {
            _proxyList = proxyList;

            InitializeComponent();
        }