Fixed build warnings and minor UI fix

This commit is contained in:
Rob Prouse 2015-09-09 05:42:36 -04:00
Родитель 2d991075bf
Коммит ad95165f5a
9 изменённых файлов: 20 добавлений и 14 удалений

Просмотреть файл

@ -11,7 +11,8 @@
<ListView ItemsSource="{Binding Results}" <ListView ItemsSource="{Binding Results}"
ItemSelected="ViewTest" ItemSelected="ViewTest"
VerticalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"> HorizontalOptions="FillAndExpand"
HasUnevenRows="true">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>

Просмотреть файл

@ -21,16 +21,17 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// *********************************************************************** // ***********************************************************************
using System.Threading.Tasks;
using NUnit.Framework.Interfaces;
using NUnit.Runner.ViewModel; using NUnit.Runner.ViewModel;
using Xamarin.Forms; using Xamarin.Forms;
namespace NUnit.Runner.View namespace NUnit.Runner.View
{ {
public partial class ResultsView : ContentPage /// <summary>
/// Xamarin.Forms view of a list of test results
/// </summary>
public partial class ResultsView : ContentPage
{ {
public ResultsView (ResultsViewModel model) internal ResultsView (ResultsViewModel model)
{ {
model.Navigation = Navigation; model.Navigation = Navigation;
BindingContext = model; BindingContext = model;

Просмотреть файл

@ -26,9 +26,12 @@ using Xamarin.Forms;
namespace NUnit.Runner.View namespace NUnit.Runner.View
{ {
/// <summary>
/// The main Xamarin.Forms view of the application
/// </summary>
public partial class SummaryView : ContentPage public partial class SummaryView : ContentPage
{ {
public SummaryView (SummaryViewModel model) internal SummaryView (SummaryViewModel model)
{ {
model.Navigation = Navigation; model.Navigation = Navigation;
BindingContext = model; BindingContext = model;

Просмотреть файл

@ -26,9 +26,12 @@ using Xamarin.Forms;
namespace NUnit.Runner.View namespace NUnit.Runner.View
{ {
/// <summary>
/// Xamarin.Forms view of an individual test result
/// </summary>
public partial class TestView : ContentPage public partial class TestView : ContentPage
{ {
public TestView(TestViewModel model) internal TestView(TestViewModel model)
{ {
BindingContext = model; BindingContext = model;
InitializeComponent(); InitializeComponent();

Просмотреть файл

@ -28,7 +28,7 @@ using Xamarin.Forms;
namespace NUnit.Runner.ViewModel namespace NUnit.Runner.ViewModel
{ {
public class BaseViewModel : INotifyPropertyChanged class BaseViewModel : INotifyPropertyChanged
{ {
/// <summary> /// <summary>
/// So that we can navigate from within the view model /// So that we can navigate from within the view model

Просмотреть файл

@ -21,15 +21,13 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// *********************************************************************** // ***********************************************************************
using System.Windows.Input;
using NUnit.Framework.Interfaces; using NUnit.Framework.Interfaces;
using NUnit.Runner.Extensions; using NUnit.Runner.Extensions;
using NUnit.Runner.View;
using Xamarin.Forms; using Xamarin.Forms;
namespace NUnit.Runner.ViewModel namespace NUnit.Runner.ViewModel
{ {
public class ResultViewModel internal class ResultViewModel
{ {
public ResultViewModel(ITestResult result) public ResultViewModel(ITestResult result)
{ {

Просмотреть файл

@ -29,7 +29,7 @@ using Xamarin.Forms;
namespace NUnit.Runner.ViewModel namespace NUnit.Runner.ViewModel
{ {
public class ResultsViewModel : BaseViewModel class ResultsViewModel : BaseViewModel
{ {
/// <summary> /// <summary>
/// Constructs the view model /// Constructs the view model

Просмотреть файл

@ -34,7 +34,7 @@ using Xamarin.Forms;
namespace NUnit.Runner.ViewModel namespace NUnit.Runner.ViewModel
{ {
public class SummaryViewModel : BaseViewModel class SummaryViewModel : BaseViewModel
{ {
private readonly IList<Assembly> _testAssemblies; private readonly IList<Assembly> _testAssemblies;
private ResultSummary _results; private ResultSummary _results;

Просмотреть файл

@ -29,7 +29,7 @@ using Xamarin.Forms;
namespace NUnit.Runner.ViewModel namespace NUnit.Runner.ViewModel
{ {
public class TestViewModel : BaseViewModel class TestViewModel : BaseViewModel
{ {
public TestViewModel(ITestResult result) public TestViewModel(ITestResult result)
{ {