public void UpdateIcon(Icon icon) { if (ConfigurationService.GeneralSettings.UpdateMainWindowIcon == false) { return; } if (InvokeRequired) { Delegate del = new UpdateIconDelegate(UpdateIcon); MainForm.Instance.BeginInvoke(del, icon); return; } this.Icon = icon; }
public void UpdateIcon(Icon icon) { if (ConfigurationService.GeneralSettings.UpdateMainWindowIcon == false) return; if (InvokeRequired) { Delegate del = new UpdateIconDelegate(UpdateIcon); MainForm.Instance.BeginInvoke(del, icon); return; } this.Icon = icon; }