// ============================================ // PUBLIC Constructors // ============================================ public ViewerWindow() : base("Download/Upload Viewer") { // Initialize Window SetDefaultSize(440, 300); // Initialize VBox this.vbox = new Gtk.VBox(false, 2); this.Add(this.vbox); // Initialize Notebook this.notebook = new Gtk.Notebook(); this.notebook.ShowTabs = true; this.notebook.Scrollable = true; this.vbox.PackStart(this.notebook, true, true, 2); // Add Download Viewer this.tabDownloads = new TabLabel("<b>Downloads</b>", StockIcons.GetImage("Download", 22)); this.tabDownloads.Button.Sensitive = false; this.downloadViewer = new DownloadViewer(); this.notebook.AppendPage(this.downloadViewer, this.tabDownloads); // Add Uploads Viewer this.tabUploads = new TabLabel("<b>Uploads</b>", StockIcons.GetImage("Upload", 22)); this.tabUploads.Button.Sensitive = false; this.uploadViewer = new UploadViewer(); this.notebook.AppendPage(this.uploadViewer, this.tabUploads); // HButton Box this.hButtonBox = new Gtk.HButtonBox(); this.hButtonBox.Spacing = 4; this.hButtonBox.Layout = ButtonBoxStyle.End; this.hButtonBox.LayoutStyle = ButtonBoxStyle.End; this.vbox.PackStart(this.hButtonBox, false, false, 2); Gtk.Button button; button = new Gtk.Button(Gtk.Stock.Clear); button.Clicked += new EventHandler(OnButtonClear); this.hButtonBox.PackStart(button, false, false, 2); // Show All this.ShowAll(); }