Make fields non-static in UWP example.

GitOrigin-RevId: 7c30fc4926c0efc46e942e66ac30085f9331d7d0
This commit is contained in:
levlam 2018-09-01 16:02:24 +03:00
parent 523f4b9b26
commit 91365f20b5

View File

@ -18,7 +18,7 @@ namespace TdApp
{ {
public System.Collections.ObjectModel.ObservableCollection<string> Items { get; set; } public System.Collections.ObjectModel.ObservableCollection<string> Items { get; set; }
private static MyClientResultHandler _handler; private MyClientResultHandler _handler;
public MainPage() public MainPage()
{ {
@ -28,7 +28,7 @@ namespace TdApp
_handler = new MyClientResultHandler(this); _handler = new MyClientResultHandler(this);
Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log")); Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log"));
Td.Log.SetVerbosityLevel(20); Td.Log.SetVerbosityLevel(0);
System.Threading.Tasks.Task.Run(() => System.Threading.Tasks.Task.Run(() =>
{ {
@ -64,7 +64,7 @@ namespace TdApp
}); });
} }
private static Td.Client _client; private Td.Client _client;
private void AcceptCommand(String command) private void AcceptCommand(String command)
{ {