// ============================================ // PRIVATE Members // ============================================ // ============================================ // PUBLIC Constructors // ============================================ public NetworkViewer() { // Initialize Scrolled Window BorderWidth = 0; ShadowType = ShadowType.EtchedIn; SetPolicy(PolicyType.Automatic, PolicyType.Automatic); // Initialize Network Store this.store = new NetworkStore(); // Initialize Icon View iconView = new IconView(store); iconView.TextColumn = NetworkStore.COL_NAME; iconView.PixbufColumn = NetworkStore.COL_PIXBUF; iconView.SelectionMode = SelectionMode.Single; // Initialize Icon View Events iconView.ItemActivated += new ItemActivatedHandler(OnItemActivated); iconView.ButtonPressEvent += new ButtonPressEventHandler(OnItemClicked); // Initialize Icon View Drag & Drop iconView.EnableModelDragDest(Dnd.TargetTable, Gdk.DragAction.Copy); iconView.DragDataReceived += new DragDataReceivedHandler(OnDragDataReceived); // Add IconView to ScrolledWindow Add(iconView); }