# piratebeast/conultentangecy architecture

> Architecture diagram of the GitHub repository piratebeast/conultentangecy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/piratebeast/conultentangecy
- Repository: https://github.com/piratebeast/conultentangecy

## Overview

##### Main Components

A. Presentation Layer (Windows Forms)
- Main form components:
- Login Form (frmLogin)
- Dashboard (dashBoard)
- Embassy Management (embassy)
- Employee Management (employee)
- Homes Management (homes)
- University Management (university)

B. Business Logic Layer
- Supporting components:
- CircularProgressBar (UI component)
- Authentication logic
- Data validation and processing

C. Data Access Layer
- SQL Database connection
- CRUD operations for each entity

##### Component Relationships

a) Top Level (User Interface):
- Dashboard as the central hub
- Four main modules (Embassy, Employee, Homes, University) branching from the Dashboard

b) Middle Level (Business Logic):
- Authentication flow from Login to Dashboard
- Data processing components for each module
- Validation and business rule components

c) Bottom Level (Data Layer):
- SQL Database
- Data access patterns for each module

- [Presentation Layer]
- ↕
- [Business Logic Layer]
- ↕
- [Data Access Layer]

##### Important Details

- Authentication flow from login to dashboard
- Module access controls
- Data flow between forms and database
- Error handling and validation paths
- Session management

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and Classes
    classDef ui fill:#a8d1f0,stroke:#2980b9,stroke-width:2px
    classDef logic fill:#a8e6cf,stroke:#1abc9c,stroke-width:2px
    classDef data fill:#d3d3d3,stroke:#7f8c8d,stroke-width:2px
    classDef component fill:#ffd3b6,stroke:#e67e22,stroke-width:2px

    %% Presentation Layer
    subgraph Presentation
        Login["Login Form"]:::ui
        Dashboard["Dashboard"]:::ui
        
        subgraph Modules
            Embassy["Embassy Management"]:::ui
            Employee["Employee Management"]:::ui
            Homes["Homes Management"]:::ui
            University["University Management"]:::ui
        end
        
        CPBar["CircularProgressBar"]:::component
    end

    %% Business Logic Layer
    subgraph BusinessLogic
        Auth["Authentication Logic"]:::logic
        Validation["Data Validation"]:::logic
        Processing["Data Processing"]:::logic
    end

    %% Data Access Layer
    subgraph DataAccess
        DB[(SQL Database)]:::data
        CRUD["CRUD Operations"]:::logic
    end

    %% Relationships
    Login --> Auth
    Auth --> Dashboard
    Dashboard --> Embassy
    Dashboard --> Employee
    Dashboard --> Homes
    Dashboard --> University
    
    Embassy & Employee & Homes & University --> Processing
    Processing --> Validation
    Validation --> CRUD
    CRUD --> DB

    CPBar --> Login
    CPBar --> Dashboard

    %% Click Events
    click Login "https://github.com/piratebeast/conultentAngecy/blob/main/Login/frmLogin.cs"
    click Dashboard "https://github.com/piratebeast/conultentAngecy/blob/main/Login/dashBoard.cs"
    click Embassy "https://github.com/piratebeast/conultentAngecy/blob/main/Login/embassy.cs"
    click Employee "https://github.com/piratebeast/conultentAngecy/blob/main/Login/employee.cs"
    click Homes "https://github.com/piratebeast/conultentAngecy/blob/main/Login/homes.cs"
    click University "https://github.com/piratebeast/conultentAngecy/blob/main/Login/university.cs"
    click CPBar "https://github.com/piratebeast/conultentAngecy/blob/main/Login/CircularProgressBar.cs"

    %% Legend
    subgraph Legend
        UI["UI Component"]:::ui
        LOG["Logic Component"]:::logic
        DAT["Data Component"]:::data
        COM["Shared Component"]:::component
    end
```
