Stetic.ErrorWidget.Init C# (CSharp) Method

Init() private method

private Init ( string message, string id ) : void
message string
id string
return void
        void Init(string message, string id)
        {
            Gtk.Label lab = new Gtk.Label ();
            lab.Markup = "<b><span foreground='red'>" + message + "</span></b>";
            this.CanFocus = false;
            Add (lab);
            this.ShadowType = Gtk.ShadowType.In;
            ShowAll ();
            if (id != null && id.Length > 0)
                Name = id;
        }