Пример #1
0
        private void simpleButton5_Click(object sender, EventArgs e)
        {
            AddPanel = new XtraMessageBoxForm();
            AddPanel.StartPosition = FormStartPosition.CenterScreen;

            BasicInfoTelephoneAdd UserControl = new BasicInfoTelephoneAdd();

            AddPanel.Width  = (UserControl.Width + 16);
            AddPanel.Height = UserControl.Height;
            AddPanel.Controls.Add(UserControl);
            AddPanel.Show();
        }
        private void simpleButton5_Click(object sender, EventArgs e)
        {
            AddPanel = new XtraMessageBoxForm();
            AddPanel.StartPosition = FormStartPosition.CenterScreen;

            BasicInfoTelephoneAdd UserControl = new BasicInfoTelephoneAdd();
            AddPanel.Width = (UserControl.Width + 16);
            AddPanel.Height = UserControl.Height;
            AddPanel.Controls.Add(UserControl);
            AddPanel.Show();
        }