/// <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; }
public ProxyNamePromptDialog(SortableBindingList <ProxySetting> proxyList) { InitializeComponent(); _proxyList = proxyList; }
public ExportForm(SortableBindingList <ProxySetting> proxyList) { _proxyList = proxyList; InitializeComponent(); }