Ejemplo n.º 1
0
        public PropertyInvokeDialog(Window parent, Bus bus, string busName, ObjectPath path, IElement element)
            : base(element.Name, parent, DialogFlags.DestroyWithParent | DialogFlags.Modal)
        {
            this.Build ();
            this.parent = parent;
            this.setAlign.HideAll ();
            this.WidthRequest = 250;
            this.HeightRequest = 150;
            this.propertyName.Text = element.Name;
            this.propertyType = Mapper.DTypeFromString (element.Data.ReturnType);

            try {
                this.caller = new PropertyCaller (bus, busName, path, element.Parent.Name, element.Name, element.Data);
            } catch (Exception e) {
                Logging.Error ("Error while creating the invocation proxy", e, parent);
                buttonExecute.Sensitive = false;
            }
        }
Ejemplo n.º 2
0
        public PropertyInvokeDialog(Window parent, Bus bus, string busName, ObjectPath path, IElement element)
            : base(element.Name, parent, DialogFlags.DestroyWithParent | DialogFlags.Modal)
        {
            this.Build();
            this.parent = parent;
            this.setAlign.HideAll();
            this.WidthRequest      = 250;
            this.HeightRequest     = 150;
            this.propertyName.Text = element.Name;
            this.propertyType      = Mapper.DTypeFromString(element.Data.ReturnType);

            try {
                this.caller = new PropertyCaller(bus, busName, path, element.Parent.Name, element.Name, element.Data);
            } catch (Exception e) {
                Logging.Error("Error while creating the invocation proxy", e, parent);
                buttonExecute.Sensitive = false;
            }
        }