Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 void OnProjectReloaded(object s, EventArgs args)
 {
     rootWidget.Changed -= OnChanged;
     rootWidget          = gproject.GetWidget(name);
     if (rootWidget != null)
     {
         rootWidget.Changed += OnChanged;
     }
 }