깃랩 재정비
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								ServerText/.vs/ServerText/v16/.suo
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/.vs/ServerText/v16/.suo
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										25
									
								
								ServerText/ServerText.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								ServerText/ServerText.sln
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
|  | ||||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||||
| # Visual Studio Version 16 | ||||
| VisualStudioVersion = 16.0.30309.148 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerText", "ServerText\ServerText.csproj", "{B5DF86E2-BD09-4A36-A778-B52EAF800958}" | ||||
| EndProject | ||||
| Global | ||||
| 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| 		Debug|Any CPU = Debug|Any CPU | ||||
| 		Release|Any CPU = Release|Any CPU | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||||
| 		{B5DF86E2-BD09-4A36-A778-B52EAF800958}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||||
| 		{B5DF86E2-BD09-4A36-A778-B52EAF800958}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||
| 		{B5DF86E2-BD09-4A36-A778-B52EAF800958}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
| 		{B5DF86E2-BD09-4A36-A778-B52EAF800958}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(SolutionProperties) = preSolution | ||||
| 		HideSolutionNode = FALSE | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ExtensibilityGlobals) = postSolution | ||||
| 		SolutionGuid = {0374846A-9C36-429A-AC10-9DBCE78BDD7F} | ||||
| 	EndGlobalSection | ||||
| EndGlobal | ||||
							
								
								
									
										6
									
								
								ServerText/ServerText/App.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								ServerText/ServerText/App.config
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8" ?> | ||||
| <configuration> | ||||
|     <startup>  | ||||
|         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||||
|     </startup> | ||||
| </configuration> | ||||
							
								
								
									
										1555
									
								
								ServerText/ServerText/Form1.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										1555
									
								
								ServerText/ServerText/Form1.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										466
									
								
								ServerText/ServerText/Form1.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										466
									
								
								ServerText/ServerText/Form1.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,466 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel; | ||||
| using System.Data; | ||||
| using System.Drawing; | ||||
| using System.Linq; | ||||
| using System.Net.Http.Headers; | ||||
| using System.Net.Sockets; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| using System.Windows.Forms; | ||||
| using MySql.Data.MySqlClient; | ||||
| using Renci.SshNet; | ||||
| using Renci.SshNet.Common; | ||||
|  | ||||
| namespace ServerText | ||||
| { | ||||
|     public partial class Form1 : Form | ||||
|     { | ||||
|         public string User_Name { get; internal set; } | ||||
|          | ||||
|         bool overlap = false; | ||||
|         string[] tempData; | ||||
|         Helper_DB _DB = new Helper_DB(); | ||||
|         string Table_User = "User_Data"; | ||||
|         int gridIndex; | ||||
|  | ||||
|         public Form1() | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|         } | ||||
|         private void Form1_Load(object sender, EventArgs e) | ||||
|         { | ||||
|              | ||||
|             this.Visible = false; | ||||
|  | ||||
|             login login = new login(); | ||||
|  | ||||
|             if (DialogResult.OK == login.ShowDialog(this)) | ||||
|             { | ||||
|                 this.Visible = true; | ||||
|             } | ||||
|             else { this.Close(); } | ||||
|             toolStripLabel1.Text = "이용자" + User_Name; | ||||
|             _DB.DBcon(); | ||||
|  | ||||
|             string DB_Data = _DB.DB_Search("User_Data", "id", User_Name); | ||||
|             string[] result = DB_Data.Split('|'); | ||||
|  | ||||
|             tb_Affil.Text = result[5]; | ||||
|              | ||||
|             User_Manage(); | ||||
|             init_check(); | ||||
|         } | ||||
|         /// <summary> | ||||
|         /// DB에 저장된 사용자 데이터를 dataGridView1로 입력하는 함수. | ||||
|         /// </summary> | ||||
|         private void User_Manage() | ||||
|         { | ||||
|             string tmpstr = _DB.DB_Search("User_Data", "affil", "글로리아북");       // 글로리아북 -> data[3] | ||||
|             string[] data = tmpstr.Split('|'); | ||||
|             int cout = 0; | ||||
|             for(int a = 0; a < data.Length / 9; a++) { dataGridView1.Rows.Add(); } | ||||
|             for(int a = 0; a < data.Length; a++) | ||||
|             { | ||||
|                 if (a % 9 == 1) { dataGridView1.Rows[cout].Cells[0].Value = data[a]; } | ||||
|                 if (a % 9 == 3) { dataGridView1.Rows[cout].Cells[1].Value = data[a]; } | ||||
|                 if (a % 9 == 6) { dataGridView1.Rows[cout].Cells[2].Value = data[a]; } | ||||
|                 if (a % 9 == 7) { dataGridView1.Rows[cout].Cells[3].Value = data[a]; cout++; } | ||||
|             } | ||||
|         } | ||||
|         /// <summary> | ||||
|         /// 권한 설정 0일경우 체크없음, 1일경우 활성화만, 2일경우 활성화와 수정체크 | ||||
|         /// </summary> | ||||
|         /// <param name="sender"></param> | ||||
|         /// <param name="e"></param> | ||||
|         private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) | ||||
|         { | ||||
|             gridIndex = e.RowIndex; | ||||
|             string value = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); | ||||
|             string tmpstr = _DB.DB_Search(Table_User, "id", value); | ||||
|             tempData = tmpstr.Split('|'); | ||||
|             tb_ID.Text = tempData[1]; | ||||
|             tb_PW.Text = tempData[2]; | ||||
|             tb_Name.Text = tempData[3]; | ||||
|             tb_Affil.Text = tempData[5]; | ||||
|             tb_position.Text = tempData[6]; | ||||
|             tb_Phone.Text = tempData[7]; | ||||
|             string[] real = tempData[4].Split(','); | ||||
|             {  | ||||
|             if (real[0] == "0") { check1_1.Checked = false; check1_2.Checked = false; } | ||||
|             else if (real[0] == "1") { check1_1.Checked = true; check1_2.Checked = false; } | ||||
|             else if (real[0] == "2") { check1_1.Checked = true; check1_2.Checked = true; } | ||||
|  | ||||
|                  if (real[1] == "0") { check2_1.Checked = false; check2_2.Checked = false; } | ||||
|             else if (real[1] == "1") { check2_1.Checked = true; check2_2.Checked = false; } | ||||
|             else if (real[1] == "2") { check2_1.Checked = true; check2_2.Checked = true; } | ||||
|  | ||||
|                  if (real[2] == "0") { check3_1.Checked = false; check3_2.Checked = false; } | ||||
|             else if (real[2] == "1") { check3_1.Checked = true; check3_2.Checked = false; } | ||||
|             else if (real[2] == "2") { check3_1.Checked = true; check3_2.Checked = true; } | ||||
|  | ||||
|                  if (real[3] == "0") { check4_1.Checked = false; check4_2.Checked = false; } | ||||
|             else if (real[3] == "1") { check4_1.Checked = true; check4_2.Checked = false; } | ||||
|             else if (real[3] == "2") { check4_1.Checked = true; check4_2.Checked = true; } | ||||
|  | ||||
|                  if (real[4] == "0") { check5_1.Checked = false; check5_2.Checked = false; } | ||||
|             else if (real[4] == "1") { check5_1.Checked = true; check5_2.Checked = false; } | ||||
|             else if (real[4] == "2") { check5_1.Checked = true; check5_2.Checked = true; } | ||||
|  | ||||
|                  if (real[5] == "0") { check6_1.Checked = false; check6_2.Checked = false; } | ||||
|             else if (real[5] == "1") { check6_1.Checked = true; check6_2.Checked = false; } | ||||
|             else if (real[5] == "2") { check6_1.Checked = true; check6_2.Checked = true; } | ||||
|  | ||||
|                  if (real[6] == "0") { check7_1.Checked = false; check7_2.Checked = false; } | ||||
|             else if (real[6] == "1") { check7_1.Checked = true; check7_2.Checked = false; } | ||||
|             else if (real[6] == "2") { check7_1.Checked = true; check7_2.Checked = true; } | ||||
|  | ||||
|                  if (real[7] == "0") { check8_1.Checked = false; check8_2.Checked = false; } | ||||
|             else if (real[7] == "1") { check8_1.Checked = true; check8_2.Checked = false; } | ||||
|             else if (real[7] == "2") { check8_1.Checked = true; check8_2.Checked = true; } | ||||
|  | ||||
|                  if (real[8] == "0") { check9_1.Checked = false; check9_2.Checked = false; } | ||||
|             else if (real[8] == "1") { check9_1.Checked = true; check9_2.Checked = false; } | ||||
|             else if (real[8] == "2") { check9_1.Checked = true; check9_2.Checked = true; } | ||||
|  | ||||
|                  if (real[9] == "0") { check10_1.Checked = false; check10_2.Checked = false; } | ||||
|             else if (real[9] == "1") { check10_1.Checked = true; check10_2.Checked = false; } | ||||
|             else if (real[9] == "2") { check10_1.Checked = true; check10_2.Checked = true; } | ||||
|  | ||||
|                  if (real[10] == "0") { check11_1.Checked = false; check11_2.Checked = false; } | ||||
|             else if (real[10] == "1") { check11_1.Checked = true; check11_2.Checked = false; } | ||||
|             else if (real[10] == "2") { check11_1.Checked = true; check11_2.Checked = true; } | ||||
|  | ||||
|                  if (real[11] == "0") { check12_1.Checked = false; check12_2.Checked = false; } | ||||
|             else if (real[11] == "1") { check12_1.Checked = true;  check12_2.Checked = false; } | ||||
|             else if (real[11] == "2") { check12_1.Checked = true;  check12_2.Checked = true; } | ||||
|  | ||||
|                  if (real[12] == "0") { check13_1.Checked = false; check13_2.Checked = false; } | ||||
|             else if (real[12] == "1") { check13_1.Checked = true;  check13_2.Checked = false; } | ||||
|             else if (real[12] == "2") { check13_1.Checked = true;  check13_2.Checked = true; } | ||||
|  | ||||
|                  if (real[13] == "0") { check14_1.Checked = false; check14_2.Checked = false; } | ||||
|             else if (real[13] == "1") { check14_1.Checked = true;  check14_2.Checked = false; } | ||||
|             else if (real[13] == "2") { check14_1.Checked = true;  check14_2.Checked = true; } | ||||
|  | ||||
|                  if (real[14] == "0") { check15_1.Checked = false; check15_2.Checked = false; } | ||||
|             else if (real[14] == "1") { check15_1.Checked = true;  check15_2.Checked = false; } | ||||
|             else if (real[14] == "2") { check15_1.Checked = true;  check15_2.Checked = true; } | ||||
|  | ||||
|                  if (real[15] == "0") { check16_1.Checked = false; check16_2.Checked = false; } | ||||
|             else if (real[15] == "1") { check16_1.Checked = true;  check16_2.Checked = false; } | ||||
|             else if (real[15] == "2") { check16_1.Checked = true;  check16_2.Checked = true; } | ||||
|  | ||||
|                  if (real[16] == "0") { check17_1.Checked = false; check17_2.Checked = false; } | ||||
|             else if (real[16] == "1") { check17_1.Checked = true;  check17_2.Checked = false; } | ||||
|             else if (real[16] == "2") { check17_1.Checked = true;  check17_2.Checked = true; } | ||||
|  | ||||
|                  if (real[17] == "0") { check18_1.Checked = false; check18_2.Checked = false; } | ||||
|             else if (real[17] == "1") { check18_1.Checked = true;  check18_2.Checked = false; } | ||||
|             else if (real[17] == "2") { check18_1.Checked = true;  check18_2.Checked = true; } | ||||
|  | ||||
|                  if (real[18] == "0") { check19_1.Checked = false; check19_2.Checked = false; } | ||||
|             else if (real[18] == "1") { check19_1.Checked = true;  check19_2.Checked = false; } | ||||
|             else if (real[18] == "2") { check19_1.Checked = true;  check19_2.Checked = true; } | ||||
|  | ||||
|                  if (real[19] == "0") { check20_1.Checked = false; check20_2.Checked = false; } | ||||
|             else if (real[19] == "1") { check20_1.Checked = true;  check20_2.Checked = false; } | ||||
|             else if (real[19] == "2") { check20_1.Checked = true;  check20_2.Checked = true; } | ||||
|             }   // 열면 후회함 (권한 나눈거 체크체크) | ||||
|             init_check(); | ||||
|         } | ||||
|         private void check1_1_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             init_check(); | ||||
|         } | ||||
|         private void btn_IDOverlap_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             string check = _DB.DB_Search(Table_User, "id", tb_ID.Text); | ||||
|             if(check == "") { MessageBox.Show("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); overlap = true; } | ||||
|             else { MessageBox.Show("중복된 아이디입니다. [" + tb_ID.Text + "]");overlap = false; } | ||||
|         } | ||||
|         private void All_Check(object sender, EventArgs e) | ||||
|         { | ||||
|             bool yesorno = false; | ||||
|             if (((CheckBox)sender).Checked == true) { yesorno = true; } | ||||
|             else if (((CheckBox)sender).Checked == false) { yesorno = false; } | ||||
|             ALL_Check(sender, yesorno); | ||||
|         } | ||||
|         private void btn_Save_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             string right = Return_right(); | ||||
|             User_Manage(); | ||||
|             _DB.DB_Create(Table_User, "right", right, tempData[1]); | ||||
|         } | ||||
|         private void btn_Add_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             if(tb_ID.Text=="" || tb_PW.Text == "" || tb_Name.Text == "") | ||||
|             { | ||||
|                 MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요."); | ||||
|             } | ||||
|             else if (overlap == true) | ||||
|             { | ||||
|                 string right = Return_right(); | ||||
|                 string create_DB = "INSERT INTO User_Data" + | ||||
|                     "(`ID`, `PW`, `name`, `right`, `affil`, `position`, `Phone`, `grade`)" + | ||||
|                     "values('"+tb_ID.Text+"', '"+tb_PW.Text+ "', '" + tb_Name.Text + "', '"+right+"',"; | ||||
|                 if (tb_Affil.Text == "") { create_DB += "null,"; } | ||||
|                 else { create_DB += "'" + tb_Affil.Text + "',"; } | ||||
|                 if (tb_position.Text == "") { create_DB += "null,"; } | ||||
|                 else { create_DB += "'" + tb_position.Text + "',"; } | ||||
|                 if (tb_Phone.Text == "") { create_DB += "null,"; } | ||||
|                 else { create_DB += "'" + tb_Phone.Text + "',"; } | ||||
|                 if (check_Away.Checked == true) { create_DB += "'외부업체');"; } | ||||
|                 else { create_DB += "null);"; } | ||||
|                 _DB.self_Made_Cmd(create_DB); | ||||
|                 overlap = false; | ||||
|                 User_Manage(); | ||||
|             } | ||||
|             else { MessageBox.Show("아이디 중복확인을 해주세요"); } | ||||
|         } | ||||
|         private void btn_Del_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             _DB.DB_Delete(Table_User, "id", tempData[0]); | ||||
|             dataGridView1.Rows.Remove(dataGridView1.Rows[gridIndex]); | ||||
|         } | ||||
|         /// <summary> | ||||
|         /// 체크박스로 권한(right)값 구하기 | ||||
|         /// </summary> | ||||
|         /// <returns></returns> | ||||
|         private string Return_right() | ||||
|         { | ||||
|             string right=""; | ||||
|             {  | ||||
|                 if (check1_1.Checked == false) { right += "0,"; } | ||||
|             else if(check1_1.Checked == true && check1_2.Checked == false) { right += "1,"; } | ||||
|             else if(check1_1.Checked == true && check1_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check2_1.Checked == false) { right += "0,"; } | ||||
|             else if(check2_1.Checked == true && check2_2.Checked == false) { right += "1,"; } | ||||
|             else if(check2_1.Checked == true && check2_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check3_1.Checked == false) { right += "0,"; } | ||||
|             else if(check3_1.Checked == true && check3_2.Checked == false) { right += "1,"; } | ||||
|             else if(check3_1.Checked == true && check3_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check4_1.Checked == false) { right += "0,"; } | ||||
|             else if(check4_1.Checked == true && check4_2.Checked == false) { right += "1,"; } | ||||
|             else if(check4_1.Checked == true && check4_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check5_1.Checked == false) { right += "0,"; } | ||||
|             else if(check5_1.Checked == true && check5_2.Checked == false) { right += "1,"; } | ||||
|             else if(check5_1.Checked == true && check5_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check6_1.Checked == false) { right += "0,"; } | ||||
|             else if(check6_1.Checked == true && check6_2.Checked == false) { right += "1,"; } | ||||
|             else if(check6_1.Checked == true && check6_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check7_1.Checked == false) { right += "0,"; } | ||||
|             else if(check7_1.Checked == true && check7_2.Checked == false) { right += "1,"; } | ||||
|             else if(check7_1.Checked == true && check7_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check8_1.Checked == false) { right += "0,"; } | ||||
|             else if(check8_1.Checked == true && check8_2.Checked == false) { right += "1,"; } | ||||
|             else if(check8_1.Checked == true && check8_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check9_1.Checked == false) { right += "0,"; } | ||||
|             else if(check9_1.Checked == true && check9_2.Checked == false) { right += "1,"; } | ||||
|             else if(check9_1.Checked == true && check9_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check10_1.Checked == false) { right += "0,"; } | ||||
|             else if(check10_1.Checked == true && check10_2.Checked == false) { right += "1,"; } | ||||
|             else if(check10_1.Checked == true && check10_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check11_1.Checked == false) { right += "0,"; } | ||||
|             else if(check11_1.Checked == true && check11_2.Checked == false) { right += "1,"; } | ||||
|             else if(check11_1.Checked == true && check11_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check12_1.Checked == false) { right += "0,"; } | ||||
|             else if(check12_1.Checked == true && check12_2.Checked == false) { right += "1,"; } | ||||
|             else if(check12_1.Checked == true && check12_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check13_1.Checked == false) { right += "0,"; } | ||||
|             else if(check13_1.Checked == true && check13_2.Checked == false) { right += "1,"; } | ||||
|             else if(check13_1.Checked == true && check13_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check14_1.Checked == false) { right += "0,"; } | ||||
|             else if(check14_1.Checked == true && check14_2.Checked == false) { right += "1,"; } | ||||
|             else if(check14_1.Checked == true && check14_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check15_1.Checked == false) { right += "0,"; } | ||||
|             else if(check15_1.Checked == true && check15_2.Checked == false) { right += "1,"; } | ||||
|             else if(check15_1.Checked == true && check15_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check16_1.Checked == false) { right += "0,"; } | ||||
|             else if(check16_1.Checked == true && check16_2.Checked == false) { right += "1,"; } | ||||
|             else if(check16_1.Checked == true && check16_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check17_1.Checked == false) { right += "0,"; } | ||||
|             else if(check17_1.Checked == true && check17_2.Checked == false) { right += "1,"; } | ||||
|             else if(check17_1.Checked == true && check17_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check18_1.Checked == false) { right += "0,"; } | ||||
|             else if(check18_1.Checked == true && check18_2.Checked == false) { right += "1,"; } | ||||
|             else if(check18_1.Checked == true && check18_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check19_1.Checked == false) { right += "0,"; } | ||||
|             else if(check19_1.Checked == true && check19_2.Checked == false) { right += "1,"; } | ||||
|             else if(check19_1.Checked == true && check19_2.Checked == true) { right += "2,"; } | ||||
|                  | ||||
|                 if (check20_1.Checked == false) { right += "0"; } | ||||
|             else if(check20_1.Checked == true && check20_2.Checked == false) { right += "1"; } | ||||
|             else if(check20_1.Checked == true && check20_2.Checked == true) { right += "2"; } | ||||
|             }       // 체크박스로 권한값구하기 | ||||
|             return right; | ||||
|         } | ||||
|         /// <summary> | ||||
|         /// 체크박스 초기화 | ||||
|         /// </summary> | ||||
|         private void init_check() | ||||
|         { | ||||
|             if (check1_1.Checked == false) { check1_2.Enabled = false; } | ||||
|             else if (check1_1.Checked == true) { check1_2.Enabled = true; } | ||||
|             if (check2_1.Checked == false) { check2_2.Enabled = false; } | ||||
|             else if (check2_1.Checked == true) { check2_2.Enabled = true; } | ||||
|             if (check3_1.Checked == false) { check3_2.Enabled = false; } | ||||
|             else if (check3_1.Checked == true) { check3_2.Enabled = true; } | ||||
|             if (check4_1.Checked == false) { check4_2.Enabled = false; } | ||||
|             else if (check4_1.Checked == true) { check4_2.Enabled = true; } | ||||
|             if (check5_1.Checked == false) { check5_2.Enabled = false; } | ||||
|             else if (check5_1.Checked == true) { check5_2.Enabled = true; } | ||||
|             if (check6_1.Checked == false) { check6_2.Enabled = false; } | ||||
|             else if (check6_1.Checked == true) { check6_2.Enabled = true; } | ||||
|             if (check7_1.Checked == false) { check7_2.Enabled = false; } | ||||
|             else if (check7_1.Checked == true) { check7_2.Enabled = true; } | ||||
|             if (check8_1.Checked == false) { check8_2.Enabled = false; } | ||||
|             else if (check8_1.Checked == true) { check8_2.Enabled = true; } | ||||
|             if (check9_1.Checked == false) { check9_2.Enabled = false; } | ||||
|             else if (check9_1.Checked == true) { check9_2.Enabled = true; } | ||||
|             if (check10_1.Checked == false) { check10_2.Enabled = false; } | ||||
|             else if (check10_1.Checked == true) { check10_2.Enabled = true; } | ||||
|             if (check11_1.Checked == false) { check11_2.Enabled = false; } | ||||
|             else if (check11_1.Checked == true) { check11_2.Enabled = true; } | ||||
|             if (check12_1.Checked == false) { check12_2.Enabled = false; } | ||||
|             else if (check12_1.Checked == true) { check12_2.Enabled = true; } | ||||
|             if (check13_1.Checked == false) { check13_2.Enabled = false; } | ||||
|             else if (check13_1.Checked == true) { check13_2.Enabled = true; } | ||||
|             if (check14_1.Checked == false) { check14_2.Enabled = false; } | ||||
|             else if (check14_1.Checked == true) { check14_2.Enabled = true; } | ||||
|             if (check15_1.Checked == false) { check15_2.Enabled = false; } | ||||
|             else if (check15_1.Checked == true) { check15_2.Enabled = true; } | ||||
|             if (check16_1.Checked == false) { check16_2.Enabled = false; } | ||||
|             else if (check16_1.Checked == true) { check16_2.Enabled = true; } | ||||
|             if (check17_1.Checked == false) { check17_2.Enabled = false; } | ||||
|             else if (check17_1.Checked == true) { check17_2.Enabled = true; } | ||||
|             if (check18_1.Checked == false) { check18_2.Enabled = false; } | ||||
|             else if (check18_1.Checked == true) { check18_2.Enabled = true; } | ||||
|             if (check19_1.Checked == false) { check19_2.Enabled = false; } | ||||
|             else if (check19_1.Checked == true) { check19_2.Enabled = true; } | ||||
|             if (check20_1.Checked == false) { check20_2.Enabled = false; } | ||||
|             else if (check20_1.Checked == true) { check20_2.Enabled = true; } | ||||
|         } | ||||
|         /// <summary> | ||||
|         /// 일괄체크 | ||||
|         /// </summary> | ||||
|         /// <param name="sender">이벤트 sender 그대로 가져와야함</param> | ||||
|         /// <param name="chk">true or false</param> | ||||
|         private void ALL_Check(object sender, bool chk) | ||||
|         { | ||||
|             string target = ((CheckBox)sender).Name; | ||||
|             if(target== "ALL_check1" && chk == true) | ||||
|             { | ||||
|                 check1_1.Checked = true; | ||||
|                 check2_1.Checked = true; | ||||
|                 check3_1.Checked = true; | ||||
|                 check4_1.Checked = true; | ||||
|                 check5_1.Checked = true; | ||||
|                 check6_1.Checked = true; | ||||
|                 check7_1.Checked = true; | ||||
|                 check8_1.Checked = true; | ||||
|                 check9_1.Checked = true; | ||||
|                 check10_1.Checked = true; | ||||
|                 check11_1.Checked = true; | ||||
|                 check12_1.Checked = true; | ||||
|                 check13_1.Checked = true; | ||||
|                 check14_1.Checked = true; | ||||
|                 check15_1.Checked = true; | ||||
|                 check16_1.Checked = true; | ||||
|                 check17_1.Checked = true; | ||||
|                 check18_1.Checked = true; | ||||
|                 check19_1.Checked = true; | ||||
|                 check20_1.Checked = true; | ||||
|             } | ||||
|             else if(target== "ALL_check1" && chk == false) | ||||
|             { | ||||
|                 check1_1.Checked = false; | ||||
|                 check2_1.Checked = false; | ||||
|                 check3_1.Checked = false; | ||||
|                 check4_1.Checked = false; | ||||
|                 check5_1.Checked = false; | ||||
|                 check6_1.Checked = false; | ||||
|                 check7_1.Checked = false; | ||||
|                 check8_1.Checked = false; | ||||
|                 check9_1.Checked = false; | ||||
|                 check10_1.Checked = false; | ||||
|                 check11_1.Checked = false; | ||||
|                 check12_1.Checked = false; | ||||
|                 check13_1.Checked = false; | ||||
|                 check14_1.Checked = false; | ||||
|                 check15_1.Checked = false; | ||||
|                 check16_1.Checked = false; | ||||
|                 check17_1.Checked = false; | ||||
|                 check18_1.Checked = false; | ||||
|                 check19_1.Checked = false; | ||||
|                 check20_1.Checked = false; | ||||
|             } | ||||
|             else if(target== "ALL_check2" && chk == true) | ||||
|             { | ||||
|                 check1_2.Checked = true; | ||||
|                 check2_2.Checked = true; | ||||
|                 check3_2.Checked = true; | ||||
|                 check4_2.Checked = true; | ||||
|                 check5_2.Checked = true; | ||||
|                 check6_2.Checked = true; | ||||
|                 check7_2.Checked = true; | ||||
|                 check8_2.Checked = true; | ||||
|                 check9_2.Checked = true; | ||||
|                 check10_2.Checked = true; | ||||
|                 check11_2.Checked = true; | ||||
|                 check12_2.Checked = true; | ||||
|                 check13_2.Checked = true; | ||||
|                 check14_2.Checked = true; | ||||
|                 check15_2.Checked = true; | ||||
|                 check16_2.Checked = true; | ||||
|                 check17_2.Checked = true; | ||||
|                 check18_2.Checked = true; | ||||
|                 check19_2.Checked = true; | ||||
|                 check20_2.Checked = true; | ||||
|             } | ||||
|             else if(target== "ALL_check2" && chk == false) | ||||
|             { | ||||
|                  check1_2.Checked = false; | ||||
|                  check2_2.Checked = false; | ||||
|                  check3_2.Checked = false; | ||||
|                  check4_2.Checked = false; | ||||
|                  check5_2.Checked = false; | ||||
|                  check6_2.Checked = false; | ||||
|                  check7_2.Checked = false; | ||||
|                  check8_2.Checked = false; | ||||
|                  check9_2.Checked = false; | ||||
|                 check10_2.Checked = false; | ||||
|                 check11_2.Checked = false; | ||||
|                 check12_2.Checked = false; | ||||
|                 check13_2.Checked = false; | ||||
|                 check14_2.Checked = false; | ||||
|                 check15_2.Checked = false; | ||||
|                 check16_2.Checked = false; | ||||
|                 check17_2.Checked = false; | ||||
|                 check18_2.Checked = false; | ||||
|                 check19_2.Checked = false; | ||||
|                 check20_2.Checked = false; | ||||
|             } | ||||
|             init_check(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										147
									
								
								ServerText/ServerText/Form1.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										147
									
								
								ServerText/ServerText/Form1.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,147 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||
|     <value>12, 26</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
| </root> | ||||
							
								
								
									
										22
									
								
								ServerText/ServerText/Program.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								ServerText/ServerText/Program.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Threading.Tasks; | ||||
| using System.Windows.Forms; | ||||
|  | ||||
| namespace ServerText | ||||
| { | ||||
|     static class Program | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// 해당 애플리케이션의 주 진입점입니다. | ||||
|         /// </summary> | ||||
|         [STAThread] | ||||
|         static void Main() | ||||
|         { | ||||
|             Application.EnableVisualStyles(); | ||||
|             Application.SetCompatibleTextRenderingDefault(false); | ||||
|             Application.Run(new Form1()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										36
									
								
								ServerText/ServerText/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								ServerText/ServerText/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| using System.Reflection; | ||||
| using System.Runtime.CompilerServices; | ||||
| using System.Runtime.InteropServices; | ||||
|  | ||||
| // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해  | ||||
| // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 | ||||
| // 이러한 특성 값을 변경하세요. | ||||
| [assembly: AssemblyTitle("ServerText")] | ||||
| [assembly: AssemblyDescription("")] | ||||
| [assembly: AssemblyConfiguration("")] | ||||
| [assembly: AssemblyCompany("Microsoft Corporation")] | ||||
| [assembly: AssemblyProduct("ServerText")] | ||||
| [assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2020")] | ||||
| [assembly: AssemblyTrademark("")] | ||||
| [assembly: AssemblyCulture("")] | ||||
|  | ||||
| // ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에  | ||||
| // 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 | ||||
| // 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. | ||||
| [assembly: ComVisible(false)] | ||||
|  | ||||
| // 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. | ||||
| [assembly: Guid("b5df86e2-bd09-4a36-a778-b52eaf800958")] | ||||
|  | ||||
| // 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. | ||||
| // | ||||
| //      주 버전 | ||||
| //      부 버전  | ||||
| //      빌드 번호 | ||||
| //      수정 버전 | ||||
| // | ||||
| // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 | ||||
| // 기본값으로 할 수 있습니다. | ||||
| // [assembly: AssemblyVersion("1.0.*")] | ||||
| [assembly: AssemblyVersion("1.0.0.0")] | ||||
| [assembly: AssemblyFileVersion("1.0.0.0")] | ||||
							
								
								
									
										71
									
								
								ServerText/ServerText/Properties/Resources.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								ServerText/ServerText/Properties/Resources.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | ||||
| //------------------------------------------------------------------------------ | ||||
| // <auto-generated> | ||||
| //     이 코드는 도구를 사용하여 생성되었습니다. | ||||
| //     런타임 버전:4.0.30319.42000 | ||||
| // | ||||
| //     파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | ||||
| //     이러한 변경 내용이 손실됩니다. | ||||
| // </auto-generated> | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| namespace ServerText.Properties | ||||
| { | ||||
|  | ||||
|  | ||||
|     /// <summary> | ||||
|     ///   지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. | ||||
|     /// </summary> | ||||
|     // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder | ||||
|     // 클래스에서 자동으로 생성되었습니다. | ||||
|     // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 | ||||
|     // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. | ||||
|     [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() | ||||
|         { | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         ///   이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. | ||||
|         /// </summary> | ||||
|         [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("ServerText.Properties.Resources", typeof(Resources).Assembly); | ||||
|                     resourceMan = temp; | ||||
|                 } | ||||
|                 return resourceMan; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         ///   이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 | ||||
|         ///   재정의합니다. | ||||
|         /// </summary> | ||||
|         [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||||
|         internal static global::System.Globalization.CultureInfo Culture | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 return resourceCulture; | ||||
|             } | ||||
|             set | ||||
|             { | ||||
|                 resourceCulture = value; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										117
									
								
								ServerText/ServerText/Properties/Resources.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										117
									
								
								ServerText/ServerText/Properties/Resources.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,117 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
| </root> | ||||
							
								
								
									
										30
									
								
								ServerText/ServerText/Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								ServerText/ServerText/Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| //------------------------------------------------------------------------------ | ||||
| // <auto-generated> | ||||
| //     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. | ||||
| // </auto-generated> | ||||
| //------------------------------------------------------------------------------ | ||||
|  | ||||
| namespace ServerText.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; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										7
									
								
								ServerText/ServerText/Properties/Settings.settings
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								ServerText/ServerText/Properties/Settings.settings
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| <?xml version='1.0' encoding='utf-8'?> | ||||
| <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | ||||
|   <Profiles> | ||||
|     <Profile Name="(Default)" /> | ||||
|   </Profiles> | ||||
|   <Settings /> | ||||
| </SettingsFile> | ||||
							
								
								
									
										101
									
								
								ServerText/ServerText/ServerText.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										101
									
								
								ServerText/ServerText/ServerText.csproj
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,101 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||||
|   <PropertyGroup> | ||||
|     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||||
|     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||||
|     <ProjectGuid>{B5DF86E2-BD09-4A36-A778-B52EAF800958}</ProjectGuid> | ||||
|     <OutputType>WinExe</OutputType> | ||||
|     <RootNamespace>ServerText</RootNamespace> | ||||
|     <AssemblyName>ServerText</AssemblyName> | ||||
|     <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||||
|     <FileAlignment>512</FileAlignment> | ||||
|     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||||
|     <Deterministic>true</Deterministic> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||||
|     <PlatformTarget>AnyCPU</PlatformTarget> | ||||
|     <DebugSymbols>true</DebugSymbols> | ||||
|     <DebugType>full</DebugType> | ||||
|     <Optimize>false</Optimize> | ||||
|     <OutputPath>bin\Debug\</OutputPath> | ||||
|     <DefineConstants>DEBUG;TRACE</DefineConstants> | ||||
|     <ErrorReport>prompt</ErrorReport> | ||||
|     <WarningLevel>4</WarningLevel> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||||
|     <PlatformTarget>AnyCPU</PlatformTarget> | ||||
|     <DebugType>pdbonly</DebugType> | ||||
|     <Optimize>true</Optimize> | ||||
|     <OutputPath>bin\Release\</OutputPath> | ||||
|     <DefineConstants>TRACE</DefineConstants> | ||||
|     <ErrorReport>prompt</ErrorReport> | ||||
|     <WarningLevel>4</WarningLevel> | ||||
|   </PropertyGroup> | ||||
|   <ItemGroup> | ||||
|     <Reference Include="MySql.Data, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"> | ||||
|       <SpecificVersion>False</SpecificVersion> | ||||
|       <HintPath>..\..\..\..\..\..\Program Files (x86)\MySQL\MySQL Connector Net 8.0.21\Assemblies\v4.5.2\MySql.Data.dll</HintPath> | ||||
|     </Reference> | ||||
|     <Reference Include="renci.sshnet, Version=2016.1.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL"> | ||||
|       <SpecificVersion>False</SpecificVersion> | ||||
|       <HintPath>..\..\..\..\Downloads\renci.sshnet\renci.sshnet.dll</HintPath> | ||||
|     </Reference> | ||||
|     <Reference Include="System" /> | ||||
|     <Reference Include="System.Core" /> | ||||
|     <Reference Include="System.Xml.Linq" /> | ||||
|     <Reference Include="System.Data.DataSetExtensions" /> | ||||
|     <Reference Include="Microsoft.CSharp" /> | ||||
|     <Reference Include="System.Data" /> | ||||
|     <Reference Include="System.Deployment" /> | ||||
|     <Reference Include="System.Drawing" /> | ||||
|     <Reference Include="System.Net.Http" /> | ||||
|     <Reference Include="System.Windows.Forms" /> | ||||
|     <Reference Include="System.Xml" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <Compile Include="Helper_DB.cs" /> | ||||
|     <Compile Include="Form1.cs"> | ||||
|       <SubType>Form</SubType> | ||||
|     </Compile> | ||||
|     <Compile Include="Form1.Designer.cs"> | ||||
|       <DependentUpon>Form1.cs</DependentUpon> | ||||
|     </Compile> | ||||
|     <Compile Include="login.cs"> | ||||
|       <SubType>Form</SubType> | ||||
|     </Compile> | ||||
|     <Compile Include="login.Designer.cs"> | ||||
|       <DependentUpon>login.cs</DependentUpon> | ||||
|     </Compile> | ||||
|     <Compile Include="Program.cs" /> | ||||
|     <Compile Include="Properties\AssemblyInfo.cs" /> | ||||
|     <EmbeddedResource Include="Form1.resx"> | ||||
|       <DependentUpon>Form1.cs</DependentUpon> | ||||
|     </EmbeddedResource> | ||||
|     <EmbeddedResource Include="login.resx"> | ||||
|       <DependentUpon>login.cs</DependentUpon> | ||||
|     </EmbeddedResource> | ||||
|     <EmbeddedResource Include="Properties\Resources.resx"> | ||||
|       <Generator>ResXFileCodeGenerator</Generator> | ||||
|       <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||||
|       <SubType>Designer</SubType> | ||||
|     </EmbeddedResource> | ||||
|     <Compile Include="Properties\Resources.Designer.cs"> | ||||
|       <AutoGen>True</AutoGen> | ||||
|       <DependentUpon>Resources.resx</DependentUpon> | ||||
|     </Compile> | ||||
|     <None Include="Properties\Settings.settings"> | ||||
|       <Generator>SettingsSingleFileGenerator</Generator> | ||||
|       <LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||||
|     </None> | ||||
|     <Compile Include="Properties\Settings.Designer.cs"> | ||||
|       <AutoGen>True</AutoGen> | ||||
|       <DependentUpon>Settings.settings</DependentUpon> | ||||
|       <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||||
|     </Compile> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <None Include="App.config" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||||
| </Project> | ||||
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/BouncyCastle.Crypto.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/BouncyCastle.Crypto.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Google.Protobuf.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Google.Protobuf.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Compression.LZ4.Streams.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Compression.LZ4.Streams.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Compression.LZ4.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Compression.LZ4.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Hash.xxHash.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/K4os.Hash.xxHash.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/MySql.Data.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/MySql.Data.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										17803
									
								
								ServerText/ServerText/bin/Debug/MySql.Data.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17803
									
								
								ServerText/ServerText/bin/Debug/MySql.Data.xml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/ServerText.exe
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/ServerText.exe
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										14
									
								
								ServerText/ServerText/bin/Debug/ServerText.exe.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ServerText/ServerText/bin/Debug/ServerText.exe.config
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <configuration> | ||||
|   <startup> | ||||
|     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||||
|   </startup> | ||||
|   <runtime> | ||||
|     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||||
|       <dependentAssembly> | ||||
|         <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||||
|         <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> | ||||
|       </dependentAssembly> | ||||
|     </assemblyBinding> | ||||
|   </runtime> | ||||
| </configuration> | ||||
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/ServerText.pdb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/ServerText.pdb
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Buffers.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Buffers.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Memory.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Memory.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Numerics.Vectors.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/System.Numerics.Vectors.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Ubiety.Dns.Core.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Ubiety.Dns.Core.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Zstandard.Net.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/Zstandard.Net.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/renci.sshnet.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/bin/Debug/renci.sshnet.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										120
									
								
								ServerText/ServerText/login.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								ServerText/ServerText/login.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| namespace ServerText | ||||
| { | ||||
|     partial class login | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Required designer variable. | ||||
|         /// </summary> | ||||
|         private System.ComponentModel.IContainer components = null; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Clean up any resources being used. | ||||
|         /// </summary> | ||||
|         /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||||
|         protected override void Dispose(bool disposing) | ||||
|         { | ||||
|             if (disposing && (components != null)) | ||||
|             { | ||||
|                 components.Dispose(); | ||||
|             } | ||||
|             base.Dispose(disposing); | ||||
|         } | ||||
|  | ||||
|         #region Windows Form Designer generated code | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Required method for Designer support - do not modify | ||||
|         /// the contents of this method with the code editor. | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             this.ID_text = new System.Windows.Forms.TextBox(); | ||||
|             this.PW_text = new System.Windows.Forms.TextBox(); | ||||
|             this.button1 = new System.Windows.Forms.Button(); | ||||
|             this.button2 = new System.Windows.Forms.Button(); | ||||
|             this.label1 = new System.Windows.Forms.Label(); | ||||
|             this.label2 = new System.Windows.Forms.Label(); | ||||
|             this.SuspendLayout(); | ||||
|             //  | ||||
|             // ID_text | ||||
|             //  | ||||
|             this.ID_text.Location = new System.Drawing.Point(199, 73); | ||||
|             this.ID_text.Name = "ID_text"; | ||||
|             this.ID_text.Size = new System.Drawing.Size(100, 21); | ||||
|             this.ID_text.TabIndex = 1; | ||||
|             //  | ||||
|             // PW_text | ||||
|             //  | ||||
|             this.PW_text.Location = new System.Drawing.Point(199, 100); | ||||
|             this.PW_text.Name = "PW_text"; | ||||
|             this.PW_text.Size = new System.Drawing.Size(100, 21); | ||||
|             this.PW_text.TabIndex = 2; | ||||
|             this.PW_text.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PW_text_KeyDown); | ||||
|             //  | ||||
|             // button1 | ||||
|             //  | ||||
|             this.button1.Location = new System.Drawing.Point(172, 149); | ||||
|             this.button1.Name = "button1"; | ||||
|             this.button1.Size = new System.Drawing.Size(75, 23); | ||||
|             this.button1.TabIndex = 3; | ||||
|             this.button1.Text = "Login"; | ||||
|             this.button1.UseVisualStyleBackColor = true; | ||||
|             this.button1.Click += new System.EventHandler(this.button1_Click); | ||||
|             //  | ||||
|             // button2 | ||||
|             //  | ||||
|             this.button2.Location = new System.Drawing.Point(267, 149); | ||||
|             this.button2.Name = "button2"; | ||||
|             this.button2.Size = new System.Drawing.Size(75, 23); | ||||
|             this.button2.TabIndex = 4; | ||||
|             this.button2.Text = "Exit"; | ||||
|             this.button2.UseVisualStyleBackColor = true; | ||||
|             this.button2.Click += new System.EventHandler(this.button2_Click); | ||||
|             //  | ||||
|             // label1 | ||||
|             //  | ||||
|             this.label1.AutoSize = true; | ||||
|             this.label1.Location = new System.Drawing.Point(145, 77); | ||||
|             this.label1.Name = "label1"; | ||||
|             this.label1.Size = new System.Drawing.Size(41, 12); | ||||
|             this.label1.TabIndex = 2; | ||||
|             this.label1.Text = "아이디"; | ||||
|             //  | ||||
|             // label2 | ||||
|             //  | ||||
|             this.label2.AutoSize = true; | ||||
|             this.label2.Location = new System.Drawing.Point(139, 104); | ||||
|             this.label2.Name = "label2"; | ||||
|             this.label2.Size = new System.Drawing.Size(53, 12); | ||||
|             this.label2.TabIndex = 2; | ||||
|             this.label2.Text = "비밀번호"; | ||||
|             //  | ||||
|             // login | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(498, 239); | ||||
|             this.Controls.Add(this.label2); | ||||
|             this.Controls.Add(this.label1); | ||||
|             this.Controls.Add(this.button2); | ||||
|             this.Controls.Add(this.button1); | ||||
|             this.Controls.Add(this.PW_text); | ||||
|             this.Controls.Add(this.ID_text); | ||||
|             this.Name = "login"; | ||||
|             this.Text = "login"; | ||||
|             this.Load += new System.EventHandler(this.login_Load); | ||||
|             this.ResumeLayout(false); | ||||
|             this.PerformLayout(); | ||||
|  | ||||
|         } | ||||
|  | ||||
|         #endregion | ||||
|  | ||||
|         private System.Windows.Forms.TextBox ID_text; | ||||
|         private System.Windows.Forms.TextBox PW_text; | ||||
|         private System.Windows.Forms.Button button1; | ||||
|         private System.Windows.Forms.Button button2; | ||||
|         private System.Windows.Forms.Label label1; | ||||
|         private System.Windows.Forms.Label label2; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										56
									
								
								ServerText/ServerText/login.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								ServerText/ServerText/login.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| 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 ServerText | ||||
| { | ||||
|     public partial class login : Form | ||||
|     { | ||||
|         public login() | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|         } | ||||
|  | ||||
|         private void login_Load(object sender, EventArgs e) | ||||
|         { | ||||
|         } | ||||
|  | ||||
|         private void button1_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             Helper_DB db = new Helper_DB(); | ||||
|             db.DBcon(); | ||||
|             string DB_Data = db.DB_Search("User_Data", "id", ID_text.Text); | ||||
|             string[] result = DB_Data.Split('|'); | ||||
|             ((Form1)(this.Owner)).User_Name = ID_text.Text; | ||||
|             if (ID_text.Text == result[1]) | ||||
|             { | ||||
|                 if (PW_text.Text == result[2]) | ||||
|                 { | ||||
|                     this.DialogResult = DialogResult.OK; | ||||
|                     this.Close(); | ||||
|                 } | ||||
|                 else { MessageBox.Show("ID : [" + result[1] + "] PW : [" + result[2] + "]"); } | ||||
|                     // MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다."); | ||||
|             } | ||||
|             else { MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다."); } | ||||
|                 //MessageBox.Show("ID : [" + result[1] + "] PW : [" + result[2] + "]"); | ||||
|         } | ||||
|  | ||||
|         private void button2_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             this.Close(); | ||||
|         } | ||||
|  | ||||
|         private void PW_text_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) { button1_Click(null, null); } | ||||
|              | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										120
									
								
								ServerText/ServerText/login.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								ServerText/ServerText/login.resx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <root> | ||||
|   <!--  | ||||
|     Microsoft ResX Schema  | ||||
|      | ||||
|     Version 2.0 | ||||
|      | ||||
|     The primary goals of this format is to allow a simple XML format  | ||||
|     that is mostly human readable. The generation and parsing of the  | ||||
|     various data types are done through the TypeConverter classes  | ||||
|     associated with the data types. | ||||
|      | ||||
|     Example: | ||||
|      | ||||
|     ... ado.net/XML headers & schema ... | ||||
|     <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||
|     <resheader name="version">2.0</resheader> | ||||
|     <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||
|     <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||
|     <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||
|     <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||
|     <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||
|         <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||
|     </data> | ||||
|     <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||
|         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||
|         <comment>This is a comment</comment> | ||||
|     </data> | ||||
|                  | ||||
|     There are any number of "resheader" rows that contain simple  | ||||
|     name/value pairs. | ||||
|      | ||||
|     Each data row contains a name, and value. The row also contains a  | ||||
|     type or mimetype. Type corresponds to a .NET class that support  | ||||
|     text/value conversion through the TypeConverter architecture.  | ||||
|     Classes that don't support this are serialized and stored with the  | ||||
|     mimetype set. | ||||
|      | ||||
|     The mimetype is used for serialized objects, and tells the  | ||||
|     ResXResourceReader how to depersist the object. This is currently not  | ||||
|     extensible. For a given mimetype the value must be set accordingly: | ||||
|      | ||||
|     Note - application/x-microsoft.net.object.binary.base64 is the format  | ||||
|     that the ResXResourceWriter will generate, however the reader can  | ||||
|     read any of the formats listed below. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.binary.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|      | ||||
|     mimetype: application/x-microsoft.net.object.soap.base64 | ||||
|     value   : The object must be serialized with  | ||||
|             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||
|             : and then encoded with base64 encoding. | ||||
|  | ||||
|     mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||
|     value   : The object must be serialized into a byte array  | ||||
|             : using a System.ComponentModel.TypeConverter | ||||
|             : and then encoded with base64 encoding. | ||||
|     --> | ||||
|   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||
|     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||
|     <xsd:element name="root" msdata:IsDataSet="true"> | ||||
|       <xsd:complexType> | ||||
|         <xsd:choice maxOccurs="unbounded"> | ||||
|           <xsd:element name="metadata"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="assembly"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:attribute name="alias" type="xsd:string" /> | ||||
|               <xsd:attribute name="name" type="xsd:string" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="data"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|                 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||
|               <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||
|               <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||
|               <xsd:attribute ref="xml:space" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|           <xsd:element name="resheader"> | ||||
|             <xsd:complexType> | ||||
|               <xsd:sequence> | ||||
|                 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||
|               </xsd:sequence> | ||||
|               <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||
|             </xsd:complexType> | ||||
|           </xsd:element> | ||||
|         </xsd:choice> | ||||
|       </xsd:complexType> | ||||
|     </xsd:element> | ||||
|   </xsd:schema> | ||||
|   <resheader name="resmimetype"> | ||||
|     <value>text/microsoft-resx</value> | ||||
|   </resheader> | ||||
|   <resheader name="version"> | ||||
|     <value>2.0</value> | ||||
|   </resheader> | ||||
|   <resheader name="reader"> | ||||
|     <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
| </root> | ||||
| @@ -0,0 +1,4 @@ | ||||
| // <autogenerated /> | ||||
| using System; | ||||
| using System.Reflection; | ||||
| [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] | ||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.Form1.resources
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.Form1.resources
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -0,0 +1 @@ | ||||
| 5049113809e7b8048424556720b530406f8a66c8 | ||||
| @@ -0,0 +1,27 @@ | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\ServerText.exe.config | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\ServerText.exe | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\ServerText.pdb | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\MySql.Data.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\renci.sshnet.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\Google.Protobuf.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\Zstandard.Net.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\K4os.Compression.LZ4.Streams.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\BouncyCastle.Crypto.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\Ubiety.Dns.Core.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\System.Buffers.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\K4os.Compression.LZ4.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\K4os.Hash.xxHash.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\System.Memory.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\System.Numerics.Vectors.dll | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\bin\Debug\MySql.Data.xml | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.csprojAssemblyReference.cache | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.exe.config | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.Properties.Resources.resources | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.csproj.GenerateResource.cache | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.csproj.CoreCompileInputs.cache | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.csproj.CopyComplete | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.exe | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.pdb | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.Form1.resources | ||||
| C:\Users\Administrator\Desktop\project\ServerText\ServerText\obj\Debug\ServerText.login.resources | ||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.exe
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.exe
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										14
									
								
								ServerText/ServerText/obj/Debug/ServerText.exe.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ServerText/ServerText/obj/Debug/ServerText.exe.config
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <configuration> | ||||
|   <startup> | ||||
|     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||||
|   </startup> | ||||
|   <runtime> | ||||
|     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||||
|       <dependentAssembly> | ||||
|         <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> | ||||
|         <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> | ||||
|       </dependentAssembly> | ||||
|     </assemblyBinding> | ||||
|   </runtime> | ||||
| </configuration> | ||||
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.login.resources
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.login.resources
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.pdb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								ServerText/ServerText/obj/Debug/ServerText.pdb
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user
	 SeungHo Yang
					SeungHo Yang