private void toolTipTimer_Tick(object sender, EventArgs e) { toolTipTimer.Stop(); toolTip = new ItemToolTipForm(this); HabProperties hpsItem = toolTipItem as HabProperties; switch (combineMode) { case CombineMode.Fast: List <HabProperties> hpsList = FindSameLookingComplexItem(hpsItem); if (hpsList.Count == 0) { toolTip.showItemToolTip(hpsItem, false); } else { toolTip.showComplexItemToolTip(hpsItem, GetGoldCost(hpsList[0])); } break; default: toolTip.showItemToolTip(hpsItem, false); break; } }
protected void CloseToolTip() { if (toolTip != null) { toolTip.Close(); toolTip = null; toolTipItem = null; } }
private void toolTipTimer_Tick(object sender, EventArgs e) { toolTipTimer.Stop(); toolTip = new ItemToolTipForm(this); if (toolTipItem is HabProperties) { toolTip.showHeroToolTip(toolTipItem as HabProperties); } }