예제 #1
0
        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;
        }
예제 #2
0
        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;
        }