-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form2.cs
31 lines (26 loc) · 916 Bytes
/
Form2.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Windows.Forms;
using EzLaunchr.Properties;
namespace EzLaunchr
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
this.Opacity = (double)Settings.Default["FormOpacity"];
opacitySlider.Value = (int)Settings.Default["OpacitySliderPosition"];
}
private void addEntryButton_Click(object sender, EventArgs e)
{
LinkButton buttonToAdd = new LinkButton(linkTextBox.Text, descriptionTextBox.Text);
Form1.form1.flowLayoutPanel.Controls.Add(buttonToAdd);
}
private void opacitySlider_Scroll(object sender, EventArgs e)
{
this.Opacity = (opacitySlider.Value / 10f);
Settings.Default["FormOpacity"] = this.Opacity;
Settings.Default["OpacitySliderPosition"] = opacitySlider.Value;
}
}
}