private void SysteConfig_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); this.checkAutoLogon.Checked = state.Get(StateKeys.IsAutoLogon) == "1" ? true : false; this.checkAutoUpdate.Checked = state.Get(StateKeys.IsAutoUpdate) == "1" ? true : false; }
private void FTPConnection_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); this.txtAddress.Text = state.Get(ftpAddressKey); this.txtPort.Text = state.Get(ftpPortKey); this.txtUid.Text = state.Get(ftpUidKey); this.txtPwd.Text = state.Get(ftpPwdKey); }
private void ProjectRelease_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); string fileName = state.Get(dialogKey); string saveFileName = state.Get(saveDialogKey); string url = state.Get(urlKey); this.selectDialog1.Text = fileName; this.dialogExport.Text = saveFileName; string filter = state.Get(filterFileKey); this.txtFilterFile.Text = string.IsNullOrEmpty(filter) ? "pdb,old" : filter; this.txtUrl.Text = url; }
private void ModelTree_Load(object sender, EventArgs e) { IsReloadTree = false; DataTable dt = BindProjectList(); string id = state.Get("HistoryProjectID"); //查询项目是否已经删除 if (!string.IsNullOrEmpty(id)) { if (dt != null) { if (dt.Select("ID=" + id).Length > 0) { this.cboProject.SelectedValue = id; } } } object pid = this.cboProject.SelectedValue; IsReloadTree = true; if (pid != null) { BindModelTree(pid.ToString()); } }
private void UploadFile_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); string path = state.Get(localPathKey); this.dialogLocal.Text = path; }
private void FrmAddressBook_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); string fileName = state.Get("AddressBookFileName"); this.selectDialog.Text = fileName; }
private void Logon_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); string username = state.Get(StateKeys.UserName); string password = state.Get(StateKeys.Password); string isAutoLogon = state.Get(StateKeys.IsAutoLogon); this.txtUserName.Text = username; this.txtPassWord.Text = password; this.checkBox.Checked = isAutoLogon == "1" ? true : false; this.txtUserName.TextChanged += new EventHandler(txtUserName_TextChanged); this.txtPassWord.TextChanged += new EventHandler(txtPassWord_TextChanged); this.checkBox.CheckedChanged += new EventHandler(checkBox_CheckedChanged); if (this.checkBox.Checked) { Global.LoadingForm.Show(); Application.DoEvents(); CheckLogon(); } }
private void CodeBuilder_Load(object sender, EventArgs e) { this.tables.DataBind(TableID); ProjectEntity project = Global.GetCurrentProject(); this.template.TemplateID = project.TemplateID; this.template.DataBind(); ConfigurationState state = new ConfigurationState(); this.selectDialog.Text = state.Get("CodeBuilderPath"); }
private void TemplateExport_Load(object sender, EventArgs e) { this.template.IsShowExport = false; this.template.IsShowCheckBox = true; if (!string.IsNullOrEmpty(TemplateTypeID)) { template.TemplateID = Convert.ToInt32(TemplateTypeID); } this.template.DataBind(); ConfigurationState state = new ConfigurationState(); string path = state.Get(exportKey); this.selectDialog.Text = path; }
private void buttonImage1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.selectDialog1.Text)) { return; } ConfigurationState state = new ConfigurationState(); string fileName = state.Get(dialogKey); if (fileName != this.selectDialog1.Text) { state.Set(dialogKey, this.selectDialog1.Text); } treeDlls.Nodes.Clear(); DirectoryInfo rootDir = new DirectoryInfo(this.selectDialog1.Text); ShowDirectoryNode(rootDir, null); treeDlls.ExpandAll(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ConfigurationState state = new ConfigurationState(); var isAutoUpdate = state.Get <bool>(StateKeys.IsAutoUpdate); if (isAutoUpdate) { AutoUpdate(); } Logon logon = new Logon(); if (logon.ShowDialog() == DialogResult.OK) { //初始化数据类型 DataTypeManager.InitMappingConfig(); //运行主页面 Application.Run(new Main()); } }
private void ReaderPdm_Load(object sender, EventArgs e) { ConfigurationState state = new ConfigurationState(); this.selectDialog1.Text = state.Get(StateKeys.ReadPdmPath); }
private void DbDocument_Load(object sender, EventArgs e) { this.cboType.DataSource = Enum.GetNames(typeof(DbDocumentType)); this.selectPath.Text = config.Get("DbDocumentPath"); }