private void DialogButton4_Click(object sender, EventArgs e) { if //Get script location to textbox (MinerLocationDialog.ShowDialog() == DialogResult.OK) { textBoxScriptClose.Text = MinerLocationDialog.FileName; // set textbox to display selected program Properties.Settings.Default["CloseScript"] = textBoxScriptClose.Text; //Store name in settings } }
private void DialogButton_Click(object sender, EventArgs e) { if //Get file to textbox (MinerLocationDialog.ShowDialog() == DialogResult.OK) { MinerTextBox.Text = MinerLocationDialog.FileName; // set textbox to display selected program GetKillName(); } }
private void DialogButton2_Click(object sender, EventArgs e) { if //Get config file to textbox (MinerLocationDialog.ShowDialog() == DialogResult.OK) { ConfigTextBox.Text = MinerLocationDialog.FileName; // set textbox to display selected program Properties.Settings.Default["ConfigLocationVALUE"] = ConfigTextBox.Text; //Store name in settings Properties.Settings.Default["ConfigName"] = MinerLocationDialog.SafeFileName; //Store only filename in settings } }