// Created with MonoDevelop
//
//    QuickStep: Acquire, view and identify spectra 
//    Copyright (C) 2023. Hiperscan GmbH Dresden, Germany
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

using System;
using Glade;

namespace Hiperscan.Extensions.ReferenceCheck.View
{
    public partial class GUI
    {
        [Widget] Gtk.Button next_button = null;


        private void UpdateViewControlSection()
        {
            bool can_next = this.Control.CanNext();
            //this.next_button.Sensitive = can_next;
            this.next_button.Sensitive = can_next;
            this.next_button_eventbox.ModifyBg(Gtk.StateType.Normal,
                can_next ? new Gdk.Color(50, 205, 50) : new Gdk.Color(232, 232, 232));
        }
    }
}
