public SettingsForm(Settings settings) { InitializeComponent(); this.Text = Program.Name + " Settings"; this.settings = settings; btnOK.Click += delegate { this.DialogResult = System.Windows.Forms.DialogResult.OK; }; Hook(); }
public object Clone() { var cl = new Settings(); cl.CommandLine = this.CommandLine; if (this.CommonFolders != null) this.CommonFolders.ForEach(f => cl.CommonFolders.Add((CommonFolder)f.Clone())); cl.LoadTorrentsFrom = this.LoadTorrentsFrom; cl.MonitorFolder = this.MonitorFolder; cl.uTorrentPath = this.uTorrentPath; cl.startMinimized = this.StartMinimized; cl.ResetState(); return cl; }