Ejemplo n.º 1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     foreach (Form form in MdiChildren)
     {
         ThreadUpdateForm tf = form as ThreadUpdateForm;
         if (tf != null)
         {
             tf.StopThread();
         }
     }
     base.OnClosing(e);
 }
Ejemplo n.º 2
0
        private void ribbonControl1_Merge(object sender, DevExpress.XtraBars.Ribbon.RibbonMergeEventArgs e)
        {
            if (e.MergedChild.StatusBar != null)
            {
                this.ribbonStatusBar1.MergeStatusBar(e.MergedChild.StatusBar);
            }
            ThreadUpdateForm form = ActiveMdiChild as ThreadUpdateForm;

            if (form != null)
            {
                form.OnRibbonMerged(this.ribbonControl1);
            }
        }