public MeerkatWindow() { InitializeComponent(); // TODO : Look into Unity container to hold this stuff, see video tutorial! OpenFileService openFileService = new OpenFileService(); FolderBrowerService folderBrowser = new FolderBrowerService(); vm = new MeerkatWindowViewModel(openFileService, folderBrowser, MeerkatBindings.BitTorrentManager.Instance()); // All of our Data Bindings will now be in looking at our ViewModel by default this.DataContext = vm; }
public RemoveTorrentCommand(MeerkatWindowViewModel vm) { this.vm = vm; }
public TorrentRecheckCommand(MeerkatWindowViewModel vm) { this.vm = vm; }
public AllowUnencryptedConnectionsCommand(MeerkatWindowViewModel vm) { this.vm = vm; }
public OpenContainingFolderCommand(MeerkatWindowViewModel vm) { this.vm = vm; }
public StartTorrentCommand(MeerkatWindowViewModel vm) { this.vm = vm; }