⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 超市POS收银系统c.rar
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace FOUPOS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            string iniFile = Application.StartupPath.ToString() + "\\system.ini";
            if (!File.Exists(iniFile))
            {
                using (FileStream fs = File.Create(iniFile))
                {
                    fs.Close();
                }
            }
            POS.DBUtility.IniFile ini = new POS.DBUtility.IniFile(iniFile);
            this.Text += "-------"+ini.ReadIni("System", "Name", null);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            skinEngine1.SkinFile = "OneBlue.ssk";
            //this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 全屏显示ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.全屏显示ToolStripMenuItem.Text == "全屏显示(&S)")
            {
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
                this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                this.TopMost = true;
                this.全屏显示ToolStripMenuItem.Text = "取消全屏(&S)";
            }
            else
            {
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
                this.WindowState = System.Windows.Forms.FormWindowState.Normal;
                this.TopMost = false;
                this.全屏显示ToolStripMenuItem.Text = "全屏显示(&S)";
            }
        }

        private void 商品录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {

            AddGoods addGoods = new AddGoods();            
            //addGoods.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            addGoods.TopMost = true; 
            addGoods.ShowDialog();
        }

        private void 商品列表ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            GoodsList gl = new GoodsList();
            //gl.TopMost = true;
            gl.ShowDialog();
        }
        private void 用户管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MList ml = new MList();
            ml.ShowDialog();
        }

        private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SystemSet ss = new SystemSet();
            ss.ShowDialog();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -