Ejemplo n.º 1
0
 public TorrentCreateInfo(TrackerGroup tracker, string mediaLoc)
 {
     this.TrackerGroupActive = tracker;
     this.MediaLocation      = mediaLoc;
     this.TorrentFolder      = GetTorrentFolderPath();
 }
Ejemplo n.º 2
0
 public TorrentCreateInfo(TrackerGroup tracker, string mediaLoc)
 {
     this.TrackerGroupActive = tracker;
     this.MediaLocation = mediaLoc;
     this.TorrentFolder = GetTorrentFolderPath();
 }
Ejemplo n.º 3
0
        private void btnAddTrackerGroup_Click(object sender, EventArgs e)
        {
            InputBox ib = new InputBox();
            ib.Text = "Enter group name";
            ib.InputText = "Linux ISOs";
            if (ib.ShowDialog() == DialogResult.OK)
            {
                TrackerGroup tg = new TrackerGroup(ib.InputText);
                Tracker t = new Tracker("Ubuntu", "http://torrent.ubuntu.com:6969");
                tg.Trackers.Add(t);

                Program.Settings.TrackerGroups.Add(tg);
                lbTrackerGroups.Items.Add(tg);
                lbTrackerGroups.SelectedIndex = lbTrackerGroups.Items.Count - 1;

                btnRefreshTrackers_Click(sender, e);
            }
        }