private void buttonApply_Click(object sender, EventArgs e) { buttonApply.BackColor = SystemColors.Control; buttonApply.Update(); try { LocalProfile.SavePATH(textBoxPATH.Text); } catch (Exception exc) { MessageBox.Show(exc.Message); } buttonApply.BackColor = Color.LightGreen; }
private void FormMain_Load(object sender, EventArgs e) { textBoxPATH.Text = LocalProfile.ReadPATH(); }