void OnDockButtonClicked(object o, EventArgs args) { DockItem item = ((DockBarButton)o).DockItem; item.DockBar = null; item.ShowItem(); item.Master.Controller.QueueResize(); }
void ShowToggledCb(object sender, ToggledArgs a) { TreeIter iter; if (itemsModel.GetIterFromString(out iter, a.Path)) { bool show = (bool)itemsModel.GetValue(iter, SHOW_COL); DockItem item = itemsModel.GetValue(iter, ITEM_COL) as DockItem; if (show) { item.HideItem(); } else { item.ShowItem(); } UpdateItemsModel(); } }