From 29e4f01917b0e5fc178a4b7f180a6575c835a4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20Gia=20B=E1=BA=A3o?= Date: Mon, 13 May 2024 14:43:11 +0700 Subject: [PATCH] update:Add->CreateFormApp --- .gitignore | 398 +++++++++++++++++++++++++++++++ App.config | 6 + Connection.cs | 12 + Form1.Designer.cs | 243 +++++++++++++++++++ Form1.cs | 35 +++ Form1.resx | 120 ++++++++++ Form2.Designer.cs | 264 ++++++++++++++++++++ Form2.cs | 20 ++ Form2.resx | 120 ++++++++++ Program.cs | 22 ++ Properties/AssemblyInfo.cs | 36 +++ Properties/Resources.Designer.cs | 71 ++++++ Properties/Resources.resx | 117 +++++++++ Properties/Settings.Designer.cs | 30 +++ Properties/Settings.settings | 7 + QuanLyLop.csproj | 93 ++++++++ QuanLyLop.sln | 25 ++ 17 files changed, 1619 insertions(+) create mode 100644 .gitignore create mode 100644 App.config create mode 100644 Connection.cs create mode 100644 Form1.Designer.cs create mode 100644 Form1.cs create mode 100644 Form1.resx create mode 100644 Form2.Designer.cs create mode 100644 Form2.cs create mode 100644 Form2.resx create mode 100644 Program.cs create mode 100644 Properties/AssemblyInfo.cs create mode 100644 Properties/Resources.Designer.cs create mode 100644 Properties/Resources.resx create mode 100644 Properties/Settings.Designer.cs create mode 100644 Properties/Settings.settings create mode 100644 QuanLyLop.csproj create mode 100644 QuanLyLop.sln diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d92ad22 --- /dev/null +++ b/.gitignore @@ -0,0 +1,398 @@ +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vs +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml \ No newline at end of file diff --git a/App.config b/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Connection.cs b/Connection.cs new file mode 100644 index 0000000..59a2ec4 --- /dev/null +++ b/Connection.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QuanLyLop +{ + internal class Connection + { + } +} diff --git a/Form1.Designer.cs b/Form1.Designer.cs new file mode 100644 index 0000000..92a7102 --- /dev/null +++ b/Form1.Designer.cs @@ -0,0 +1,243 @@ +namespace QuanLyLop +{ + partial class QLLop_Form + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.MaLop_tb = new System.Windows.Forms.TextBox(); + this.TenLop_tb = new System.Windows.Forms.TextBox(); + this.TenGV_tb = new System.Windows.Forms.TextBox(); + this.SLHS_tb = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.ten_lb = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.Them_btn = new System.Windows.Forms.Button(); + this.Xoa_btn = new System.Windows.Forms.Button(); + this.Sua_btn = new System.Windows.Forms.Button(); + this.QLSV_btn = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.QuanLyLop_gridView = new System.Windows.Forms.DataGridView(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.QuanLyLop_gridView)).BeginInit(); + this.SuspendLayout(); + // + // MaLop_tb + // + this.MaLop_tb.Location = new System.Drawing.Point(192, 32); + this.MaLop_tb.Name = "MaLop_tb"; + this.MaLop_tb.Size = new System.Drawing.Size(194, 22); + this.MaLop_tb.TabIndex = 1; + // + // TenLop_tb + // + this.TenLop_tb.Location = new System.Drawing.Point(192, 79); + this.TenLop_tb.Name = "TenLop_tb"; + this.TenLop_tb.Size = new System.Drawing.Size(194, 22); + this.TenLop_tb.TabIndex = 2; + // + // TenGV_tb + // + this.TenGV_tb.Location = new System.Drawing.Point(192, 125); + this.TenGV_tb.Name = "TenGV_tb"; + this.TenGV_tb.Size = new System.Drawing.Size(194, 22); + this.TenGV_tb.TabIndex = 2; + // + // SLHS_tb + // + this.SLHS_tb.Location = new System.Drawing.Point(240, 162); + this.SLHS_tb.Name = "SLHS_tb"; + this.SLHS_tb.Size = new System.Drawing.Size(41, 22); + this.SLHS_tb.TabIndex = 2; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(0, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(44, 16); + this.label1.TabIndex = 3; + this.label1.Text = "label1"; + // + // ten_lb + // + this.ten_lb.AutoSize = true; + this.ten_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ten_lb.Location = new System.Drawing.Point(28, 38); + this.ten_lb.Name = "ten_lb"; + this.ten_lb.Size = new System.Drawing.Size(91, 25); + this.ten_lb.TabIndex = 4; + this.ten_lb.Text = "Mã Lớp:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(28, 79); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(99, 25); + this.label2.TabIndex = 4; + this.label2.Text = "Tên Lớp:"; + this.label2.Click += new System.EventHandler(this.label2_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(28, 121); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(158, 25); + this.label3.TabIndex = 4; + this.label3.Text = "Tên Giáo Viên:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(28, 162); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(206, 25); + this.label4.TabIndex = 4; + this.label4.Text = "Số Lượng Học Sinh:"; + // + // Them_btn + // + this.Them_btn.AutoSize = true; + this.Them_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Them_btn.Location = new System.Drawing.Point(451, 140); + this.Them_btn.Name = "Them_btn"; + this.Them_btn.Size = new System.Drawing.Size(119, 44); + this.Them_btn.TabIndex = 5; + this.Them_btn.Text = "Thêm"; + this.Them_btn.UseVisualStyleBackColor = true; + // + // Xoa_btn + // + this.Xoa_btn.AutoSize = true; + this.Xoa_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Xoa_btn.Location = new System.Drawing.Point(757, 140); + this.Xoa_btn.Name = "Xoa_btn"; + this.Xoa_btn.Size = new System.Drawing.Size(119, 44); + this.Xoa_btn.TabIndex = 5; + this.Xoa_btn.Text = "Xóa"; + this.Xoa_btn.UseVisualStyleBackColor = true; + // + // Sua_btn + // + this.Sua_btn.AutoSize = true; + this.Sua_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Sua_btn.Location = new System.Drawing.Point(610, 140); + this.Sua_btn.Name = "Sua_btn"; + this.Sua_btn.Size = new System.Drawing.Size(119, 44); + this.Sua_btn.TabIndex = 5; + this.Sua_btn.Text = "Sửa"; + this.Sua_btn.UseVisualStyleBackColor = true; + this.Sua_btn.Click += new System.EventHandler(this.Sua_btn_Click); + // + // QLSV_btn + // + this.QLSV_btn.AutoSize = true; + this.QLSV_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.QLSV_btn.Location = new System.Drawing.Point(814, 32); + this.QLSV_btn.Name = "QLSV_btn"; + this.QLSV_btn.Size = new System.Drawing.Size(184, 44); + this.QLSV_btn.TabIndex = 5; + this.QLSV_btn.Text = "QL Học Sinh"; + this.QLSV_btn.UseVisualStyleBackColor = true; + this.QLSV_btn.Click += new System.EventHandler(this.Sua_btn_Click); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.QuanLyLop_gridView); + this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox1.Location = new System.Drawing.Point(13, 269); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(1042, 360); + this.groupBox1.TabIndex = 6; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Thông tin Lớp:"; + // + // QuanLyLop_gridView + // + this.QuanLyLop_gridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.QuanLyLop_gridView.Location = new System.Drawing.Point(-1, 40); + this.QuanLyLop_gridView.Name = "QuanLyLop_gridView"; + this.QuanLyLop_gridView.RowHeadersWidth = 51; + this.QuanLyLop_gridView.RowTemplate.Height = 24; + this.QuanLyLop_gridView.Size = new System.Drawing.Size(1029, 314); + this.QuanLyLop_gridView.TabIndex = 0; + // + // QLLop_Form + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.ClientSize = new System.Drawing.Size(1053, 641); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.QLSV_btn); + this.Controls.Add(this.Sua_btn); + this.Controls.Add(this.Xoa_btn); + this.Controls.Add(this.Them_btn); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.ten_lb); + this.Controls.Add(this.label1); + this.Controls.Add(this.SLHS_tb); + this.Controls.Add(this.TenGV_tb); + this.Controls.Add(this.TenLop_tb); + this.Controls.Add(this.MaLop_tb); + this.Name = "QLLop_Form"; + this.Text = "QL_Lop"; + this.Load += new System.EventHandler(this.Form1_Load); + this.groupBox1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.QuanLyLop_gridView)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.TextBox MaLop_tb; + private System.Windows.Forms.TextBox TenLop_tb; + private System.Windows.Forms.TextBox TenGV_tb; + private System.Windows.Forms.TextBox SLHS_tb; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label ten_lb; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button Them_btn; + private System.Windows.Forms.Button Xoa_btn; + private System.Windows.Forms.Button Sua_btn; + private System.Windows.Forms.Button QLSV_btn; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.DataGridView QuanLyLop_gridView; + } +} + diff --git a/Form1.cs b/Form1.cs new file mode 100644 index 0000000..f5ad0a5 --- /dev/null +++ b/Form1.cs @@ -0,0 +1,35 @@ +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; + +namespace QuanLyLop +{ + public partial class QLLop_Form : Form + { + public QLLop_Form() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + + } + + private void label2_Click(object sender, EventArgs e) + { + + } + + private void Sua_btn_Click(object sender, EventArgs e) + { + + } + } +} diff --git a/Form1.resx b/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Form2.Designer.cs b/Form2.Designer.cs new file mode 100644 index 0000000..bf14bd2 --- /dev/null +++ b/Form2.Designer.cs @@ -0,0 +1,264 @@ +namespace QuanLyLop +{ + partial class Form2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.dataGridView_QLHS = new System.Windows.Forms.DataGridView(); + this.Them_btn = new System.Windows.Forms.Button(); + this.Sua_btn = new System.Windows.Forms.Button(); + this.Xoa_btn = new System.Windows.Forms.Button(); + this.TenHS_lb = new System.Windows.Forms.Label(); + this.Ho_lb = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.MaHS_lb = new System.Windows.Forms.Label(); + this.NgaySinh_lb = new System.Windows.Forms.Label(); + this.MaLop_lb = new System.Windows.Forms.Label(); + this.Ten_txb = new System.Windows.Forms.TextBox(); + this.Ho_txb = new System.Windows.Forms.TextBox(); + this.GioiTinh_txb = new System.Windows.Forms.TextBox(); + this.MaHS_txb = new System.Windows.Forms.TextBox(); + this.MaLop_txb = new System.Windows.Forms.TextBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_QLHS)).BeginInit(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.dataGridView_QLHS); + this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox1.Location = new System.Drawing.Point(13, 285); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(1024, 306); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Thông tin Học Sinh:"; + // + // dataGridView_QLHS + // + this.dataGridView_QLHS.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView_QLHS.Location = new System.Drawing.Point(7, 27); + this.dataGridView_QLHS.Name = "dataGridView_QLHS"; + this.dataGridView_QLHS.RowHeadersWidth = 51; + this.dataGridView_QLHS.RowTemplate.Height = 24; + this.dataGridView_QLHS.Size = new System.Drawing.Size(1011, 273); + this.dataGridView_QLHS.TabIndex = 0; + // + // Them_btn + // + this.Them_btn.AutoSize = true; + this.Them_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Them_btn.Location = new System.Drawing.Point(354, 126); + this.Them_btn.Name = "Them_btn"; + this.Them_btn.Size = new System.Drawing.Size(77, 35); + this.Them_btn.TabIndex = 1; + this.Them_btn.Text = "Thêm"; + this.Them_btn.UseVisualStyleBackColor = true; + // + // Sua_btn + // + this.Sua_btn.AutoSize = true; + this.Sua_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Sua_btn.Location = new System.Drawing.Point(659, 126); + this.Sua_btn.Name = "Sua_btn"; + this.Sua_btn.Size = new System.Drawing.Size(77, 35); + this.Sua_btn.TabIndex = 1; + this.Sua_btn.Text = "Sửa"; + this.Sua_btn.UseVisualStyleBackColor = true; + // + // Xoa_btn + // + this.Xoa_btn.AutoSize = true; + this.Xoa_btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Xoa_btn.Location = new System.Drawing.Point(502, 126); + this.Xoa_btn.Name = "Xoa_btn"; + this.Xoa_btn.Size = new System.Drawing.Size(77, 35); + this.Xoa_btn.TabIndex = 1; + this.Xoa_btn.Text = "Xóa"; + this.Xoa_btn.UseVisualStyleBackColor = true; + // + // TenHS_lb + // + this.TenHS_lb.AutoSize = true; + this.TenHS_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TenHS_lb.Location = new System.Drawing.Point(25, 28); + this.TenHS_lb.Name = "TenHS_lb"; + this.TenHS_lb.Size = new System.Drawing.Size(53, 25); + this.TenHS_lb.TabIndex = 2; + this.TenHS_lb.Text = "Tên:"; + // + // Ho_lb + // + this.Ho_lb.AutoSize = true; + this.Ho_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Ho_lb.Location = new System.Drawing.Point(25, 64); + this.Ho_lb.Name = "Ho_lb"; + this.Ho_lb.Size = new System.Drawing.Size(43, 25); + this.Ho_lb.TabIndex = 2; + this.Ho_lb.Text = "Họ:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(25, 100); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(88, 25); + this.label2.TabIndex = 2; + this.label2.Text = "Giới tính:"; + // + // MaHS_lb + // + this.MaHS_lb.AutoSize = true; + this.MaHS_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.MaHS_lb.Location = new System.Drawing.Point(25, 137); + this.MaHS_lb.Name = "MaHS_lb"; + this.MaHS_lb.Size = new System.Drawing.Size(124, 25); + this.MaHS_lb.TabIndex = 2; + this.MaHS_lb.Text = "Mã học sinh:"; + // + // NgaySinh_lb + // + this.NgaySinh_lb.AutoSize = true; + this.NgaySinh_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.NgaySinh_lb.Location = new System.Drawing.Point(289, 28); + this.NgaySinh_lb.Name = "NgaySinh_lb"; + this.NgaySinh_lb.Size = new System.Drawing.Size(105, 25); + this.NgaySinh_lb.TabIndex = 2; + this.NgaySinh_lb.Text = "Ngày sinh:"; + // + // MaLop_lb + // + this.MaLop_lb.AutoSize = true; + this.MaLop_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.MaLop_lb.Location = new System.Drawing.Point(25, 183); + this.MaLop_lb.Name = "MaLop_lb"; + this.MaLop_lb.Size = new System.Drawing.Size(77, 25); + this.MaLop_lb.TabIndex = 2; + this.MaLop_lb.Text = "Mã lớp:"; + // + // Ten_txb + // + this.Ten_txb.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Ten_txb.Location = new System.Drawing.Point(104, 30); + this.Ten_txb.Name = "Ten_txb"; + this.Ten_txb.Size = new System.Drawing.Size(151, 27); + this.Ten_txb.TabIndex = 3; + // + // Ho_txb + // + this.Ho_txb.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Ho_txb.Location = new System.Drawing.Point(104, 65); + this.Ho_txb.Name = "Ho_txb"; + this.Ho_txb.Size = new System.Drawing.Size(151, 27); + this.Ho_txb.TabIndex = 3; + // + // GioiTinh_txb + // + this.GioiTinh_txb.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.GioiTinh_txb.Location = new System.Drawing.Point(119, 101); + this.GioiTinh_txb.Name = "GioiTinh_txb"; + this.GioiTinh_txb.Size = new System.Drawing.Size(51, 27); + this.GioiTinh_txb.TabIndex = 3; + // + // MaHS_txb + // + this.MaHS_txb.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.MaHS_txb.Location = new System.Drawing.Point(155, 134); + this.MaHS_txb.Name = "MaHS_txb"; + this.MaHS_txb.Size = new System.Drawing.Size(51, 27); + this.MaHS_txb.TabIndex = 3; + // + // MaLop_txb + // + this.MaLop_txb.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.MaLop_txb.Location = new System.Drawing.Point(108, 184); + this.MaLop_txb.Name = "MaLop_txb"; + this.MaLop_txb.Size = new System.Drawing.Size(51, 27); + this.MaLop_txb.TabIndex = 3; + // + // dateTimePicker1 + // + this.dateTimePicker1.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dateTimePicker1.Location = new System.Drawing.Point(400, 28); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(225, 22); + this.dateTimePicker1.TabIndex = 4; + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1049, 603); + this.Controls.Add(this.dateTimePicker1); + this.Controls.Add(this.MaLop_txb); + this.Controls.Add(this.MaHS_txb); + this.Controls.Add(this.GioiTinh_txb); + this.Controls.Add(this.Ho_txb); + this.Controls.Add(this.Ten_txb); + this.Controls.Add(this.NgaySinh_lb); + this.Controls.Add(this.MaLop_lb); + this.Controls.Add(this.MaHS_lb); + this.Controls.Add(this.label2); + this.Controls.Add(this.Ho_lb); + this.Controls.Add(this.TenHS_lb); + this.Controls.Add(this.Xoa_btn); + this.Controls.Add(this.Sua_btn); + this.Controls.Add(this.Them_btn); + this.Controls.Add(this.groupBox1); + this.Name = "Form2"; + this.Text = "QLHS_Form"; + this.groupBox1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_QLHS)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.DataGridView dataGridView_QLHS; + private System.Windows.Forms.Button Them_btn; + private System.Windows.Forms.Button Sua_btn; + private System.Windows.Forms.Button Xoa_btn; + private System.Windows.Forms.Label TenHS_lb; + private System.Windows.Forms.Label Ho_lb; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label MaHS_lb; + private System.Windows.Forms.Label NgaySinh_lb; + private System.Windows.Forms.Label MaLop_lb; + private System.Windows.Forms.TextBox Ten_txb; + private System.Windows.Forms.TextBox Ho_txb; + private System.Windows.Forms.TextBox GioiTinh_txb; + private System.Windows.Forms.TextBox MaHS_txb; + private System.Windows.Forms.TextBox MaLop_txb; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + } +} \ No newline at end of file diff --git a/Form2.cs b/Form2.cs new file mode 100644 index 0000000..b058d42 --- /dev/null +++ b/Form2.cs @@ -0,0 +1,20 @@ +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; + +namespace QuanLyLop +{ + public partial class Form2 : Form + { + public Form2() + { + InitializeComponent(); + } + } +} diff --git a/Form2.resx b/Form2.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Form2.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..31a817e --- /dev/null +++ b/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace QuanLyLop +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new QLLop_Form()); + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..eb4ec1f --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("QuanLyLop")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("QuanLyLop")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e0a91b92-f617-44a5-9cab-35662729e55d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b252401 --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace QuanLyLop.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("QuanLyLop.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ef561e7 --- /dev/null +++ b/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace QuanLyLop.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Properties/Settings.settings b/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/QuanLyLop.csproj b/QuanLyLop.csproj new file mode 100644 index 0000000..ff1e60c --- /dev/null +++ b/QuanLyLop.csproj @@ -0,0 +1,93 @@ + + + + + Debug + AnyCPU + {E0A91B92-F617-44A5-9CAB-35662729E55D} + WinExe + QuanLyLop + QuanLyLop + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + Form + + + Form2.cs + + + + + Form1.cs + + + Form2.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/QuanLyLop.sln b/QuanLyLop.sln new file mode 100644 index 0000000..0dcda2b --- /dev/null +++ b/QuanLyLop.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuanLyLop", "QuanLyLop.csproj", "{E0A91B92-F617-44A5-9CAB-35662729E55D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E0A91B92-F617-44A5-9CAB-35662729E55D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E0A91B92-F617-44A5-9CAB-35662729E55D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E0A91B92-F617-44A5-9CAB-35662729E55D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E0A91B92-F617-44A5-9CAB-35662729E55D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BD72655A-6381-4F88-9AA0-CF20F27A396A} + EndGlobalSection +EndGlobal