/// <summary> /// Constructor for the ViewBox /// </summary> /// <param name="name">The name of the viewbox</param> /// <param name="parent">The parent view</param> /// <param name="builder">The Gtk.Builder used to construct the ComboBox</param> public ViewBox(string gladeObject, PivotTableView parent, Builder builder) { this.parent = parent; box = (ComboBox)builder.GetObject(gladeObject); AddRenderer(box); Changed += parent.OnInvokeUpdate; box.Changed += OnChanged; }
/// <summary> /// Constructor for the ViewBox /// </summary> /// <param name="name">The name of the viewbox</param> /// <param name="parent">The parent view</param> /// <param name="builder">The Gtk.Builder used to construct the ComboBox</param> public ViewBox(string name, PivotTableView parent, Builder builder) { Name = name; this.parent = parent; box = (ComboBox)builder.GetObject($"{name.ToLower()}box"); AddRenderer(box); Changed += parent.OnInvokeUpdate; box.Changed += OnChanged; }