private void btnota_Click(object sender, RoutedEventArgs e) { NotaCredito nota = new NotaCredito(); nota.NotaWindowStart(_user); nota.Show(); this.Close(); }
private async void btnnc_Click(object sender, RoutedEventArgs e) { if (!Ent_Global._pvt_directo) { NotaCredito frm = new NotaCredito(); frm.Show(); this.Close(); } else { if (Ent_Global._inicio_caja && Ent_Global._fecha_cierre_valida) { NotaCredito frm = new NotaCredito(); frm.Show(); this.Close(); } else { var metroWindow = this; metroWindow.MetroDialogOptions.ColorScheme = MetroDialogOptions.ColorScheme; await metroWindow.ShowMessageAsync(Ent_Msg.msginfomacion, "Debe de iniciar el dia de venta.", MessageDialogStyle.Affirmative, metroWindow.MetroDialogOptions); } } }