Skip to content

cesarMalanco/CineSharpView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 Cine Sharp View

.NET C# MySQL Windows Forms License

A comprehensive cinema management system with ticket sales, snack bar, and admin dashboard

Cine Sharp View Logo

🎯 About The Project

Cine Sharp View is a full-featured desktop application designed to manage cinema operations efficiently. Built with C# and Windows Forms, it provides an intuitive interface for both customers and administrators.

Why Cine Sharp View?

  • 🎫 Streamlined ticket purchasing with visual movie selection
  • 🍿 Integrated snack bar management system
  • πŸ“Š Real-time analytics and sales reports
  • πŸ” Secure authentication for users and admins
  • πŸ“„ PDF ticket generation for purchases

✨ Features

πŸ‘€ Customer Features

  • Browse movie catalog with posters
  • Purchase tickets for available shows
  • Order snacks and beverages
  • Shopping cart functionality
  • View purchase history
  • PDF ticket generation

πŸ”§ Admin Features

  • Product inventory management
  • Add/Edit/Delete movies & snacks
  • Sales analytics dashboard
  • Visual charts and reports
  • User management
  • Stock control

πŸ“Έ Demo

Loading & Authentication

Loading Screen Login Page
Loading Login

Main Application

Home Dashboard Movie Catalog
Home Movies

Shopping Experience

Movie Details Snack Bar Shopping Cart
Movie Snacks Cart

Admin Panel

Dashboard Products Management Analytics
Admin Products Charts

πŸš€ Installation

Prerequisites

Before you begin, ensure you have the following installed:

Requirement Version Download
.NET SDK 6.0+ Download
MySQL Server 8.0+ Download
Git Latest Download

πŸ’‘ Tip: You can use XAMPP or WAMP as an alternative MySQL server.

Quick Start

# Clone the repository
git clone https://github.com/cesarMalanco/CineSharpView.git

# Navigate to project directory
cd CineSharpView

# Restore NuGet packages
dotnet restore

# Run the application
dotnet run

πŸ—„οΈ Database Setup

Option 1: Using the SQL Script (Recommended)

  1. Start your MySQL server (XAMPP, WAMP, or standalone)
  2. Open phpMyAdmin or MySQL Workbench
  3. Import the file database/cine_database.sql
  4. The script will create the database and populate it with sample data

Option 2: Manual Setup

Click to expand SQL commands
-- Create database
CREATE DATABASE IF NOT EXISTS cine;
USE cine;

-- Users table
CREATE TABLE users (
    id INT PRIMARY KEY AUTO_INCREMENT,
    cuenta VARCHAR(50) NOT NULL UNIQUE,
    nombre VARCHAR(100) NOT NULL,
    pword VARCHAR(255) NOT NULL,
    monto FLOAT DEFAULT 0
);

-- Products table (Movies)
CREATE TABLE products (
    id INT PRIMARY KEY AUTO_INCREMENT,
    name VARCHAR(100) NOT NULL,
    img VARCHAR(255),
    about TEXT,
    precio FLOAT NOT NULL,
    stock INT DEFAULT 0
);

-- Sweets table (Snack bar)
CREATE TABLE sweets (
    id INT PRIMARY KEY AUTO_INCREMENT,
    name VARCHAR(100) NOT NULL,
    stock INT DEFAULT 0,
    about TEXT,
    price FLOAT NOT NULL
);

-- Sample user
INSERT INTO users (cuenta, nombre, pword, monto)
VALUES ('admin', 'Administrator', 'admin123', 1000.00);

Database Connection

The connection string is located in AdmonDB.cs:

string cadena = "Server=localhost; Database=cine; User=root; Password=; SslMode=none;";

⚠️ Note: Update the password if your MySQL installation requires one.


πŸ’» Usage

Running the Application

Option 1: Command Line

dotnet run

Option 2: Visual Studio

  1. Open WinFormsFinalProyect.sln
  2. Press F5 or click Start

Option 3: VS Code

  1. Open the project folder
  2. Press Ctrl+F5

Default Credentials

Role Username Password
Admin admin admin123
User test test

πŸ› οΈ Tech Stack

Technology Purpose
C# Primary Language
.NET Framework
WinForms UI Framework
MySQL Database
iTextSharp PDF Generation

NuGet Packages

<PackageReference Include="MySql.Data" Version="9.1.0" />
<PackageReference Include="iTextSharp" Version="5.5.13.4" />
<PackageReference Include="WinForms.DataVisualization" Version="1.9.2" />

πŸ“ Project Structure

CineSharpView/
β”‚
β”œβ”€β”€ πŸ“„ Core Files
β”‚   β”œβ”€β”€ Program.cs                 # Application entry point
β”‚   β”œβ”€β”€ AdmonDB.cs                 # Database connection & queries
β”‚   └── *.cs                       # Model classes
β”‚
β”œβ”€β”€ πŸ–ΌοΈ Forms/
β”‚   β”œβ”€β”€ FormLoadingScreen.cs       # Splash screen
β”‚   β”œβ”€β”€ FormLoginPage.cs           # Authentication
β”‚   β”œβ”€β”€ FormMainPage.cs            # Main dashboard
β”‚   β”œβ”€β”€ FormMovies.cs              # Movie catalog
β”‚   β”œβ”€β”€ FormFood.cs                # Snack bar
β”‚   └── FormMovie[1-7].cs          # Movie details
β”‚
β”œβ”€β”€ πŸ”§ Admin/
β”‚   β”œβ”€β”€ Frm_Main.cs                # Admin dashboard
β”‚   β”œβ”€β”€ Frm_Productos.cs           # Product management
β”‚   β”œβ”€β”€ Frm_Grafica.cs             # Analytics charts
β”‚   └── Frm_Consultas.cs           # Database queries
β”‚
β”œβ”€β”€ πŸ“‚ database/
β”‚   └── cine_database.sql          # Database schema & data
β”‚
β”œβ”€β”€ πŸ“‚ Images/                     # Movie posters
β”œβ”€β”€ πŸ“‚ Resources/                  # App resources
└── πŸ“‚ screenshots/                # Demo screenshots

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘€ Author

CΓ©sar Malanco, Fer Vela Danna Castro, Darely Quezada & Isabel Alvarado

GitHub


Built with ❀️ using C# and Windows Forms

About

A full-featured C# Windows Forms desktop application for managing cinema operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages