public MethodInvokeDialog(Window parent, Bus bus, string busName, ObjectPath path, IElement element)
            : base(element.Name, parent, DialogFlags.DestroyWithParent | DialogFlags.Modal)
        {
            this.Build ();
            this.SetDefaultSize (-1, -1);
            this.methodName.Text = element.Name;
            this.parent = parent;
            this.TransientFor = parent;

            try {
                BuildInterface (element);
                caller = new MethodCaller(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;
            }

            this.ShowAll ();
        }
示例#2
0
        public MethodInvokeDialog(Window parent, Bus bus, string busName, ObjectPath path, IElement element)
            : base(element.Name, parent, DialogFlags.DestroyWithParent | DialogFlags.Modal)
        {
            this.Build();
            this.SetDefaultSize(-1, -1);
            this.methodName.Text = element.Name;
            this.parent          = parent;
            this.TransientFor    = parent;

            try {
                BuildInterface(element);
                caller = new MethodCaller(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;
            }

            this.ShowAll();
        }