Exemplo n.º 1
0
        /// <summary>
        /// Hide all Entry widgets and clear their input values.
        /// </summary>
        private void HideAllEntryWidgets()
        {
            _processNameEntry.Text      = "";
            _processIdEntry.Text        = "";
            _memoryFiltrationEntry.Text = "";
            _cpuFiltrationEntry.Text    = "";

            // Loop through all _filtrationHBox children and remove all of them but 'GtkComboBox'
            _filtrationHBox.Foreach(widget =>
            {
                if (widget.Name != "GtkComboBox")
                {
                    _filtrationHBox.Remove(widget);
                }
            });
        }