A professional desktop application built using C# and Windows Forms that leverages the Google Gemini 2.5 Flash API to provide instant, highly accurate text summarization. The application features a modern, side-by-side "Soft-UI" layout that allows users to toggle between paragraph and bullet-point summary formats.
This project was developed as a practical programming assignment to demonstrate API integration, asynchronous programming in .NET, and advanced UI/UX design practices in desktop environments.
- Real-Time AI Summarization: Connects seamlessly to the Gemini 2.5 Flash model for fast and intelligent text processing.
- Dual-Format Output: Fully functional toggle buttons allowing users to choose between a cohesive Paragraph or structured Bullet Points.
- Modern Side-by-Side UI: A clean widescreen experience with separate panels for input and output to maximize readability.
- Automated Word Counter: Live character/word counters for both the input and result boxes.
- Smart Placeholders: Interactive text boxes that clear instructions automatically upon focus.
- Advanced Error Handling: Comprehensive try-catch blocks to gracefully handle network dropouts or API quota limitations.
- Language: C# (.NET Framework / .NET Core)
- Framework: Windows Forms (WinForms)
- API Used: Google Gemini 2.5 Flash (via
HttpClientand JSON payload mapping) - Libraries:
Newtonsoft.Json(for robust API response parsing)
- Visual Studio (2019 or newer recommended) with the .NET Desktop Development workload installed.
- Newtonsoft.Json NuGet Package. (If not installed, go to
Tools>NuGet Package Manager>Manage NuGet Packages for Solutionand installNewtonsoft.Json).
For security purposes, the actual API Key has been omitted from the public repository. To run the application successfully:
- Obtain a free API Key from Google AI Studio.
- Open
Form1.csin Visual Studio. - Locate the
GetSummaryFromAImethod. - Replace the placeholder string in
string geminiApiKey = "Api";with your actual generated key.
- Open the project's
.slnfile in Visual Studio. - Press F5 or click the Start button to build and execute the project.
This repository strictly follows the parallel commit guidelines required for this coursework. Significant layout adjustments, API troubleshooting maneuvers, and control integrations have been logged systematically.