Exemplo n.º 1
0
        public frmItemContent()
        {
            HCTextItem.HCDefaultTextItemClass     = typeof(DeItem);
            HCDomainItem.HCDefaultDomainItemClass = typeof(DeGroup);

            InitializeComponent();
            this.ShowInTaskbar = false;

            if (FEmrEdit == null)
            {
                FEmrEdit = new HCEmrEdit();
                this.pnlEdit.Controls.Add(FEmrEdit);
                FEmrEdit.Dock = DockStyle.Fill;
                FEmrEdit.Show();
            }
        }
Exemplo n.º 2
0
        public frmItemContent()
        {
            HCTextItem.HCDefaultTextItemClass     = typeof(DeItem);
            HCDomainItem.HCDefaultDomainItemClass = typeof(DeGroup);

            InitializeComponent();
            this.ShowInTaskbar = false;

            System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection();
            foreach (System.Drawing.FontFamily family in fonts.Families)
            {
                cbbFont.Items.Add(family.Name);
            }
            cbbFont.Text = "宋体";

            cbbFontSize.Text = "五号";

            if (FEmrEdit == null)
            {
                FEmrEdit = new HCEmrEdit();
                this.pnlEdit.Controls.Add(FEmrEdit);
                FEmrEdit.Dock = DockStyle.Fill;

                FEmrEdit.MouseDown += DoEmrEditMouseDown;
                FEmrEdit.MouseUp   += DoEmrEditMouseUp;
                FEmrEdit.Show();
            }

            FDomainItemID = 0;

            frmDataElement = new frmDataElement();
            frmDataElement.FormBorderStyle = FormBorderStyle.None;
            frmDataElement.Dock            = DockStyle.Fill;
            frmDataElement.TopLevel        = false;

            frmDataElement.OnInsertAsDeItem       = DoDEInsertAsDeItem;
            frmDataElement.OnInsertAsDeGroup      = DoDEInsertAsDeGroup;
            frmDataElement.OnInsertAsDeEdit       = DoDEInsertAsDeEdit;
            frmDataElement.OnInsertAsDeCombobox   = DoDEInsertAsDeCombobox;
            frmDataElement.OnInsertAsDeDateTime   = DoDEInsertAsDeDateTime;
            frmDataElement.OnInsertAsDeRadioGroup = DoDEInsertAsDeRadioGroup;
            frmDataElement.OnInsertAsDeCheckBox   = DoDEInsertAsDeCheckBox;

            splitContainer.Panel1.Controls.Add(frmDataElement);
            frmDataElement.Show();
        }