private void FormatControlFinishedLoading()
        {
            BindingFormattingDialog dialog  = null;
            FormatStringDialog      dialog2 = null;

            for (Control control = base.Parent; control != null; control = control.Parent)
            {
                dialog  = control as BindingFormattingDialog;
                dialog2 = control as FormatStringDialog;
                if ((dialog != null) || (dialog2 != null))
                {
                    break;
                }
            }
            if (dialog2 != null)
            {
                dialog2.FormatControlFinishedLoading();
            }
        }
示例#2
0
        // This method tells the FormatStringDialog that the FormatControl is loaded and resized.
        private void FormatControlFinishedLoading()
        {
            FormatStringDialog fsd = null;
            Control            ctl = Parent;

            while (ctl != null)
            {
                fsd = ctl as FormatStringDialog;

                if (fsd != null)
                {
                    break;
                }

                ctl = ctl.Parent;
            }

            if (fsd != null)
            {
                fsd.FormatControlFinishedLoading();
            }
        }