Example #1
0
        public virtual IConfigUIInterface Config()
        {
            if (this.AddinsInfo == null || string.IsNullOrEmpty(this.AddinsInfo.ConfigUI))
            {
                return(null);
            }
            IConfigUIInterface ui = GlobalInstanceManager <IConfigUIInterface> .ReflectInstance(this.AddinsInfo.ConfigUI.Split(':')[0], this.AddinsInfo.ConfigUI.Split(':')[1]);

            ui.SetJobInfo(this);
            return(ui);
        }
Example #2
0
        private void WatchConfigFrm(JobInfo info)
        {
            if (info == null)
            {
                return;
            }
            if (GlobalInstanceManager <FollowMainWinHelper> .Intance.IsExistsKey(info.GuId.ToString()))
            {
                GlobalInstanceManager <FollowMainWinHelper> .Intance.SetTopMost(info.GuId.ToString());
            }
            else
            {
                IConfigUIInterface frm = info.Config();
                if (frm == null)
                {
                    return;
                }
                GlobalInstanceManager <FollowMainWinHelper> .Intance.AddWinHandle(info.GuId.ToString(), (IntPtr)frm.UIIndex);

                GlobalInstanceManager <FollowMainWinHelper> .Intance.MoveWinByKey(info.GuId.ToString());

                frm.ShowConfig();
            }
        }