#nullable enable
using System;
using System.Drawing;
using System.Windows.Forms;
using AppStore;
namespace AppStore
{
///
/// 主窗体类,负责应用程序的主界面显示和交互
///
public class MainForm : Form
{
// 软件下载按钮
private Button btnApps = null!;
// 下载进度按钮
private Button btnDownloads = null!;
// 设置按钮
private Button btnSettings = null!;
// 关于按钮
private Button btnAbout = null!;
// 内容显示面板
private Panel contentPanel = null!;
///
/// 初始化窗体组件
///
private void InitializeComponent()
{
// 设置窗体基本属性
// 窗体基本设置
this.Text = "kortapp-z";
this.Size = new Size(1430, 1050); // 增加窗体高度
this.MinimumSize = new Size(600, 600); // 设置最小尺寸
this.StartPosition = FormStartPosition.CenterScreen;
this.Icon = new Icon("img/ico/icon.ico"); // 设置窗体图标
// 现代化顶部导航栏
Panel buttonPanel = new Panel();
buttonPanel.Dock = DockStyle.Top;
buttonPanel.Height = 70;
buttonPanel.BackColor = Color.FromArgb(240, 240, 240);
buttonPanel.Padding = new Padding(10, 15, 10, 0);
// 导航按钮样式
Action