private async void ShowModal(object sender, OnShowEventArgs eventArgs) { this.title = eventArgs.Title; this.content = eventArgs.Content; this.parameters = eventArgs.Parameters; this.isVisibal = true; this.SetModalOptions(eventArgs.Options); await this.InvokeAsync(this.StateHasChanged); }
private void MainWindow_OnShow(object sender, OnShowEventArgs e) { UserSettings.Instance.MainWindowVisibility = true; }