コード例 #1
0
            /// <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;
            }
コード例 #2
0
ファイル: PivotTableView.cs プロジェクト: mpandreucci/ApsimX
            /// <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;
            }