예제 #1
0
        public void LastMessageSet()
        {
            frmBaseForm parent = this.ParentForm as frmBaseForm;

            if (parent == null)
            {
                return;
            }

            LastMessageError = parent.LastMessageError;
            LastMessage      = parent.LastMessage;
        }
예제 #2
0
        void subBaseForm_ParentChanged(object sender, EventArgs e)
        {
            try
            {
                frmBaseForm frm = ((MdiClient)Parent).TopLevelControl as frmBaseForm;

                if (frm == null)
                {
                    return;
                }

                frm.frmBaseForm_ControlAdded(this, null);
            }
            catch { }
        }