Beispiel #1
0
        private void Btn_Load_Click(object sender, EventArgs e)
        {
            if (TB_Address.InvokeRequired)
            {
                TB_Address.BeginInvoke(new Action(() => {
                    TB_Address.Text  = Properties.Settings.Default.Config_Address;
                    TB_UserID.Text   = Properties.Settings.Default.Config_UserID;
                    TB_Password.Text = Properties.Settings.Default.Config_Password;
                }));
            }
            else
            {
                TB_Address.Text  = Properties.Settings.Default.Config_Address;
                TB_UserID.Text   = Properties.Settings.Default.Config_UserID;
                TB_Password.Text = Properties.Settings.Default.Config_Password;
            }

            MsgWrite("저장된 데이터를 불러옵니다.");
        }
Beispiel #2
0
        private void Btn_Save_Click(object sender, EventArgs e)
        {
            if (TB_Address.InvokeRequired)
            {
                TB_Address.BeginInvoke(new Action(() => {
                    Properties.Settings.Default.Config_Address  = TB_Address.Text;
                    Properties.Settings.Default.Config_UserID   = TB_UserID.Text;
                    Properties.Settings.Default.Config_Password = TB_Password.Text;
                }));
            }
            else
            {
                Properties.Settings.Default.Config_Address  = TB_Address.Text;
                Properties.Settings.Default.Config_UserID   = TB_UserID.Text;
                Properties.Settings.Default.Config_Password = TB_Password.Text;
            }

            MsgWrite("저장하였습니다.");
        }