示例#1
0
        public LicenceExpiredDialog(string message)
        {
            this.Build();

            Gtk.Image image1 = new Gtk.Image(MainClass.Tools.GetIconFromStock("logo74.png", Gtk.IconSize.Dialog));

            image1.SetPadding(2,2);
            hbox1.PackStart(image1, false, false, 0);

            Gtk.Label lblMessage = new Gtk.Label("<b>"+message+"</b>");
            lblMessage.UseMarkup = true;
            hbox1.PackEnd(lblMessage, true ,true, 0);
            ShowAll ();

            while (Gtk.Application.EventsPending ())
                Gtk.Application.RunIteration ();
        }
示例#2
0
        public LicenceExpiredDialog(string message)
        {
            this.Build();

            Gtk.Image image1 = new Gtk.Image(MainClass.Tools.GetIconFromStock("logo74.png", Gtk.IconSize.Dialog));


            image1.SetPadding(2, 2);
            hbox1.PackStart(image1, false, false, 0);


            Gtk.Label lblMessage = new Gtk.Label("<b>" + message + "</b>");
            lblMessage.UseMarkup = true;
            hbox1.PackEnd(lblMessage, true, true, 0);
            ShowAll();

            while (Gtk.Application.EventsPending())
            {
                Gtk.Application.RunIteration();
            }
        }