/// <summary> /// Показываем иконку /// </summary> /// <param name="ico"></param> private void ShowToolIcon(ShowIcons ico) { Icon cIco; cIco = Properties.Resources.greenOk; switch (ico) { case ShowIcons.Arrow: cIco = Properties.Resources.Transfer; break; case ShowIcons.GreenOk: cIco = Properties.Resources.greenOk; break; case ShowIcons.Green: cIco = Properties.Resources.Yellow; break; case ShowIcons.Yellow: cIco = Properties.Resources.Orange; break; case ShowIcons.Orange: cIco = Properties.Resources.DarkOrange; break; case ShowIcons.Red: cIco = Properties.Resources.Red; break; case ShowIcons.RedMinus: cIco = Properties.Resources.redMinus; break; } try { TrayIcon.Icon = cIco; } catch {}; }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = (Reinstall ?? "").GetHashCode(); result = (result * 397) ^ ReinstallArgs?.GetHashCode() ?? 0; result = (result * 397) ^ ShowIcons?.GetHashCode() ?? 0; result = (result * 397) ^ ShowIconsArgs?.GetHashCode() ?? 0; result = (result * 397) ^ HideIcons?.GetHashCode() ?? 0; result = (result * 397) ^ HideIconsArgs?.GetHashCode() ?? 0; return(result); } }