private void Form3_Load(object sender, EventArgs e) { //Select Language Lang(); //Combobox Lang selected index switch (Properties.Settings.Default.Lang) { case "en": comboBox1.SelectedIndex = 0; break; case "es": comboBox1.SelectedIndex = 1; break; } StringConverter sc = new StringConverter(); //Load string text = sc.ConvertToString(Properties.Settings.Default.edit); textBox1.Text = text; //Import string text2 = sc.ConvertToString(Properties.Settings.Default.import); textBox2.Text = text2; //Load string text3 = sc.ConvertToString(Properties.Settings.Default.load); textBox3.Text = text3; //Replace string text4 = sc.ConvertToString(Properties.Settings.Default.replace); textBox4.Text = text4; //Remove string text5 = sc.ConvertToString(Properties.Settings.Default.remove); textBox5.Text = text5; }
/// <summary> /// Gets config variable value as string. /// </summary> /// <returns></returns> public string Get() { return(StringConverter.ConvertToString(TargetProperty.GetValue(TargetObject))); }