Beispiel #1
0
        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);
        }
Beispiel #2
0
 private void selectDialog_OnSelectDialogOk(object sender, string url)
 {
     if (!string.IsNullOrEmpty(url))
     {
         ConfigurationState state = new ConfigurationState();
         state.Set("AddressBookFileName", url);
     }
 }
Beispiel #3
0
 private void Main_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!string.IsNullOrEmpty(Global.GetCurrentProjectID()))
     {
         ConfigurationState state = new ConfigurationState();
         state.Set("HistoryProjectID", Global.GetCurrentProjectID());
     }
 }
Beispiel #4
0
        /// <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);
            }
        }
Beispiel #5
0
        void CodeBuilder_FormClosing(object sender, FormClosingEventArgs e)
        {
            string path = this.selectDialog.Text;

            if (!string.IsNullOrEmpty(path))
            {
                ConfigurationState state = new ConfigurationState();
                state.Set("CodeBuilderPath", path);
            }
        }
Beispiel #6
0
        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();
        }
Beispiel #7
0
        private void selectDialog_OnSelectDialogOk(object sender, string url)
        {
            ConfigurationState state = new ConfigurationState();

            state.Set(exportKey, url);
        }
Beispiel #8
0
        void SetState(string key, string value)
        {
            ConfigurationState state = new ConfigurationState();

            state.Set(key, value);
        }
Beispiel #9
0
        private void UpdateState(string key, string value)
        {
            ConfigurationState state = new ConfigurationState();

            state.Set(key, value);
        }
Beispiel #10
0
 private void DbDocument_FormClosing(object sender, FormClosingEventArgs e)
 {
     config.Set("DbDocumentPath", this.selectPath.Text);
 }