using PublicLib; 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 KHSCALE_TP { public partial class MainForm : Form { public MainForm() { InitializeComponent(); ConstClass._USR_ID = ""; ConstClass._USR_NM = ""; ConstClass._COMP_CD = "0001"; UcWork w = new UcWork(); w.Dock = DockStyle.Fill; panelControl_Main.Controls.Add(w); } private void simpleButton_Cancel_Click(object sender, EventArgs e) { this.Close(); } private void simpleButton_Login_Click(object sender, EventArgs e) { //if (simpleButton_Login.Text == "LOGIN") //{ // FormLogin login = new FormLogin(ConstClass._COMP_CD); // if (login.ShowDialog() == DialogResult.Yes) // { // if (ConstClass._USR_ID != "") // { // labelControl_User.Text = ConstClass._USR_NM + " 님"; // simpleButton_Login.Text = "LOGOUT"; // } // } //} //else //{ // ConstClass._USR_ID = ""; // ConstClass._USR_NM = ""; // labelControl_User.Text = ""; // simpleButton_Login.Text = "LOGIN"; //} } } }