Skip to content

Commit

Permalink
Merge pull request #24 from Sogolumbo/developement
Browse files Browse the repository at this point in the history
Developement
  • Loading branch information
Sogolumbo authored Jun 20, 2020
2 parents 0f6e154 + dbbea0d commit 6679c43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Music_Book_Index_Search/MusicBookItemUserControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ private void MusicBookItemUserControl_FontChanged(object sender, EventArgs e)
SetTitleFont();
}

private void SetRemoveButtonLocation()
{
removeButton.Location = new Point(Width - removeButton.Width - 6, (Height - removeButton.Height)/2);
}

public event EventHandler<RemoveItemEventArgs> RemoveItem;

private Tuple<string, string> _filepair;
Expand All @@ -50,6 +55,11 @@ private void removeButton_Click(object sender, EventArgs e)
{
RemoveItem?.Invoke(this, new RemoveItemEventArgs(_filepair));
}

private void MusicBookItemUserControl_Resize(object sender, EventArgs e)
{
SetRemoveButtonLocation();
}
}

public class RemoveItemEventArgs : EventArgs
Expand Down
4 changes: 2 additions & 2 deletions Music_Book_Index_Search/OptionsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6679c43

Please sign in to comment.