public TorrentClientsEnum(TorrerntSettingsUI MainForm) { rm2.Program.currentRM = currentRMIns; int num; this._clientsNum = 5; this.random = new Random(); this.stringGenerator = new RandomStringGenerator(); this._mainForm = MainForm; this.internalClients = this.EnumerateInternalClients(); this.externalClients = this.EnumerateExternalClients(); this._torrentClients = new TorrentClient[this.externalClients.Length + this.internalClients.Length]; int num2 = 0; for (num = 0; num < this.externalClients.Length; num++) { this._torrentClients[num] = this.externalClients[num]; num2++; } for (num = 0; num < this.internalClients.Length; num++) { this._torrentClients[num2 + num] = this.internalClients[num]; } }
public ApplicationSettings(TorrerntSettingsUI MainForm) { this._configPath = Application.StartupPath + @"\rm2.config"; this._torrentsConfigDir = Application.StartupPath + @"\Torrents Config\"; this._mainForm = MainForm; if (!Directory.Exists(this._torrentsConfigDir)) { Directory.CreateDirectory(this._torrentsConfigDir); } }
public MemReader(rm2.UI.TorrerntSettingsUI callerForm, TorrentClient parCClient) { this._mainForm = callerForm; //this.currentClient = this._mainForm.getCurrentClient(); this.currentClient = parCClient; this.currentClientProcessName = this.currentClient.ProcessName; this.clientSearchString = "&peer_id=" + this.currentClient.PeerIDPrefix; //this.reSearchStr.Text = this.clientSearchString; //this.reProcessNameBox.Text = this.currentClientProcessName; }