@@ -114,10 +114,11 @@ private bool IsFileManagerValid(string path)
114
114
}
115
115
}
116
116
117
+ [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Usage" , "VSTHRD100:Avoid async void methods" , Justification = "<Pending>" ) ]
117
118
private async void btnTips_Click ( object sender , RoutedEventArgs e )
118
119
{
119
- string tipText = ( string ) Application . Current . Resources [ "fileManager_files_tips" ] ;
120
- string url = "https://files.community/docs/contributing/updates" ;
120
+ var tipText = ( string ) Application . Current . Resources [ "fileManager_files_tips" ] ;
121
+ var url = "https://files.community/docs/contributing/updates" ;
121
122
122
123
var textBlock = new TextBlock
123
124
{
@@ -128,7 +129,7 @@ private async void btnTips_Click(object sender, RoutedEventArgs e)
128
129
129
130
textBlock . Inlines . Add ( tipText ) ;
130
131
131
- Hyperlink hyperlink = new Hyperlink
132
+ var hyperlink = new Hyperlink
132
133
{
133
134
NavigateUri = new Uri ( url )
134
135
} ;
@@ -147,7 +148,7 @@ private async void btnTips_Click(object sender, RoutedEventArgs e)
147
148
148
149
var tipsDialog = new ContentDialog ( )
149
150
{
150
- Owner = Window . GetWindow ( sender as DependencyObject ) ,
151
+ Owner = Window . GetWindow ( ( DependencyObject ) sender ) ,
151
152
Title = ( string ) Application . Current . Resources [ "fileManager_files_btn" ] ,
152
153
Content = textBlock ,
153
154
PrimaryButtonText = ( string ) Application . Current . Resources [ "commonOK" ] ,
0 commit comments