Ejemplo n.º 1
0
        private void AddNewDocTypeButton_Click(object sender, RoutedEventArgs e)
        {
            DatabaseHandler.CreateNewDocType(NewDocTypeName.Text);
            NewDocTypeName.Text = "";
            TypeTable newType = DatabaseHandler.GetLatestDocumentType();

            docTypes.Add(newType);
            newType.number = docTypes.Count;
            DocumentTypeList.Items.Refresh();
            //TODO UPDATE DOCUMENTS PAGE
            updateDocumentTypesHandler.Invoke();
        }