Skip to content

Commit

Permalink
Merge pull request #1988 from martijn00/StyleCop
Browse files Browse the repository at this point in the history
StyleCop run on some issue's
  • Loading branch information
martijn00 authored Jun 23, 2017
2 parents 14b32ed + 2732ecf commit b8b860e
Show file tree
Hide file tree
Showing 126 changed files with 488 additions and 243 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public MvxSwipeRefreshLayout(Context context, IAttributeSet attributes)

public ICommand RefreshCommand
{
get { return _refreshCommand; }
get
{
return _refreshCommand;
}
set
{
_refreshCommand = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ protected MvxBottomSheetDialogFragment(IntPtr javaReference, JniHandleOwnership

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ protected MvxDialogFragment(IntPtr javaReference, JniHandleOwnership transfer)

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ protected MvxFragment(IntPtr javaReference, JniHandleOwnership transfer)

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -60,7 +63,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public object DataContext

public IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ public FragmentInfo(string title, Type fragmentType, Type viewModelType)
public Fragment CachedFragment { get; set; }
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ protected MvxPreferenceFragment(IntPtr javaReference, JniHandleOwnership transfe

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -38,7 +41,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand All @@ -57,7 +63,6 @@ public abstract class MvxPreferenceFragment<TViewModel>
: MvxPreferenceFragment, IMvxFragmentView<TViewModel>
where TViewModel : class, IMvxViewModel
{

protected MvxPreferenceFragment()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public abstract class MvxBaseObjectAdapter

public IEnumerable ItemsSource
{
get { return _itemsSource; }
get
{
return _itemsSource;
}
set
{
if (ReferenceEquals(_itemsSource, value))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxBrowseSupportFragment(IntPtr javaReference, JniHandleOwnership tran

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxDetailsSupportFragment(IntPtr javaReference, JniHandleOwnership tra

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxGuidedStepSupportFragment(IntPtr javaReference, JniHandleOwnership

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxHeadersSupportFragment(IntPtr javaReference, JniHandleOwnership tra

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxPlaybackSupportFragment(IntPtr javaReference, JniHandleOwnership tr

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxRowsSupportFragment(IntPtr javaReference, JniHandleOwnership transf

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected MvxSearchSupportFragment(IntPtr javaReference, JniHandleOwnership tran

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand All @@ -54,7 +57,10 @@ public object DataContext

public virtual IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public MvxHorizontalGridView(Context context, IAttributeSet attrs, int defStyle,

public new IMvxRecyclerAdapter Adapter
{
get { return GetAdapter() as IMvxRecyclerAdapter; }
get
{
return GetAdapter() as IMvxRecyclerAdapter;
}
set
{
var existing = Adapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public object DataContext

public IMvxViewModel ViewModel
{
get { return DataContext as IMvxViewModel; }
get
{
return DataContext as IMvxViewModel;
}
set
{
DataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ protected MvxAppCompatDialogFragment(IntPtr javaReference, JniHandleOwnership tr

public object DataContext
{
get { return _dataContext; }
get
{
return _dataContext;
}
set
{
_dataContext = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ protected override void FillBindingNames(IMvxBindingNameRegistry registry)
base.FillBindingNames(registry);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public static void FillDefaultBindingNames(IMvxBindingNameRegistry registry)
{
registry.AddOrOverwrite(typeof(SearchView), MvxAppCompatPropertyBinding.SearchView_Query);
registry.AddOrOverwrite(typeof(MvxAppCompatImageView), nameof(MvxAppCompatImageView.ImageUrl));

}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ private void RadioGroupCheckedChanged(object sender, RadioGroup.CheckedChangeEve
}

bool changed = CheckValueChanged(newValue);
if (!changed) { return; }
if (!changed)
return;

_currentValue = newValue;
FireValueChanged(newValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ protected virtual void OnItemSelected(int position)

public new MvxFilteringAdapter Adapter
{
get { return base.Adapter as MvxFilteringAdapter; }
get
{
return base.Adapter as MvxFilteringAdapter;
}
set
{
var existing = Adapter;
Expand Down Expand Up @@ -114,7 +117,10 @@ public int ItemTemplateId

public object SelectedObject
{
get { return _selectedObject; }
get
{
return _selectedObject;
}
private set
{
if (_selectedObject == value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ private void OnChildViewRemoved(object sender, ChildViewRemovedEventArgs childVi

public IMvxAdapterWithChangedEvent Adapter
{
get { return _adapter; }
get
{
return _adapter;
}
protected set
{
var existing = _adapter;
Expand Down
Loading

0 comments on commit b8b860e

Please sign in to comment.