clean up ode
This commit is contained in:
@@ -18,12 +18,12 @@ namespace BlueControl.uwp.ViewModels
|
||||
{
|
||||
private const string SURFACE_KEYBOARD_NAME = "Surface Keyboard";
|
||||
|
||||
public MainPageViewModel()
|
||||
{
|
||||
this.ReloadCommand = new RelayCommand(async () => await ReloadAsync());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
private void CloseApplication(TimeSpan delta)
|
||||
{
|
||||
@@ -39,8 +39,6 @@ namespace BlueControl.uwp.ViewModels
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private readonly Services.IShellService ShellService = Windows.ApplicationModel.DesignMode.DesignModeEnabled
|
||||
? null : Ioc.Default.GetRequiredService<Services.IShellService>();
|
||||
|
||||
@@ -48,16 +46,6 @@ namespace BlueControl.uwp.ViewModels
|
||||
? null : Ioc.Default.GetRequiredService<Services.IBluetoothService>();
|
||||
|
||||
|
||||
|
||||
public MainPageViewModel()
|
||||
{
|
||||
this.ReloadCommand = new RelayCommand(async () => await ReloadAsync());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private string text;
|
||||
public string Text
|
||||
{
|
||||
@@ -80,12 +68,8 @@ namespace BlueControl.uwp.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public ICommand ReloadCommand { get; private set; }
|
||||
|
||||
|
||||
public async Task ReloadAsync()
|
||||
private async Task ReloadAsync()
|
||||
{
|
||||
this.Text = "Loading...";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user