Exemple #1
0
        public static int PaintCount = 0;         // number of times paint called

        public MoleculeGridPanel()
        {
            InitializeComponent();
            WinFormsUtil.LogControlChildren(this);

            if (SystemUtil.InDesignMode)
            {
                return;
            }

            BandedViewGrid.AddStandardEventHandlers();
            BandedViewGrid.GridPanel = this;

            LayoutViewGrid.AddStandardEventHandlers();
            LayoutViewGrid.GridPanel = this;

            //DevExpress.XtraEditors.Drawing.MouseWheelHelper.SmartMouseWheelProcessing = false; // so mouse wheel works without first clicking it (remove comment when get new version)

            return;
        }
Exemple #2
0
        /// <summary>
        /// Dispose
        /// </summary>

        public new void Dispose()
        {
            ResultsPage = null;
            PageControl = null;
            View        = null;
            Grid        = null;

            if (LayoutViewGrid != null)
            {
                LayoutViewGrid.Dispose();
            }

            if (BandedViewGrid != null)
            {
                BandedViewGrid.Dispose();
            }

            base.Dispose();

            return;
        }