18 private Builder _builder;
19#pragma warning disable 649
21 private Gtk.DrawingArea image;
23 private Gtk.Label label;
24#pragma warning restore 649
27 #region Constructors / Destructors
34 Builder builder =
new Builder(
new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) +
"/" +
"Glade/About.glade", FileMode.Open));
35 return new About(builder, builder.GetObject(
"about").Handle);
40 protected About(Builder builder, IntPtr handle) : base(handle)
43 builder.Autoconnect(
this);
44 string s = System.IO.Path.GetDirectoryName(Environment.ProcessPath) +
"/";
45 pixbuf =
new Pixbuf(s +
"Images/banner.jpg");
46 label.Text =
"BioGTK " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() +
" by Erik Repo, Github.com/BiologyTools/BioGTK.";
47 image.Drawn += Image_Drawn;
48 this.DeleteEvent += About_DeleteEvent;
49 App.ApplyStyles(
this);
52 private void About_DeleteEvent(
object o, DeleteEventArgs args)
64 private void Image_Drawn(
object o, DrawnArgs e)
66 Pixbuf pf = pixbuf.ScaleSimple(image.AllocatedWidth, image.AllocatedHeight, InterpType.Bilinear);
67 Gdk.CairoHelper.SetSourcePixbuf(e.Cr,pf,0,0);