Skip to content

Commit

Permalink
Added skin change on double click
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQwertiest committed Aug 17, 2017
1 parent 9c05614 commit 844fcea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions foo_title/fooTitle/Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ private void InitializeComponent() {
this.skinsList.TabIndex = 0;
this.skinsList.UseCompatibleStateImageBehavior = false;
this.skinsList.View = System.Windows.Forms.View.Details;
this.skinsList.DoubleClick += new System.EventHandler(this.skinsList_DoubleClick);
this.skinsList.DoubleBuffered(true);
//
// nameColumn
Expand Down Expand Up @@ -1183,6 +1184,11 @@ private void Properties_HandleDestroyed(object sender, EventArgs e) {
IsOpen = false;
}

private void skinsList_DoubleClick(object sender, EventArgs e)
{
applySkinBtn_Click(null, null);
}

private void applySkinBtn_Click(object sender, EventArgs e) {
if (skinsList.SelectedItems.Count == 0) {
return;
Expand Down

0 comments on commit 844fcea

Please sign in to comment.