Exemple #1
0
 private void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e)
 {
     if (workingConn)
     {
         FindMyself();
         foreach (object row in PriviledgesM.Priviledges)
         {
             (row as Priviledge).AcceptChanges();
         }
         PriviledgesM.AcceptChanges();
         Loaded();
         modified = false;
     }
     else
     {
         ConnectionMessage();
     }
 }
Exemple #2
0
        private void ExecuteComplete(object sender, RunWorkerCompletedEventArgs e)
        {
            if (workingConn)
            {
                foreach (object row in PriviledgesM.Priviledges)
                {
                    (row as Priviledge).AcceptChanges();
                }
                PriviledgesM.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();
            }
        }