public SparkleAbout()
{
Title = "About SparkleShare";
ResizeMode = ResizeMode.NoResize;
Height = 288;
Width = 720;
Icon = SparkleUIHelpers.GetImageSource("sparkleshare-app", "ico");
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Closing += Close;
CreateAbout ();
Controller.ShowWindowEvent += delegate {
Dispatcher.BeginInvoke ((Action) delegate {
Show ();
Activate ();
BringIntoView ();
});
};
Controller.HideWindowEvent += delegate {
Dispatcher.BeginInvoke ((Action) delegate {
Hide ();
});
};
Controller.UpdateLabelEvent += delegate (string text) {
Dispatcher.BeginInvoke ((Action) delegate {
this.updates.Content = text;
this.updates.UpdateLayout ();
});
};
}