コード例 #1
0
 private void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e)
 {
     if (workingConn)
     {
         foreach (object row in ServicesM.Services)
         {
             (row as ServicesM.Service).AcceptChanges();
         }
         ServicesM.AcceptChanges();
         modified = false;
         Loaded();
     }
     else
     {
         ConnectionMessage();
     }
 }
コード例 #2
0
        private void ExecuteComplete(object sender, RunWorkerCompletedEventArgs e)
        {
            if (workingConn)
            {
                foreach (object row in ServicesM.Services)
                {
                    (row as ServicesM.Service).AcceptChanges();
                }
                ServicesM.AcceptChanges();
                modified = false;

                dialog         = new Dialog(false, "Módosítások mentése", async() => await Utilities.Loading.Hide());
                dialog.content = new TextBlock("A módosítások mentése sikeresen megtörtént");
                dialog.Start();
            }
            else
            {
                ConnectionMessage();
            }
        }