BioGTK  6.5.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioGTK.YesNoDialog Class Reference
Inheritance diagram for BioGTK.YesNoDialog:

Static Public Member Functions

static YesNoDialog Create (string text)
 

Protected Member Functions

 YesNoDialog (Builder builder, IntPtr handle, string text)
 

Properties

string Text [get, set]
 

Detailed Description

Definition at line 11 of file YesNoDialog.cs.

Constructor & Destructor Documentation

◆ YesNoDialog()

BioGTK.YesNoDialog.YesNoDialog ( Builder builder,
IntPtr handle,
string text )
protected

Definition at line 38 of file YesNoDialog.cs.

38 : base(handle)
39 {
40 _builder = builder;
41 builder.Autoconnect(this);
42 Text = text;
43 yesBut.ButtonPressEvent += OkBut_ButtonPressEvent;
44 noBut.ButtonPressEvent += CancelBut_ButtonPressEvent;
45 }

Member Function Documentation

◆ Create()

static YesNoDialog BioGTK.YesNoDialog.Create ( string text)
static

It creates a new ComboPicker object, which is a Gtk.Window, and returns it

Returns
A new instance of the ComboPicker class.

Definition at line 32 of file YesNoDialog.cs.

33 {
34 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/YesNoDialog.glade", FileMode.Open));
35 return new YesNoDialog(builder, builder.GetObject("yesDialog").Handle, text);
36 }

Property Documentation

◆ Text

string BioGTK.YesNoDialog.Text
getset

Definition at line 63 of file YesNoDialog.cs.

64 {
65 get
66 {
67 return textLabel.Text;
68 }
69 set
70 {
71 textLabel.Text = value;
72 }
73 }

The documentation for this class was generated from the following file: