Created
July 14, 2018 15:36
-
-
Save vivainio/c23a7545e613674e5a4553b4976dbad6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows.Forms; | |
using TrivialBehind; | |
namespace MathManDesign | |
{ | |
public partial class MathManForm: Form | |
{ | |
public MathManForm() | |
{ | |
InitializeComponent(); | |
// boilerplate starts | |
var disposer = TrivialBehinds.CreateBehind(this, new MathManUi | |
{ | |
button1 = button1, | |
label1 = label1 | |
}); | |
this.FormClosed += (o,e) => | |
disposer.Dispose(); | |
// boilerplate ends | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment