Stetic.SteticMain.OnSelectionChanged C# (CSharp) Method

OnSelectionChanged() static private method

static private OnSelectionChanged ( object s, Stetic.ComponentEventArgs args ) : void
s object
args Stetic.ComponentEventArgs
return void
        static void OnSelectionChanged(object s, ComponentEventArgs args)
        {
            if (args.Component == null)
                return;
            WidgetInfo wi = Project.GetWidget (args.Component.Name);
            if (wi != null && IsWindowOpen (wi))
                OpenWindow (wi);
        }