public override bool SaveData() { ConfigurationState state = new ConfigurationState(); state.Set(StateKeys.IsAutoLogon, this.checkAutoLogon.Checked ? "1" : "0"); state.Set(StateKeys.IsAutoUpdate, this.checkAutoUpdate.Checked ? "1" : "0"); return(true); }
private void selectDialog_OnSelectDialogOk(object sender, string url) { if (!string.IsNullOrEmpty(url)) { ConfigurationState state = new ConfigurationState(); state.Set("AddressBookFileName", url); } }
private void Main_FormClosing(object sender, FormClosingEventArgs e) { if (!string.IsNullOrEmpty(Global.GetCurrentProjectID())) { ConfigurationState state = new ConfigurationState(); state.Set("HistoryProjectID", Global.GetCurrentProjectID()); } }
/// <summary> /// 加载pdm文件 /// </summary> /// <param name="sender"></param> /// <param name="url"></param> private void selectDialog1_OnSelectDialogOk(object sender, string url) { if (!string.IsNullOrEmpty(url)) { ConfigurationState state = new ConfigurationState(); state.Set(StateKeys.ReadPdmPath, url); BindTables(url); } }
void CodeBuilder_FormClosing(object sender, FormClosingEventArgs e) { string path = this.selectDialog.Text; if (!string.IsNullOrEmpty(path)) { ConfigurationState state = new ConfigurationState(); state.Set("CodeBuilderPath", 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(); }
private void selectDialog_OnSelectDialogOk(object sender, string url) { ConfigurationState state = new ConfigurationState(); state.Set(exportKey, url); }
void SetState(string key, string value) { ConfigurationState state = new ConfigurationState(); state.Set(key, value); }
private void UpdateState(string key, string value) { ConfigurationState state = new ConfigurationState(); state.Set(key, value); }
private void DbDocument_FormClosing(object sender, FormClosingEventArgs e) { config.Set("DbDocumentPath", this.selectPath.Text); }