资源简介
停车场管理系统,C#实现,VS2017工程,数据库为SQL Server LocalDB。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
using ParkingLotDB;
namespace ParkingLotManagement
{
///
/// Control the main form and its procedure.
///
public partial class MainForm : Form
{
///
/// Enum used for representing diagram mode.
///
enum DiagramMode { Monthly Yearly };
///
/// Store the configuration of fee count.
///
private decimal pricePerTenMinutes;
///
/// Store all configurations‘ names.
///
private List configNames = new List();
///
/// Store all configurations‘ prices.
///
private List listPricePerTenMinutes = new List();
///
/// Store the current diagram mode.
///
private DiagramMode diagramMode;
///
/// Make a series according to the given data table.
/// The chart type of the series will be set to line type.
/// If the x is not found in the table its corresponding y value
/// will be zero.
///
/// The series‘ name.
/// The total count of points.
/// The given data table.
/// The series you want.
private Series MakeSeries(string seriesName int xCount DataTable dt)
{
Series series = new Series(seriesName)
{
// Set chart type to be Line Chart.
ChartType = SeriesChartType.Line
};
int rowIndex = 0;
for (int i = 1; i <= xCount; i++)
{
// Find data in the dataTable.
if(rowIndex < dt.Rows.Count && int.Parse(dt.Rows[rowIndex][1].ToString()) == i)
{
series.Points.AddXY(i float.Parse(dt.Rows[rowIndex][0].ToString()));
rowIndex++;
}
// Not find.
else
{
series.Points.AddXY(i 0);
}
}
return series;
}
///
/// Initialize comboBoxConfig by adding items to it and setting
/// its default selected item to the first one. class member variables
/// configNames and listPricePerTenMinutes will also be initialized in
/// this method.
///
private void InitComboBoxConfig()
{
tr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-10 12:43 ParkingLotManagement\
目录 0 2018-10-22 15:31 ParkingLotManagement\.git\
文件 66 2018-04-19 21:28 ParkingLotManagement\.gitattributes
文件 4982 2018-04-19 21:28 ParkingLotManagement\.gitignore
文件 20 2018-06-09 23:55 ParkingLotManagement\.git\COMMIT_EDITMSG
文件 316 2018-04-19 21:28 ParkingLotManagement\.git\config
文件 188 2018-04-19 21:28 ParkingLotManagement\.git\desc
文件 111 2018-07-24 22:48 ParkingLotManagement\.git\FETCH_HEAD
文件 23 2018-04-19 21:28 ParkingLotManagement\.git\HEAD
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\hooks\
文件 478 2018-04-19 21:28 ParkingLotManagement\.git\hooks\applypatch-msg.sample
文件 896 2018-04-19 21:28 ParkingLotManagement\.git\hooks\commit-msg.sample
文件 3327 2018-04-19 21:28 ParkingLotManagement\.git\hooks\fsmonitor-watchman.sample
文件 189 2018-04-19 21:28 ParkingLotManagement\.git\hooks\post-update.sample
文件 424 2018-04-19 21:28 ParkingLotManagement\.git\hooks\pre-applypatch.sample
文件 1642 2018-04-19 21:28 ParkingLotManagement\.git\hooks\pre-commit.sample
文件 1348 2018-04-19 21:28 ParkingLotManagement\.git\hooks\pre-push.sample
文件 4898 2018-04-19 21:28 ParkingLotManagement\.git\hooks\pre-reba
文件 544 2018-04-19 21:28 ParkingLotManagement\.git\hooks\pre-receive.sample
文件 1492 2018-04-19 21:28 ParkingLotManagement\.git\hooks\prepare-commit-msg.sample
文件 3610 2018-04-19 21:28 ParkingLotManagement\.git\hooks\update.sample
文件 2870 2018-06-09 23:55 ParkingLotManagement\.git\index
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\info\
文件 240 2018-04-19 21:28 ParkingLotManagement\.git\info\exclude
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\lfs\
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\lfs\ob
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\lfs\ob
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\lfs\tmp\
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\lfs\tmp\ob
目录 0 2018-04-19 21:28 ParkingLotManagement\.git\logs\
文件 469 2018-06-09 23:55 ParkingLotManagement\.git\logs\HEAD
............此处省略237个文件信息
- 上一篇:c#翻牌小游戏
- 下一篇:HttpHelper万能框架V2.4.zip
相关资源
- fiddlercoreCapture.zip 用 .NET C# 实现 HTTP
- 基于ASP.NET的物流管理系统源码
- 个人理财系统c#+sql
- C# ASP.NET 实战项目源代码 AJAX校内数码
- ASP.Net在线考试系统.rar
- ASP.NET+C#+SQL校园新闻发布系统
- 基于C#、SQL学生选课管理系统
- 基于ASP.NET的网盘系统在线文件管理模
- Windows Runtime via C#
- C#相册管理系统SQL数据库
- HW内部使用 asp.net mvc框架 OA系统 模
- Professional ASP.NET MVC 5完整版
- asp.net+access网上订餐系统
- 学生成绩管理系统 附带数据库文件
- 基于C#和Mysql的学生信息管理系统
- C# 基于数据库的学生管理系统
- AForge.net
- 基于asp.net的网上购物商城
- asp.net网上购书系统代码
- 影院售票系统 ASP.NET
- 智能停车场管理系统C#版
- C# .NET Web API 完整 Demo
- 图书管理系统源码 C#.net
- 实体花店管理系统.rar
- 百度ueditor编辑器 word导入功能asp.ne
- C#三层架构实现固定资产管理系统
- Asp.net+Vue2构建简单记账WebApp
- 物资管理信息系统、数据库、SQL Ser
- C#图形编辑软件
- ASP.NET微信支付接口调用Demo JSAPI
评论
共有 条评论