Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Restart after file uploading?

$
0
0

Hi,

   I have a click once installation. During the installation it will pop-up to load a license file. What happens is that after I upload I check it always show me the license status is false. Only after I restart then its fine. Below is my codes.


                   
File.Copy(path, destinationPath, true);                    System.Windows.MessageBox.Show("Validitiy is :" + IsValidLicenseAvailable());                    //Application.Current.Shutdown();                    if (IsValidLicenseAvailable() == true)                    {                        this.DialogResult = true;                        this.Close();                    }
So immediately after uploading the status is always false. Thus I was thinking after uploading can I like restart my application rather then close the pop-up and then load my main window?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>