示例#1
0
        private void Eliminar_Documento(object sender, RoutedEventArgs e)
        {
            try
            {
                if (lvDocs.SelectedItem != null && (lvDocs.SelectedItems.Count == 1))
                {
                    foreach (Cita cita in citasD)
                    {
                        citaVM.EliminarCita(cita);
                    }
                    documento = (Documento)lvDocs.SelectedItem;
                    documentoVM.EliminarDocumento(documento);
                    ProyectosPage.Proyecto.NumDocumentos   = ProyectosPage.Proyecto.NumDocumentos - 1;
                    ProyectosPage.Proyecto.NombreDocActivo = "";
                    ProyectosPage.Proyecto.Token           = "";

                    MostrarDialog(1);
                }
                this.Frame.Navigate(typeof(DocumentoPage));
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.StackTrace);
            }
        }