Exemple #1
0
 private async void json_button_2_Click(object sender, RoutedEventArgs e)
 {
     JSON_pop.json_window description_json = new JSON_pop.json_window();
     await Task.Run(() =>
     {
         this.Dispatcher.Invoke((Action)(() =>
         {
             description_json.init(L_description);
             for (int i = 0; i < description_json.Root.Count; i++)
             {
                 description_json.main_listview.Items.Add(description_json.Root.Value[i]);
             }
             description_json.ShowDialog();
             if (description_json.SafeClose == true)
             {
                 L_description = description_json.Root;
                 description_textbox.Text = description_json.Detail;
             }
         }));
     });
 }
Exemple #2
0
 private void json_button_1_Click(object sender, RoutedEventArgs e)
 {
     JSON_pop.json_window a = new JSON_pop.json_window();
     a.ShowDialog();
 }