void AddItem (string label) { GMailDockItem it = new GMailDockItem (label, this); items.Add (it); SetItems (); }
void AddItem(string label) { GMailDockItem it = new GMailDockItem(label, this); items.Add(it); SetItems(); }
public GMailLabel (string labelName) { if (labelName == GMailDockItem.DefaultLabel) ShowActionButton = false; Name = labelName; item = GMailItemProvider.items.First (adi => (adi as GMailDockItem).Atom.CurrentLabel == labelName) as GMailDockItem; Icon = "gmail"; if (item != null) { item.IconUpdated += HandleItemIconUpdated; SetIcon (item); } }
public GMailLabel(string labelName) { if (labelName == GMailDockItem.DefaultLabel) { ShowActionButton = false; } Name = labelName; item = GMailItemProvider.items.First(adi => (adi as GMailDockItem).Atom.CurrentLabel == labelName) as GMailDockItem; Icon = "gmail"; if (item != null) { item.IconUpdated += HandleItemIconUpdated; SetIcon(item); } }
void SetIcon (GMailDockItem item) { Icon = item.Icon; HueShift = item.HueShift; }
void SetIcon(GMailDockItem item) { Icon = item.Icon; HueShift = item.HueShift; }