Ejemplo n.º 1
0
        /// <summary>
        /// Окно статуса подключения.
        /// </summary>
        //private ConnectStatus ConnectStatusForm { get; set; }

        /// <summary>
        /// Показ формы состояния подключения к серверу.
        /// </summary>
        private void ShowStatusConnectionForm()
        {
            GlobalDefault.ShowForm(ref StatusConnectDocumentPanel, "Статус подключения к серверу", "/WebControl;component/Forms/ConnectStatus.xaml", new Size(250, 120), false);

            /*
             * if (StatusConnectDocumentPanel == null)
             * {
             *  Uri uri = new Uri("/WebControl;component/Forms/ConnectStatus.xaml", UriKind.Relative);
             *  StatusConnectDocumentPanel = dockManager.DockController.AddDocumentPanel(new Point(500, 500), new Size(250, 120), uri);
             *  StatusConnectDocumentPanel.Caption = "Статус подключения к серверу";
             *  //ConnectStatusForm = (ConnectStatus)StatusConnectDocumentPanel.Control;
             *
             *  dockManager.Activate(StatusConnectDocumentPanel);
             *  dockManager.DockController.Float(StatusConnectDocumentPanel);
             *  //StatusConnectDocumentPanel.MDILocation = new Point(500, 500);
             * }
             * else
             * {
             *  if (StatusConnectDocumentPanel.Closed)
             *  {
             *      dockManager.DockController.Restore(StatusConnectDocumentPanel);
             *      dockManager.Activate(StatusConnectDocumentPanel);
             *  }
             * }
             */
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Показ формы детализации.
 /// </summary>
 public void ShowDetail()
 {
     if (Item != null &&
         Global.Default.DockManager != null &&
         Global.Default.DocumentContainer != null)
     {
         GlobalDefault.ShowForm(ref DetailDocumentPanel, Item.Description, "/WebControl;component/Forms/DetailForm.xaml", new Size(420, 430), true, this);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Показ форма тренда.
 /// </summary>
 public void ShowTrend()
 {
     if (Item != null &&
         Item.Trend &&
         Global.Default.DockManager != null &&
         Global.Default.DocumentContainer != null)
     {
         GlobalDefault.ShowForm(ref TrendDocumentPanel, Item.Description, "/WebControl;component/Forms/TrendForm.xaml", new Size(700, 400), true, this);
     }
 }