Esempio n. 1
0
 public SettingsForm(Settings settings)
 {
     InitializeComponent();
     this.Text = Program.Name + " Settings";
     this.settings = settings;
     btnOK.Click += delegate { this.DialogResult = System.Windows.Forms.DialogResult.OK; };
     Hook();
 }
Esempio n. 2
0
 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;
 }