private void lbText_DoubleClick(object sender, EventArgs e) { M.edtRemoteID.Text = PCS_ID.ToString(); M.NameInList = PCS_NAME; if (PASS != "") { M.RemotePassword = DHuy.OpenFood(PASS, "ForTheWin", new byte[256]); } M.REMOTE(PCS_ID, M.RemotePassword, PCS_NAME, 0); M.RemotePassword = ""; }
private void Config_Load(object sender, EventArgs e) { try { edtPassword.Text = DHuy.OpenFood(DBase.PasswordAuthen, "justicenzy", new byte[64]); edtNickName.Text = DBase.NickName; if (DBase.AutoLogOn == "1") { edtAutoLogon.Checked = true; } if (DBase.WallChange == 1) { edtWallPapper.Checked = true; } if (DBase.ActiveTranslation == 1) { edtActiveTranslator.Checked = true; } edtIntervalWall.Text = DBase.StringReturn(DBase.WallChangeSecond); if (DBase.LockDesktopWhenSessionFinish == "1") { edtLockAfterSession.Checked = true; } if (DBase.AutoupdateWhenStart == "1") { edtAutoUpdateWhenStart.Checked = true; } if (DBase.DisableAreoThemWhenConnect == "1") { edtDisableAreo.Checked = true; } if (DBase.SoundDeviceText == "") { edtSoundDevice.Text = "Headphone,Speakers"; } else { edtSoundDevice.Text = DBase.SoundDeviceText; } edtDisableWindowsLock.Checked = DBase.RegistryGetCU("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "NoLogoff") == "1" ? true : false; // DBase.RegistrySetCU("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "NoLogoff", "1", true); } catch (Exception ex) { } }
private void edtEdit_Click(object sender, EventArgs e) { PCS_Detail A = new PCS_Detail(); A.lbWelcome.Text = "Edit"; A.ID = ID; A.USERCODE = USERCODE; A.isUpdate = 1; A.edtPass.Text = DHuy.OpenFood(PASS, "ForTheWin", new byte[256]); A.edtPCS_NAME.Text = PCS_NAME; A.edtPCS_ID.Text = PCS_ID.ToString(); A.ShowDialog(); if (A.Res == 1) { M.RefreshPCS(); M.panRight.Visible = true; } }