Beispiel #1
0
 public async void ShowErrorMessage(string message, string caption = "Error")
 {
     await MessageBoxAsync.ShowAsync(
         this, message,
         caption
         );
 }
Beispiel #2
0
 private async void button3_Click(object sender, EventArgs e)
 {
     try
     {
         var scryptEncryptedData = textBox1.Text.ParseJsonToType <ScryptPassEncryptedData>();
         File.WriteAllText(
             textBox5.Text,
             scryptEncryptedData.WriteObjectToJson(),
             Encoding.UTF8
             );
     }
     catch (Exception exc)
     {
         await MessageBoxAsync.ShowAsync(this, exc.Message);
     }
 }