private async void btnsession_Click(object sender, RoutedEventArgs e) { var mySettings = new MetroDialogSettings() { AffirmativeButtonText = "Si", NegativeButtonText = "No", //FirstAuxiliaryButtonText = "Cancelar", ColorScheme = MetroDialogOptions.ColorScheme, }; MessageDialogResult result = await this.ShowMessageAsync(Ent_Msg.msginfomacion, "Esta seguro de cerrar session!", MessageDialogStyle.AffirmativeAndNegative, mySettings); if (result == MessageDialogResult.Affirmative) { //cerrar session Ent_Global._session_activa = false; OpcionesMenu frm = new OpcionesMenu(); frm.Show(); this.Close(); //Modulos._session_activa = false; //Modulos frm = new Modulos(); //frm.Show(); } }
private void btnprincipal_Click(object sender, RoutedEventArgs e) { Ent_Global._session_activa = true; OpcionesMenu frm = new OpcionesMenu(); frm.Show(); this.Close(); }