Exemplo n.º 1
0
        private void pnlTab_SelectedPanelChanged(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
        {
            try
            {
                Application.UseWaitCursor = true;
                Application.DoEvents();
                switch (e.Panel.Name)
                {
                case "pnlBrowseFiles":
                    if (firstBrowse && fmCurrent != null)
                    {
                        ucBrowse1.LoadRoot(Atmng, fmCurrent.CurrentFileId, false, false, false);
                        firstBrowse = false;
                    }

                    break;

                case "pnlXRefs":
                    SetShortcutsXrefs();
                    break;
                }
            }
            catch (Exception x)
            {
                UIHelper.HandleUIException(x);
            }
            finally { Application.UseWaitCursor = false; }
        }
Exemplo n.º 2
0
 private void uiPanelManager1_PanelClosedChanged(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
 {
     try
     {
         this.Close();
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Exemplo n.º 3
0
 private void uiPanelManager1_PanelClosedChanged(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
 {
     try
     {
         if (e.Panel.Name == "pnlChildren" && e.Panel.Closed && cmdToggleSubFiles.IsChecked)
         {
             cmdToggleSubFiles.IsChecked = false;
             AtMng.OfficeMng.GetOfficerPrefs().SetPref(OfficerPrefsBE.LawMateExplorerShowSubFiles, cmdToggleSubFiles.IsChecked);
             //UIHelper.SaveSetting("ShowSubFilesInLawMateExplorer", cmdToggleSubFiles.IsChecked.ToString());
         }
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Exemplo n.º 4
0
        private void uiPanelManager1_PanelActivated(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
        {
            try
            {
                LoadPreview = true;

                //if (e.Panel == pnlPreview)
                //    LoadPreview = true;
                //if (e.Panel == pnlDetail)
                //    LoadPreview = false;
            }
            catch (Exception x)
            {
                UIHelper.HandleUIException(x);
            }
        }
Exemplo n.º 5
0
 private void uiPanelManager1_PanelActivated(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
 {
     if (e.Panel.Name == pnlMyFiles.Name)
     {
         PanelDisplayHandler(true);
     }
     else if (e.Panel.Name == pnlSearch.Name)
     {
         PanelDisplayHandler(true);
         ebSearchFor.Focus();
         ebSearchFor.SelectAll();
     }
     else if (e.Panel.Name == pnlBrowseSelect.Name)
     {
         PanelDisplayHandler(false);
     }
     else if (e.Panel.Name == pnlActiveFiles.Name)
     {
         PanelDisplayHandler(false);
     }
 }
Exemplo n.º 6
0
 private void uiPanelManager1_PanelActivated(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
 {
     try
     {
         if (e.Panel.Name == pnlBrowseSelect.Name)
         {
             panelDisplayHandler(Properties.Resources.Browse, Properties.Resources.folder);
         }
         else if (e.Panel.Name == pnlSearch.Name)
         {
             panelDisplayHandler(Properties.Resources.DocBrowseSearchCaption, Properties.Resources.search);
             ebSearchFor.Focus();
             if (cbSearchType.SelectedItem == null)
             {
                 cbSearchType.SelectedIndex = 2;
             }
         }
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Exemplo n.º 7
0
 private void uiPanel0_SelectedPanelChanged(object sender, Janus.Windows.UI.Dock.PanelActionEventArgs e)
 {
 }