From 3b6d1bee4db25dd51aba9b8593086e92d34db74b Mon Sep 17 00:00:00 2001 From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:26:08 -0500 Subject: [PATCH] frmEdit init --- .../.idea/dataSources.xml | 12 +++++- Database3/Database3.csproj | 6 +++ Database3/frmEdit.Designer.cs | 42 +++++++++++++++++++ Database3/frmEdit.cs | 12 ++++++ Database3/frmSearch.cs | 19 +-------- 5 files changed, 72 insertions(+), 19 deletions(-) create mode 100644 Database3/frmEdit.Designer.cs create mode 100644 Database3/frmEdit.cs diff --git a/.idea/.idea.CNSA-212-Personal-CAS/.idea/dataSources.xml b/.idea/.idea.CNSA-212-Personal-CAS/.idea/dataSources.xml index 30ff328..a83291b 100644 --- a/.idea/.idea.CNSA-212-Personal-CAS/.idea/dataSources.xml +++ b/.idea/.idea.CNSA-212-Personal-CAS/.idea/dataSources.xml @@ -1,11 +1,19 @@ - + sqlserver.jb true com.jetbrains.jdbc.sqlserver.SqlServerDriver - Server=sql.eggtech.net,1433;Database=College2 + Server=sql.eggtech.net,1433;Database=FinalProjectOfficialPharmacy + $ProjectFileDir$ + + + sqlserver.jb + true + true + com.jetbrains.jdbc.sqlserver.SqlServerDriver + Data Source=sql.eggtech.net;Initial Catalog=college2; connect timeout=30; integrated security=false; User ID=admin;Password=delirium-purveyor-overall-backboned-approval-amino; $ProjectFileDir$ diff --git a/Database3/Database3.csproj b/Database3/Database3.csproj index ab254a9..0831474 100644 --- a/Database3/Database3.csproj +++ b/Database3/Database3.csproj @@ -47,6 +47,12 @@ + + Form + + + frmEdit.cs + Form diff --git a/Database3/frmEdit.Designer.cs b/Database3/frmEdit.Designer.cs new file mode 100644 index 0000000..35617d4 --- /dev/null +++ b/Database3/frmEdit.Designer.cs @@ -0,0 +1,42 @@ +using System.ComponentModel; + +namespace Database3 +{ + partial class frmEdit + { + /// + /// Required designer variable. + /// + private 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.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "frmEdit"; + } + + #endregion + } +} \ No newline at end of file diff --git a/Database3/frmEdit.cs b/Database3/frmEdit.cs new file mode 100644 index 0000000..565574c --- /dev/null +++ b/Database3/frmEdit.cs @@ -0,0 +1,12 @@ +using System.Windows.Forms; + +namespace Database3 +{ + public partial class frmEdit : Form + { + public frmEdit() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/Database3/frmSearch.cs b/Database3/frmSearch.cs index f5287fc..ec7de52 100644 --- a/Database3/frmSearch.cs +++ b/Database3/frmSearch.cs @@ -1,23 +1,8 @@ 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; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.VisualBasic; -using System.Data; -using System.Configuration; -using System.Collections; -using System.Data.SqlClient; -using Database3; + namespace Database3 @@ -33,7 +18,7 @@ namespace Database3 { string studentid = "9999999999"; string lname = "9999999999"; - DateTime dob = new DateTime(1/1/1111); + DateTime dob = new DateTime(); ErrorProvider ep1 = new ErrorProvider();