Example #1
1
        //// 1: Delegates
        //public delegate void RadFitEventHandler(object source, EventArgs args);
        //// 2: Events
        //public event RadFitEventHandler RadFitView;


        public RadViewUserControl()
        {
            InitializeComponent();

            // Assign local server
            this.axRADViewCtl4121.SetLocalServer("radsrv.dll");
            this.RadOCX                 = this.axRADViewCtl4121;
            this.RadOCX.MouseScroll    += RadOCX_MouseScroll;
            this.RadOCX.DblClick       += RadOCX_DblClick;
            this.RadOCX.MouseMoveEvent += RadOCX_MouseMoveEvent;
            this.SizeChanged           += RadViewUserControl_SizeChanged;

            this.RadOCX.FileName = @"D:\SPPIDORCL\Plant\00\01\T-00-01-001.pid";
            //// 3: Raise Events
            //OnRadFitView();
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            if (this.radViewUserControl1 == null ||
                this.radViewUserControl1.RadOCX == null)
            {
                MessageBox.Show("Rad OCX Error, exiting now!");
                this.Close();
            }

            // Assign variable
            this.radView = this.radViewUserControl1.RadOCX;
        }