Esempio n. 1
0
 /// <summary>
 /// Forces the <see cref="ConfigHandler"/> to load the <see cref="Config"/> from file.
 /// </summary>
 /// <param name="sender">The sending object (Typically a <see cref="Button"/>).</param>
 /// <param name="e">The event arguments.</param>
 private void LoadConfig_Button_Click(object sender, EventArgs e) => Invoke((MethodInvoker) delegate { ConfigHandler.ReadConfig(); });
Esempio n. 2
0
 /// <summary>
 /// Get if the <see cref="largeImage_TextBox"/> changed.
 /// Doesn't do anything special other than set the <see cref="Config.Information.LargeImage"/> value.
 /// </summary>
 /// <param name="sender">The sending object (Typically a <see cref="TextBox"/>).</param>
 /// <param name="e">The event arguments.</param>
 private void LargeImage_TextBox_TextChanged(object sender, EventArgs e) => Invoke((MethodInvoker) delegate
 {
     ConfigHandler.SetValue(ref ConfigHandler.config.GetImages().LargeImage, largeImage_TextBox.Text);
 });
Esempio n. 3
0
 /// <summary>
 /// Get if the <see cref="smallImageTooltip_TextBox"/> changed.
 /// Doesn't do anything special other than set the <see cref="Config.Information.SmallImageTooltip"/> value.
 /// </summary>
 /// <param name="sender">The sending object (Typically a <see cref="TextBox"/>).</param>
 /// <param name="e">The event arguments.</param>
 private void SmallImageTooltip_TextBox_TextChanged(object sender, EventArgs e) => Invoke((MethodInvoker) delegate
 {
     ConfigHandler.SetValue(ref ConfigHandler.config.GetImages().SmallImageTooltip, smallImageTooltip_TextBox.Text);
 });
Esempio n. 4
0
 /// <summary>
 /// Get if the <see cref="state_TextBox"/> changed.
 /// Doesn't do anything special other than set the <see cref="Config.Information.State"/> value.
 /// </summary>
 /// <param name="sender">The sending object (Typically a <see cref="TextBox"/>).</param>
 /// <param name="e">The event arguments.</param>
 private void State_TextBox_TextChanged(object sender, EventArgs e) => Invoke((MethodInvoker) delegate
 {
     ConfigHandler.SetValue(ref ConfigHandler.config.GetInformation().State, state_TextBox.Text);
 });