Skip to content

Commit c7596ea

Browse files
committed
up
1 parent 4d8d755 commit c7596ea

8 files changed

+127
-8
lines changed

Config.cs

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/**
2+
* __________________________________________________________________
3+
*
4+
* C-Sharf Custom Classes
5+
* __________________________________________________________________
6+
*
7+
* MIT License
8+
*
9+
* Copyright (c) 2020 Wilfred V. Pine
10+
*
11+
* Permission is hereby granted, free of charge, to any person obtaining a copy
12+
* of this software and associated documentation files (the "Software"), to deal
13+
* in the Software without restriction, including without limitation the rights
14+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
* copies of the Software, and to permit persons to whom the Software is
16+
* furnished to do so, subject to the following conditions:
17+
*
18+
* The above copyright notice and this permission notice shall be included in
19+
* all copies or substantial portions of the Software.
20+
*
21+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27+
* THE SOFTWARE.
28+
*
29+
* @package C-Sharf Custom Classes
30+
* @author Wilfred V. Pine <[email protected]>
31+
* @copyright Copyright 2020 (https://red.confired.com)
32+
* @link https://confired.com
33+
* @license https://opensource.org/licenses/MIT MIT License
34+
*/
35+
36+
using Classes;
37+
38+
namespace Sample_OOP_Pro
39+
{
40+
class Config
41+
{
42+
/*
43+
* Database Information
44+
*/
45+
private static string host = "localhost";
46+
private static string dbname = "dbinformation";
47+
private static string dbuser = "root";
48+
private static string dbpassword = "";
49+
50+
/*
51+
* Classes
52+
*/
53+
public Database db;
54+
public Validation validate;
55+
public Form_UI ui;
56+
public Visualizer visualizer;
57+
public Str_Date_Time date_time;
58+
public Upload upload;
59+
/*
60+
* Constructor
61+
*/
62+
public Config()
63+
{
64+
this.db = new Database(host, dbuser, dbpassword, dbname);
65+
this.validate = new Validation();
66+
this.ui = new Form_UI();
67+
this.visualizer = new Visualizer();
68+
this.date_time = new Str_Date_Time();
69+
this.upload = new Upload();
70+
}
71+
72+
}
73+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Custom classes for Windows Form Application in C# Developed by Wilfred V. Pine
55

66
[MIT License](https://github.com/redmalmon/CSharf-Custom-Classes/blob/main/LICENSE)
77

8-
## [Classes](https://github.com/redmalmon/CSharf-Custom-Classes/tree/main/C-Sharf%20Classes/Classes)
8+
## [Classes](https://github.com/redmalmon/csharp-custom-classes/tree/main/Classes)
99

10-
### 1. [Database](https://github.com/redmalmon/CSharf-Custom-Classes/blob/main/C-Sharf%20Classes/Classes/Database.cs) class - this is use for MySqlClient configurations, sql statements, & etc.
10+
### 1. [Database](https://github.com/redmalmon/csharp-custom-classes/blob/main/Classes/Database.cs) class - this is use for MySqlClient configurations, sql statements, & etc. This will also included the loading of data to a form control including dataGridView and comboBox.
1111

1212
* Instantiation - creating an object `db` from a class type `Database` and instantiate using the `new` keyword.
1313

49 KB
Binary file not shown.

Sample Project/FormMain.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel;
4-
using System.Data;
52
using System.Drawing;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
93
using System.Windows.Forms;
104
using Sample_OOP_Pro.Forms;
115

Binary file not shown.
Binary file not shown.
Binary file not shown.

Sample Project/obj/Debug/Sample OOP Pro.csproj.FileListAbsolute.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,55 @@ C:\Users\wilfred pine\source\repos\csharp-custom-classes\obj\Debug\Sample OOP Pr
5050
C:\Users\wilfred pine\source\repos\csharp-custom-classes\obj\Debug\Sample OOP Pro.csproj.CoreCompileInputs.cache
5151
C:\Users\wilfred pine\source\repos\csharp-custom-classes\obj\Debug\Sample OOP Pro.exe
5252
C:\Users\wilfred pine\source\repos\csharp-custom-classes\obj\Debug\Sample OOP Pro.pdb
53+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.exe.config
54+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.exe
55+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.pdb
56+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\MySql.Data.dll
57+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\Google.Protobuf.dll
58+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\ZstdNet.dll
59+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\K4os.Compression.LZ4.Streams.dll
60+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\BouncyCastle.Crypto.dll
61+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\Ubiety.Dns.Core.dll
62+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\System.Memory.dll
63+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\System.Buffers.dll
64+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\K4os.Compression.LZ4.dll
65+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\K4os.Hash.xxHash.dll
66+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\bin\Debug\MySql.Data.xml
67+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.AssemblyReference.cache
68+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.FormMain.resources
69+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormDashboard.resources
70+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormDataGridView.resources
71+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormInputs.resources
72+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormLogin.resources
73+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormUpload.resources
74+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Properties.Resources.resources
75+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.GenerateResource.cache
76+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.CoreCompileInputs.cache
77+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.exe
78+
C:\Users\wilfred pine\source\repos\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.pdb
79+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.exe.config
80+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.exe
81+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\Sample OOP Pro.pdb
82+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\MySql.Data.dll
83+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\Google.Protobuf.dll
84+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\ZstdNet.dll
85+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\K4os.Compression.LZ4.Streams.dll
86+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\BouncyCastle.Crypto.dll
87+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\Ubiety.Dns.Core.dll
88+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\System.Memory.dll
89+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\System.Buffers.dll
90+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\K4os.Compression.LZ4.dll
91+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\K4os.Hash.xxHash.dll
92+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\bin\Debug\MySql.Data.xml
93+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.AssemblyReference.cache
94+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.FormMain.resources
95+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormDashboard.resources
96+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormDataGridView.resources
97+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormInputs.resources
98+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormLogin.resources
99+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Forms.FormUpload.resources
100+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample_OOP_Pro.Properties.Resources.resources
101+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.GenerateResource.cache
102+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.csproj.CoreCompileInputs.cache
103+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.exe
104+
C:\wamp64\www\Github\csharp-custom-classes\Sample Project\obj\Debug\Sample OOP Pro.pdb

0 commit comments

Comments
 (0)