Esempio n. 1
0
 /// <inheritdoc/>
 public override void Invoke()
 {
     if (Designer.ActiveReportTab != null)
     {
         Designer.CloseDocument(ActiveReportTab);
     }
     else if (Designer.StartPage != null)
     {
         Designer.CloseDocument(Designer.StartPage);
     }
 }
Esempio n. 2
0
        /// <inheritdoc/>
        public override void Invoke()
        {
            int i = 0;

            while (i < Designer.Documents.Count)
            {
                DocumentWindow c = Designer.Documents[i];
                if (c is StartPageTab || !Designer.CloseDocument(c))
                {
                    i++;
                }
            }
        }