示例#1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            lc.SetClearInput(chkClearInput.Checked);
            if (ChkServer.Checked)
            {
                lc.SetSetatusServer(true);
                lc.SetPathImage(txtPathImage.Text);
                lc.SetPathImageBefore(txtPathBefore.Text);
                lc.SetDelImage(chkDelImage.Checked);

                lc.SetPathShareImage(txtPathShareImage.Text);
                lc.SetPathShareData(txtPathShareData.Text);
            }
            else
            {
                lc.SetSetatusServer(false);
                lc.SetConnectServer(chkConnectServer.Checked, txtHost.Text, txtUser.Text, txtPwd.Text);
                //lc.SetPathImage(txtPathImage.Text);

                lc.SetPathShareImage(txtConnectShareData.Text);
                lc.SetPathShareData(txtConnectShareImage.Text);
            }

            lc.GetConfig();
        }