Show() public method

public Show ( ) : void
return void
Ejemplo n.º 1
0
        protected QueryTermBox CreateRow(bool canDelete)
        {
            var row = new QueryTermBox(sorted_fields);

            row.ValueEntry.HeightRequest = 31;
            row.Buttons.HeightRequest    = 31;

            Resize((uint)terms.Count + 1, NColumns);
            Attach(row.FieldChooser, 0, 1, NRows - 1, NRows);
            Attach(row.OpChooser, 1, 2, NRows - 1, NRows);
            Attach(row.ValueEntry, 2, 3, NRows - 1, NRows);
            Attach(row.Buttons, 3, 4, NRows - 1, NRows);

            if (terms.Count > 0)
            {
                row.FieldChooser.Active = terms[terms.Count - 1].FieldChooser.Active;
                row.OpChooser.Active    = terms[terms.Count - 1].OpChooser.Active;
            }

            row.Show();

            row.CanDelete      = canDelete;
            row.AddRequest    += OnRowAddRequest;
            row.RemoveRequest += OnRowRemoveRequest;

            if (terms.Count == 0)
            {
                //row.FieldBox.GrabFocus ();
            }

            terms.Add(row);

            return(row);
        }
Ejemplo n.º 2
0
        protected QueryTermBox CreateRow (bool canDelete)
        {
            QueryTermBox row = new QueryTermBox (sorted_fields);

            row.ValueEntry.HeightRequest = 31;
            row.Buttons.HeightRequest = 31;

            Resize ((uint) terms.Count + 1, NColumns);
            Attach (row.FieldChooser, 0, 1, NRows - 1, NRows);
            Attach (row.OpChooser, 1, 2, NRows - 1, NRows);
            Attach (row.ValueEntry, 2, 3, NRows - 1, NRows);
            Attach (row.Buttons, 3, 4, NRows - 1, NRows);

            if (terms.Count > 0) {
                row.FieldChooser.Active = terms[terms.Count - 1].FieldChooser.Active;
                row.OpChooser.Active = terms[terms.Count - 1].OpChooser.Active;
            }

            row.Show ();

            row.CanDelete = canDelete;
            row.AddRequest += OnRowAddRequest;
            row.RemoveRequest += OnRowRemoveRequest;

            if (terms.Count == 0) {
                //row.FieldBox.GrabFocus ();
            }

            terms.Add (row);

            return row;
        }