Automated dotnet-format update

This commit is contained in:
github-actions-dotnet-formatter[bot] committed 2022-03-13 14:27:46 +00:00
1 parent ed41aabdef
commit 4cb300574c
747 files changed
+1000 -1000

No files matched your search

@@ -20,11 +20,11 @@ public class AutoCompleteTextBoxDemoViewModel : ViewModelBase
FilterItems(value);
}
#else
set
{
Set(ref _searchText, value);
FilterItems(value);
}
set
{
Set(ref _searchText, value);
FilterItems(value);
}
#endif
}
@@ -53,4 +53,4 @@ public class AutoCompleteTextBoxDemoViewModel : ViewModelBase
Items.CanNotify = true;
}
}
}
@@ -13,9 +13,9 @@ public class BadgeDemoViewModel : ViewModelBase
#if NET40
set => Set(nameof(Count), ref _count, value);
#else
set => Set(ref _count, value);
set => Set(ref _count, value);
#endif
}
public RelayCommand CountCmd => new(() => Count++);
}
}
@@ -23,4 +23,4 @@ public class CardDemoViewModel : DemoViewModelBase<CardModel>
DataList.RemoveAt(0);
}
});
}
}
@@ -6,4 +6,4 @@ namespace HandyControlDemo.ViewModel;
public class CoverViewModel : DemoViewModelBase<CoverViewDemoModel>
{
public CoverViewModel(DataService dataService) => DataList = dataService.GetCoverViewDemoDataList();
}
}
@@ -23,7 +23,7 @@ public class DialogDemoViewModel : ViewModelBase
#if NET40
set => Set(nameof(DialogResult), ref _dialogResult, value);
#else
set => Set(ref _dialogResult, value);
set => Set(ref _dialogResult, value);
#endif
}
@@ -58,21 +58,21 @@ public class DialogDemoViewModel : ViewModelBase
}
}
#else
public RelayCommand<bool> ShowInteractiveDialogCmd => new(async withTimer => await ShowInteractiveDialog(withTimer));
public RelayCommand<bool> ShowInteractiveDialogCmd => new(async withTimer => await ShowInteractiveDialog(withTimer));
private async Task ShowInteractiveDialog(bool withTimer)
private async Task ShowInteractiveDialog(bool withTimer)
{
if (!withTimer)
{
if (!withTimer)
{
DialogResult = await Dialog.Show<InteractiveDialog>()
.Initialize<InteractiveDialogViewModel>(vm => vm.Message = DialogResult)
.GetResultAsync<string>();
}
else
{
await Dialog.Show<TextDialogWithTimer>(MessageToken.MainWindow).GetResultAsync<string>();
}
DialogResult = await Dialog.Show<InteractiveDialog>()
.Initialize<InteractiveDialogViewModel>(vm => vm.Message = DialogResult)
.GetResultAsync<string>();
}
else
{
await Dialog.Show<TextDialogWithTimer>(MessageToken.MainWindow).GetResultAsync<string>();
}
}
#endif
public RelayCommand NewWindowCmd => new(() => new DialogDemoWindow
@@ -81,4 +81,4 @@ public class DialogDemoViewModel : ViewModelBase
}.Show());
public RelayCommand<string> ShowWithTokenCmd => new(token => Dialog.Show(new TextDialog(), token));
}
}
@@ -96,4 +96,4 @@ public class GrowlDemoViewModel
{
Owner = Application.Current.MainWindow
}.Show());
}
}
@@ -8,4 +8,4 @@ public class ImageBrowserDemoViewModel
{
public RelayCommand OpenImgCmd => new(() =>
new ImageBrowser(new Uri("pack://application:,,,/Resources/Img/1.jpg")).Show());
}
}
@@ -18,7 +18,7 @@ public class NotificationDemoViewModel : ViewModelBase
#if NET40
set => Set(nameof(ShowAnimation) ,ref _showAnimation, value);
#else
set => Set(ref _showAnimation, value);
set => Set(ref _showAnimation, value);
#endif
}
@@ -30,7 +30,7 @@ public class NotificationDemoViewModel : ViewModelBase
#if NET40
set => Set(nameof(StaysOpen) ,ref _staysOpen, value);
#else
set => Set(ref _staysOpen, value);
set => Set(ref _staysOpen, value);
#endif
}
}
}
@@ -114,4 +114,4 @@ public class NotifyIconDemoViewModel : ViewModelBase
GlobalData.NotifyIconIsShow = false;
_isCleanup = false;
}
}
}
@@ -50,4 +50,4 @@ public class PaginationDemoViewModel : DemoViewModelBase<DemoDataModel>
{
DataList = _totalDataList.Skip((info.Info - 1) * 10).Take(10).ToList();
}
}
}
@@ -14,4 +14,4 @@ public class SideMenuDemoViewModel : ViewModelBase
public RelayCommand<string> SelectCmd => new(Select);
private void Select(string header) => Growl.Success(header);
}
}
@@ -7,4 +7,4 @@ namespace HandyControlDemo.ViewModel;
public class SplitButtonDemoViewModel : ViewModelBase
{
public RelayCommand<string> SelectCmd => new(str => Growl.Info(str));
}
}
@@ -7,4 +7,4 @@ namespace HandyControlDemo.ViewModel;
public class SpriteDemoViewModel
{
public RelayCommand OpenCmd => new(() => Sprite.Show(new AppSprite()));
}
}
@@ -19,7 +19,7 @@ public class StepBarDemoViewModel : DemoViewModelBase<StepBarDemoModel>
#if NET40
set => Set(nameof(StepIndex), ref _stepIndex, value);
#else
set => Set(ref _stepIndex, value);
set => Set(ref _stepIndex, value);
#endif
}
@@ -48,4 +48,4 @@ public class StepBarDemoViewModel : DemoViewModelBase<StepBarDemoModel>
stepBar.Prev();
}
}
}
}
@@ -24,4 +24,4 @@ public class TabControlDemoViewModel : DemoViewModelBase<TabControlDemoModel>
{
Growl.Info($"{(args.OriginalSource as TabItem)?.Header} Closed");
}
}
}
@@ -25,7 +25,7 @@ public class TagDemoViewModel : ViewModelBase
#if NET40
set => Set(nameof(TagName), ref _tagName, value);
#else
set => Set(ref _tagName, value);
set => Set(ref _tagName, value);
#endif
}
@@ -44,4 +44,4 @@ public class TagDemoViewModel : ViewModelBase
});
TagName = string.Empty;
});
}
}
@@ -16,4 +16,4 @@ public class WindowDemoViewModel
window.ShowDialog();
}
}
}
}