C# Class CSL.TorrentDataHandler

Inheritance: System.ComponentModel.BackgroundWorker
显示文件 Open project: joslinm/CSL Class Usage Examples

Public Properties

Property Type Description
binding System.Windows.Forms.BindingSource
data dataset
datasetbusy bool
musicadapter datasetTableAdapters.TorrentsTableTableAdapter
table System.Data.DataTable
trackeradapter datasetTableAdapters.TrackersTableTableAdapter

Public Methods

Method Description
AddMovieTorrent ( Movie m ) : void
AddOtherTorrent ( Torrent torrent ) : void
AddTorrent ( Torrent torrent ) : void
AddTracker ( string tracker, string name ) : void
CheckTracker ( string tracker ) : string
GetTrackers ( ) : System.Data.DataRowCollection
RemoveAll ( string datatable ) : void
RemoveTorrent ( string datatable, int index ) : void
TorrentDataHandler ( ) : System
TorrentDataHandler ( dataset &d, datasetTableAdapters &musikadapter ) : System
UpdateTracker ( int id, bool activate ) : void

Private Methods

Method Description
Tables_CollectionChanged ( object sender, CollectionChangeEventArgs e ) : void
Tables_CollectionChanging ( object sender, CollectionChangeEventArgs e ) : void

Method Details

AddMovieTorrent() public method

public AddMovieTorrent ( Movie m ) : void
m Movie
return void

AddOtherTorrent() public method

public AddOtherTorrent ( Torrent torrent ) : void
torrent Torrent
return void

AddTorrent() public method

public AddTorrent ( Torrent torrent ) : void
torrent Torrent
return void

AddTracker() public method

public AddTracker ( string tracker, string name ) : void
tracker string
name string
return void

CheckTracker() public static method

public static CheckTracker ( string tracker ) : string
tracker string
return string

GetTrackers() public static method

public static GetTrackers ( ) : System.Data.DataRowCollection
return System.Data.DataRowCollection

RemoveAll() public static method

public static RemoveAll ( string datatable ) : void
datatable string
return void

RemoveTorrent() public static method

public static RemoveTorrent ( string datatable, int index ) : void
datatable string
index int
return void

TorrentDataHandler() public method

public TorrentDataHandler ( ) : System
return System

TorrentDataHandler() public method

public TorrentDataHandler ( dataset &d, datasetTableAdapters &musikadapter ) : System
d dataset
musikadapter datasetTableAdapters
return System

UpdateTracker() public method

public UpdateTracker ( int id, bool activate ) : void
id int
activate bool
return void

Property Details

binding public_oe static_oe property

public static BindingSource,System.Windows.Forms binding
return System.Windows.Forms.BindingSource

data public_oe static_oe property

public static dataset data
return dataset

datasetbusy public_oe static_oe property

public static bool datasetbusy
return bool

musicadapter public_oe static_oe property

public static datasetTableAdapters.TorrentsTableTableAdapter musicadapter
return datasetTableAdapters.TorrentsTableTableAdapter

table public_oe static_oe property

public static DataTable,System.Data table
return System.Data.DataTable

trackeradapter public_oe property

public datasetTableAdapters.TrackersTableTableAdapter trackeradapter
return datasetTableAdapters.TrackersTableTableAdapter