Exemplo n.º 1
0
        private bool GetMessages()
        {
            List <Messages> showMs = Messages.GetMessages();

            if (showMs.Count > 0)
            {
                TaskbarForm.ShowForm(FrmMain, showMs);
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 获得唯一的实例
 /// </summary>
 /// <returns></returns>
 public static TaskbarForm GetInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         lock (syncRoot)
         {
             if (instance == null || instance.IsDisposed)
             {
                 instance = new TaskbarForm();
             }
         }
     }
     return(instance);
 }
Exemplo n.º 3
0
        /// <summary>
        /// 关闭所有打开界面
        /// </summary>
        public void CloseAllForm()
        {
            List <BaseItem> formlist = new List <BaseItem>();

            for (int i = 0; i < this.barMainContainer.Items.Count; i++)
            {
                formlist.Add(this.barMainContainer.Items[i]);
            }

            foreach (var item in formlist)
            {
                this.barMainContainer.Items.Remove(item);
            }

            AppPluginManageExtension.InitAllWinformController(); //初始化所有控制器
            TaskbarForm.Close();                                 //关闭通知
        }
Exemplo n.º 4
0
 public void ShowMessageForm()
 {
     TaskbarForm.ShowForm(this);
 }