19 private Builder _builder;
20#pragma warning disable 649
22 private Gtk.DrawingArea image;
24 private Gtk.Label label;
25#pragma warning restore 649
28 #region Constructors / Destructors
35 Builder builder =
new Builder(
new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) +
"/" +
"Glade/About.glade", FileMode.Open));
36 return new About(builder, builder.GetObject(
"about").Handle);
41 protected About(Builder builder, IntPtr handle) : base(handle)
44 builder.Autoconnect(
this);
45 string s = System.IO.Path.GetDirectoryName(Environment.ProcessPath) +
"/";
46 pixbuf =
new Pixbuf(s +
"Images/banner.jpg");
47 label.Text =
"Bio-Formats version:" + loci.formats.FormatTools.VERSION +
" , BioGTK " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() +
" by Erik Repo, Github.com/BiologyTools/BioGTK.";
48 image.Drawn += Image_Drawn;
49 this.DeleteEvent += About_DeleteEvent;
50 App.ApplyStyles(
this);
53 private void About_DeleteEvent(
object o, DeleteEventArgs args)
65 private void Image_Drawn(
object o, DrawnArgs e)
67 Pixbuf pf = pixbuf.ScaleSimple(image.AllocatedWidth, image.AllocatedHeight, InterpType.Bilinear);
68 Gdk.CairoHelper.SetSourcePixbuf(e.Cr,pf,0,0);