@@ -114,10 +114,11 @@ private bool IsFileManagerValid(string path)
114114 }
115115 }
116116
117+ [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Usage" , "VSTHRD100:Avoid async void methods" , Justification = "<Pending>" ) ]
117118 private async void btnTips_Click ( object sender , RoutedEventArgs e )
118119 {
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" ;
121122
122123 var textBlock = new TextBlock
123124 {
@@ -128,7 +129,7 @@ private async void btnTips_Click(object sender, RoutedEventArgs e)
128129
129130 textBlock . Inlines . Add ( tipText ) ;
130131
131- Hyperlink hyperlink = new Hyperlink
132+ var hyperlink = new Hyperlink
132133 {
133134 NavigateUri = new Uri ( url )
134135 } ;
@@ -147,7 +148,7 @@ private async void btnTips_Click(object sender, RoutedEventArgs e)
147148
148149 var tipsDialog = new ContentDialog ( )
149150 {
150- Owner = Window . GetWindow ( sender as DependencyObject ) ,
151+ Owner = Window . GetWindow ( ( DependencyObject ) sender ) ,
151152 Title = ( string ) Application . Current . Resources [ "fileManager_files_btn" ] ,
152153 Content = textBlock ,
153154 PrimaryButtonText = ( string ) Application . Current . Resources [ "commonOK" ] ,
0 commit comments