Exemplo n.º 1
0
        public frmRecord()
        {
            InitializeComponent();

            PrintToolVisible = 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      = "五号";
            cbbZoom.SelectedIndex = 3;

            if (FEmrView == null)
            {
                FEmrView = new HCEmrView();
                FEmrView.OnSectionItemInsert      = DoItemInsert;
                FEmrView.MouseDown               += DoEmrViewMouseDown;
                FEmrView.MouseUp                 += DoEmrViewMouseUp;
                FEmrView.OnCaretChange            = DoCaretChange;
                FEmrView.OnVerScroll              = DoVerScroll;
                FEmrView.OnChangedSwitch          = DoChangedSwitch;
                FEmrView.OnSectionReadOnlySwitch  = DoReadOnlySwitch;
                FEmrView.OnCanNotEdit             = DoCanNotEdit;
                FEmrView.OnSectionPaintPaperBefor = DoPaintPaperBefor;
                FEmrView.ContextMenuStrip         = this.pmView;
                //
                this.pnlView.Controls.Add(FEmrView);
                //FEmrView.Parent = this;
                FEmrView.Dock = DockStyle.Fill;
                FEmrView.Show();
            }
        }
Exemplo n.º 2
0
        public frmImportRecord()
        {
            InitializeComponent();

            FEmrViewLite = new HCEmrView();
            this.pnlRecord.Controls.Add(FEmrViewLite);
            FEmrViewLite.Dock = DockStyle.Fill;
            FEmrViewLite.Show();
        }