private void SetProjectSettings(ProjectSettingArgs args) { SelectedProject.MachineName = args.MachineName; SelectedProject.PmonPort = args.PmonPort; SelectedProject.AutoConnect = args.AutoConnect; SelectedProject.Credential = args.Credential; SelectedProject.Path = args.Path; projectCollection.Serialize(); //appDataBase.UpdateNode((WccNodeTag)treeView.SelectedNode.Tag, ((WccNodeTag)treeView.SelectedNode.Tag).NodeName); }
private void btnApply_Click(object sender, EventArgs e) { ProjectSettingArgs args = new ProjectSettingArgs(); args.MachineName = txtMachineName.Text; args.PmonPort = Convert.ToInt32(txtPmonPort.Text); args.AutoConnect = cbAutoConnect.Checked; EncryptContainer Credential = new EncryptContainer(); Credential.Login = txtLoginName.Text; Credential.Password = txtPassword.Text; Credential.DefaultAutorization = cbDefault.Checked; args.Credential = Credential; args.Path = txtPath.Text; setDel(args); this.Close(); }