Exemple #1
0
 /// <summary>Constructor</summary>
 public ListButtonView(ViewBase owner) : base(owner)
 {
     vbox               = new VBox(false, 0);
     _mainWidget        = vbox;
     buttonPanel        = new HButtonBox();
     buttonPanel.Layout = ButtonBoxStyle.Start;
     listboxView        = new ListBoxView(this);
     scrolledwindow1    = new ScrolledWindow();
     scrolledwindow1.Add(listboxView.MainWidget);
     vbox.PackStart(buttonPanel, false, true, 0);
     vbox.PackStart(scrolledwindow1, true, true, 0);
     _mainWidget.ShowAll();
 }
Exemple #2
0
 /// <summary>Constructor</summary>
 public ListButtonView(ViewBase owner)
     : base(owner)
 {
     vbox = new VBox(false, 0);
     _mainWidget = vbox;
     buttonPanel = new HBox();
     // buttonPanel.Layout = ButtonBoxStyle.Start;
     listboxView = new ListBoxView(this);
     scrolledwindow1 = new ScrolledWindow();
     scrolledwindow1.Add(listboxView.MainWidget);
     vbox.PackStart(buttonPanel, false, true, 0);
     vbox.PackStart(scrolledwindow1, true, true, 0);
     _mainWidget.ShowAll();
 }
Exemple #3
0
        /// <summary>Constructor</summary>
        public ListButtonView(ViewBase owner) : base(owner)
        {
            vbox        = new VBox(false, 0);
            mainWidget  = vbox;
            buttonPanel = new HBox();
            // buttonPanel.Layout = ButtonBoxStyle.Start;
            filterPanel = new HBox();
            Label filterLabel = new Label("Search: ");

            filterEntry = new Entry();
            filterPanel.PackStart(filterLabel, false, false, 0);
            filterPanel.PackStart(filterEntry, false, true, 0);
            filterEntry.Changed += OnFilterChanged;
            listboxView          = new ListBoxView(this);
            scrolledwindow1      = new ScrolledWindow();
            scrolledwindow1.Add(listboxView.MainWidget);
            vbox.PackStart(filterPanel, false, true, 0);
            vbox.PackStart(buttonPanel, false, true, 0);
            vbox.PackStart(scrolledwindow1, true, true, 0);
            mainWidget.ShowAll();
            mainWidget.Destroyed += _mainWidget_Destroyed;
        }