public ResourceControlBar()
        {
            Layout = Gtk.ButtonBoxStyle.Start;
            Spacing = 10;

            AddResourceButton = new AddResourceButton ();
            RemoveResourceButton = new RemoveResourceButton ();
            FilterEntry = new Gtk.Entry ();

            AddResourceButton.Clicked += (sender, e) => OnAddResource (this, e);
            RemoveResourceButton.Clicked += (sender, e) => OnRemoveResource (this, e);

            PackStart (AddResourceButton, false, false, 10);
            PackStart (RemoveResourceButton, false, false, 10);
            PackEnd (FilterEntry);
        }
示例#2
0
        public ResourceControlBar()
        {
            Layout  = Gtk.ButtonBoxStyle.Start;
            Spacing = 10;

            AddResourceButton    = new AddResourceButton();
            RemoveResourceButton = new RemoveResourceButton();
            FilterEntry          = new Gtk.Entry();

            AddResourceButton.Clicked    += (sender, e) => OnAddResource(this, e);
            RemoveResourceButton.Clicked += (sender, e) => OnRemoveResource(this, e);

            PackStart(AddResourceButton, false, false, 10);
            PackStart(RemoveResourceButton, false, false, 10);
            PackEnd(FilterEntry);
        }