Beispiel #1
0
 public static void Show(List <Record> data)
 {
     if (Instance == null)
     {
         Instance = new DataSelection();
     }
     Form1.Navigate(Instance);
     Instance.Records = data.ToList();
 }
Beispiel #2
0
 //bool fetching_data = false;
 private void btnData_Click(object sender, EventArgs e)
 {
     //if (fetching_data) return;
     //fetching_data = true;
     LoadingData.Show(() =>
                      Record.All(  //Fetching....
                          (all) => //Finished fetching => do next thing
     {
         //fetching_data = false;
         Records = all;
     }),
                      () => DataSelection.Show(Records));
 }