Exemplo n.º 1
0
 public void Dispose()
 {
     MainToolBar.Dispose();
     Statusbar.Dispose();
     Menus.Dispose();
     _notifications.Dispose();
 }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化工具栏中的内容
        /// </summary>
        public void initToolBar()
        {
            List <string> groups = layoutBLL.getAllGroupName();

            for (int i = 0; i < groups.Count; i++)
            {
                IconPanel iconPanel1 = new IconPanel();

                MainToolBar.AddBand(groups[i].ToString(), iconPanel1);
                List <Outlook_Table_Jb_User> items = layoutBLL.getItemNameByGroupName(groups[i].ToString());
                table.Add(iconPanel1, items);
                for (int j = 0; j < items.Count; j++)
                {
                    Outlook_Table_Jb_User outlook = items[j];
                    iconPanel1.AddIcon(outlook.Itemname, imlMain.Images[outlook.Picname], new MouseEventHandler(PanelEvent));
                }
            }
            //if (groups.Count < 3)
            //{
            MainToolBar.SelectBand(0);
            //}
            //else
            //{
            //    MainToolBar.SelectBand(3);
            //    openWatchMain();
            //}
        }
Exemplo n.º 3
0
 protected override void OnRefreshClicked()
 {
     //Parallel.Invoke
     //(
     //    () => MainToolBar.UpdateAll(),
     //    () => ActiveLeases.ReloadFromDB(),
     //    () => InactiveLeases.ReloadFromDB()
     //);
     ActiveLeases.ReloadFromDB();
     StopBeingBusy();
     Parallel.Invoke
     (
         () => MainToolBar.UpdateAll(),
         () => InactiveLeases.ReloadFromDB()
     );
 }
        void ReleaseDesignerOutlets()
        {
            if (SchemaViewToolBarItem != null)
            {
                SchemaViewToolBarItem.Dispose();
                SchemaViewToolBarItem = null;
            }

            if (FederationViewToolBarItem != null)
            {
                FederationViewToolBarItem.Dispose();
                FederationViewToolBarItem = null;
            }

            if (BackForwardToolBarItem != null)
            {
                BackForwardToolBarItem.Dispose();
                BackForwardToolBarItem = null;
            }

            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

            if (LoggedInLabel != null)
            {
                LoggedInLabel.Dispose();
                LoggedInLabel = null;
            }

            if (RefreshToolBarItem != null)
            {
                RefreshToolBarItem.Dispose();
                RefreshToolBarItem = null;
            }

            if (SearchFieldCell != null)
            {
                SearchFieldCell.Dispose();
                SearchFieldCell = null;
            }

            if (SearchRecordsField != null)
            {
                SearchRecordsField.Dispose();
                SearchRecordsField = null;
            }

            if (SearchToolBarItem != null)
            {
                SearchToolBarItem.Dispose();
                SearchToolBarItem = null;
            }

            if (ServerToolBarItem != null)
            {
                ServerToolBarItem.Dispose();
                ServerToolBarItem = null;
            }

            if (MainToolBar != null)
            {
                MainToolBar.Dispose();
                MainToolBar = null;
            }

            if (NetworkStatus != null)
            {
                NetworkStatus.Dispose();
                NetworkStatus = null;
            }
        }