示例#1
0
 private void WriteUserSettings()
 {
     try
     {
         Sempra.IniFile iniFile = new Sempra.IniFile(Sempra.Ops.GetUserIniFileName(settingsDir));
         iniFile.WriteValue(FORM_NAME, "Top", this.Top);
         iniFile.WriteValue(FORM_NAME, "Left", this.Left);
     }
     catch (Exception error)
     {
         XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                "Error CNF-400 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
              FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
 private void WriteUserSettings()
 {
     try
     {
         Sempra.IniFile iniFile = new Sempra.IniFile(Sempra.Ops.GetUserIniFileName(settingsDir));
         iniFile.WriteValue(FORM_NAME, "Top", this.Top);
         iniFile.WriteValue(FORM_NAME, "Left", this.Left);
     }
     catch (Exception error)
     {
         XtraMessageBox.Show("An error occurred while saving the user settings file." + Environment.NewLine +
                             "Error CNF-400 in " + FORM_NAME + ".WriteUserSettings(): " + error.Message,
                             FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#3
0
文件: Form1.cs 项目: GDuggi/DemoTest
        private void button7_Click(object sender, System.EventArgs e)
        {
            iniFile = new Sempra.IniFile(textBox3.Text);
            StringCollection list = new StringCollection();

            foreach (string s in listBox1.Items)
            {
                list.Add(s);
            }

            iniFile.WriteValue("List", list);
        }
示例#4
0
		private void button7_Click(object sender, System.EventArgs e)
		{
			iniFile = new Sempra.IniFile(textBox3.Text);
			StringCollection list = new StringCollection();

			foreach( string s in listBox1.Items )
				list.Add( s );

			iniFile.WriteValue( "List", list );		
		}
示例#5
0
		private void button5_Click(object sender, System.EventArgs e)
		{
			iniFile = new Sempra.IniFile(textBox3.Text);
			iniFile.WriteValue( "Int", "test", (int)numericUpDown1.Value );		
		}
示例#6
0
		private void button3_Click(object sender, System.EventArgs e)
		{
			iniFile = new Sempra.IniFile(textBox3.Text);
			iniFile.WriteValue( "Bool", "test", checkBox1.Checked );
		}
示例#7
0
		private void button1_Click(object sender, System.EventArgs e)
		{
			iniFile = new Sempra.IniFile(textBox3.Text);
			iniFile.WriteValue( "Text", "test", textBox1.Text );
		}
示例#8
0
文件: Form1.cs 项目: GDuggi/DemoTest
 private void button5_Click(object sender, System.EventArgs e)
 {
     iniFile = new Sempra.IniFile(textBox3.Text);
     iniFile.WriteValue("Int", "test", (int)numericUpDown1.Value);
 }
示例#9
0
文件: Form1.cs 项目: GDuggi/DemoTest
 private void button3_Click(object sender, System.EventArgs e)
 {
     iniFile = new Sempra.IniFile(textBox3.Text);
     iniFile.WriteValue("Bool", "test", checkBox1.Checked);
 }
示例#10
0
文件: Form1.cs 项目: GDuggi/DemoTest
 private void button1_Click(object sender, System.EventArgs e)
 {
     iniFile = new Sempra.IniFile(textBox3.Text);
     iniFile.WriteValue("Text", "test", textBox1.Text);
 }