private async void LoadingModelComplete(object sender, RunWorkerCompletedEventArgs e) { SecurityM.AcceptChanges(); await Utilities.Loading.Hide(); await Utilities.Loading.Hide(); }
protected internal SecurityVM(Action SecurityLoad) { this.SecurityLoad = SecurityLoad; SecurityM = new SecurityM(); PasswordManager = new PasswordManager(); Loading = new BackgroundWorker(); Loading.DoWork += new DoWorkEventHandler(LoadingModel); Loading.RunWorkerCompleted += new RunWorkerCompletedEventHandler(LoadingModelComplete); Loading.RunWorkerAsync(); }