Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: SyncMenu - The list view showing audio files to sync now wor…
…ks; the Add/Remove buttons also work. The scrollbar is reset when refreshing the contents but that will be fixed later. Added basic layout for SyncDownload; the progress bar is now updated as a test; the sync process completes successfully! Related to issue #422.
- Loading branch information
1 parent
097917d
commit 5c11bf4
Showing
20 changed files
with
2,994 additions
and
2,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,48 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System; | ||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
/// <summary> | ||
/// Base presenter. | ||
/// </summary> | ||
public class BasePresenter<T> : IBasePresenter<T> where T : IBaseView | ||
{ | ||
// Private variables | ||
public T View { get; private set; } | ||
|
||
#region Constructor and Dispose | ||
|
||
public BasePresenter() | ||
{ | ||
} | ||
|
||
#endregion | ||
|
||
/// <summary> | ||
/// Binds the view to its implementation. | ||
/// </summary> | ||
/// <param name='view'>View implementation</param> | ||
public virtual void BindView(T view) | ||
{ | ||
// Validate parameters | ||
if(view == null) | ||
throw new ArgumentNullException("The view parameter is null!"); | ||
|
||
// Set properties | ||
this.View = view; | ||
} | ||
} | ||
} | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System; | ||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
/// <summary> | ||
/// Base presenter. | ||
/// </summary> | ||
public class BasePresenter<T> : IBasePresenter<T> where T : IBaseView | ||
{ | ||
// Private variables | ||
public T View { get; private set; } | ||
|
||
public BasePresenter() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Binds the view to its implementation. | ||
/// </summary> | ||
/// <param name='view'>View implementation</param> | ||
public virtual void BindView(T view) | ||
{ | ||
if(view == null) | ||
throw new ArgumentNullException("The view parameter is null!"); | ||
|
||
this.View = view; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.