private void CreateAbout() {
using (var a = new NSAutoreleasePool()) {
string about_image_path = UIHelpers.GetImagePathname("about");
this.about_image = new NSImage(about_image_path) {
Size = new SizeF(640, 260)
};
this.about_image_view = new NSImageView() {
Image = this.about_image,
Frame = new RectangleF(0, 0, 640, 260)
};
this.version_text_field = new NSTextField() {
StringValue = string.Format(Properties_Resources.Version, Controller.RunningVersion, Controller.CreateTime.GetValueOrDefault().ToString("d")),
Frame = new RectangleF(295, 140, 318, 22),
BackgroundColor = NSColor.White,
Bordered = false,
Editable = false,
DrawsBackground = false,
TextColor = NSColor.FromCalibratedRgba(0.45f, 0.62f, 0.81f, 1.0f),
Font = NSFontManager.SharedFontManager.FontWithFamily("Lucida Grande", NSFontTraitMask.Unbold, 0, 11)
};
this.credits_text_field = new NSTextField() {
StringValue = @"Copyright © 2013-" + DateTime.Now.Year + " GRAU DATA AG, Hylke Bons and others." +
"\n" +
"\n" +
"DataSpace Sync is Open Source software. You are free to use, modify, and redistribute it " +
"under the GNU General Public License version 3 or later.",
Frame = new RectangleF(295, Frame.Height - 260, 318, 98),
TextColor = NSColor.FromCalibratedRgba(0.45f, 0.62f, 0.81f, 1.0f),
DrawsBackground = false,
Bordered = false,
Editable = false,
Font = NSFontManager.SharedFontManager.FontWithFamily("Lucida Grande", NSFontTraitMask.Unbold, 0, 11),
};
ContentView.AddSubview(this.about_image_view);
ContentView.AddSubview(this.version_text_field);
ContentView.AddSubview(this.credits_text_field);
}
}