Habanero.Faces.Win.FormWin.FormWin C# (CSharp) Method

FormWin() public method

public FormWin ( ) : System
return System
        public FormWin()
            :base()
        {
            if (GlobalUIRegistry.UIStyleHints != null) 
            {
                var resourceName = GlobalUIRegistry.UIStyleHints.FormHints.DefaultIconResourceName;
                if (resourceName != null)
                    this.SetIcon(resourceName);
            }
            this.ParentChanged += (sender, e) =>
                {
                    if (GlobalUIRegistry.UIStyleHints != null)
                    {
                        var iconResourceName = GlobalUIRegistry.UIStyleHints.FormHints.MDIChildIconResourceName ?? GlobalUIRegistry.UIStyleHints.FormHints.DefaultIconResourceName;
                        if (iconResourceName != null)
                            this.SetIcon(iconResourceName);
                    }
                };
            this.Load += (sender, e) =>
                {
                    this.BindDefaultActions(this);
                };
        }