• 大小: 54.6MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-06-07
  • 语言: C#
  • 标签: C#  SqlLite  

资源简介

C# 进销存管理系统,自己根据需求写的,用的数据库Sqllite,感兴趣的下出来玩一玩,可以直接运行,无需安装数据库等资源!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ChuanCafe
{
    public partial class FrmLogin : Form
    {
        public FrmLogin()
        {
            InitializeComponent();
            this.BackgroundImage = Properties.Resources.login;
            this.panel_container.Location = new Point((this.Width - this.panel_container.Width) / 2 this.panel_container.Location.Y);
            CreateDb(GlobalSet.dbpath);
        }
        // 防止闪屏  
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.Exstyle |= 0x02000000;
                return cp;
            }
        }
        private void CreateDb(string dbpath)
        {
            SqliteHelp.CSqlite cSqlite = new SqliteHelp.CSqlite(dbpath);
            if (!cSqlite.Open())
            {
                MessageBox.Show(“error“);
            }
            cSqlite.Close();
        }
        private void Form1_FormClosed(object sender FormClosedEventArgs e)
        {
        }
        private Point mouseOffset;
        private void Form1_MouseDown(object sender MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                mouseOffset.X = e.X;
                mouseOffset.Y = e.Y;
            }
        }

        private void Form1_MouseMove(object sender MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                Top = MousePosition.Y - mouseOffset.Y;
                Left = MousePosition.X - mouseOffset.X;
            }
        }
        public void SetWindowRegion()
        {

            System.Drawing.Drawing2D.GraphicsPath FormPath;

            FormPath = new System.Drawing.Drawing2D.GraphicsPath();

            Rectangle rect = new Rectangle(0 22 this.Width this.Height - 22);//this.Left-10this.Top-10this.Width-10this.Height-10);

            FormPath = GetRoundedRectPath(rect 30);

            this.Region = new Region(FormPath);

        }

        private GraphicsPath GetRoundedRectPath(Rectangle rect int radius)
        {

            int diameter = radius;

            Rectangle arcRect = new Rectangle(rect.Location new Size(diameter diameter));

            GraphicsPath path = new GraphicsPath();

            // 左上角

            path.AddArc(arcRect 180 90);

            // 右上角

            arcRect.X = rect.Right - diameter;

            path.AddArc(arcRect 270 90);

            // 右下角

            arcRect.Y = rect.Bottom - diameter;

            path.AddArc(arcRect 0 90);

            // 左下角

            arcRect.X = rect.Left;

            path.AddArc(arcRect 90 90);


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    224256  2020-03-17 10:06  ChuanCafe\.vs\ChuanCafe\v15\.suo

     文件          0  2019-12-30 09:18  ChuanCafe\.vs\ChuanCafe\v15\Server\sqlite3\db.lock

     文件    1253376  2020-01-05 00:29  ChuanCafe\.vs\ChuanCafe\v15\Server\sqlite3\storage.ide

     文件      32768  2020-03-17 09:50  ChuanCafe\.vs\ChuanCafe\v15\Server\sqlite3\storage.ide-shm

     文件    4173592  2020-01-05 22:48  ChuanCafe\.vs\ChuanCafe\v15\Server\sqlite3\storage.ide-wal

    ..A..H.    220160  2020-04-26 18:28  ChuanCafe\.vs\ChuanCafe\v16\.suo

     文件      12114  2019-12-31 16:07  ChuanCafe\ChuanCafe\baseControl\Frmbase.cs

     文件      10644  2019-12-31 16:07  ChuanCafe\ChuanCafe\baseControl\Frmbase.Designer.cs

     文件    2991631  2019-12-31 16:07  ChuanCafe\ChuanCafe\baseControl\Frmbase.resx

     文件       3648  2020-01-04 23:59  ChuanCafe\ChuanCafe\baseControl\frmbaseComponent.cs

     文件       9220  2020-01-04 19:08  ChuanCafe\ChuanCafe\baseControl\frmbaseComponent.Designer.cs

     文件       6216  2020-01-01 19:10  ChuanCafe\ChuanCafe\baseControl\frmbaseComponent.resx

     文件      11854  2019-12-31 17:35  ChuanCafe\ChuanCafe\baseControl\GuideButton.cs

     文件    7515648  2020-03-17 09:53  ChuanCafe\ChuanCafe\bin\Debug\ChuanCafe.exe

     文件     312832  2020-03-17 09:53  ChuanCafe\ChuanCafe\bin\Debug\ChuanCafe.pdb

     文件    4770680  2019-09-14 17:01  ChuanCafe\ChuanCafe\bin\Debug\Entityframework.dll

     文件     586616  2019-09-14 17:01  ChuanCafe\ChuanCafe\bin\Debug\Entityframework.SqlServer.dll

     文件     153748  2019-09-14 17:01  ChuanCafe\ChuanCafe\bin\Debug\Entityframework.SqlServer.xml

     文件    3312610  2019-09-14 17:01  ChuanCafe\ChuanCafe\bin\Debug\Entityframework.xml

     文件      10752  2020-01-05 01:07  ChuanCafe\ChuanCafe\bin\Debug\ExportExcel.dll

     文件      24064  2020-01-05 01:07  ChuanCafe\ChuanCafe\bin\Debug\ExportExcel.pdb

     文件     200704  2011-01-03 14:16  ChuanCafe\ChuanCafe\bin\Debug\ICSharpCode.SharpZipLib.dll

     文件      28672  2020-01-05 01:07  ChuanCafe\ChuanCafe\bin\Debug\Models.dll

     文件     105984  2020-01-05 01:07  ChuanCafe\ChuanCafe\bin\Debug\Models.pdb

     文件    1624064  2018-12-17 18:54  ChuanCafe\ChuanCafe\bin\Debug\NPOI.dll

     文件     530432  2018-12-17 18:54  ChuanCafe\ChuanCafe\bin\Debug\NPOI.OOxml.dll

     文件      89600  2018-12-17 18:54  ChuanCafe\ChuanCafe\bin\Debug\NPOI.Openxml4Net.dll

     文件    2078720  2018-12-17 18:54  ChuanCafe\ChuanCafe\bin\Debug\NPOI.OpenxmlFormats.dll

     文件     122880  2019-09-23 09:18  ChuanCafe\ChuanCafe\bin\Debug\org.in2bits.MyXls.dll

     文件      15360  2020-01-05 01:07  ChuanCafe\ChuanCafe\bin\Debug\SqliteHelp.dll

............此处省略530个文件信息

评论

共有 条评论