Exemplo n.º 1
0
        private void Browser_Load(object sender, EventArgs e)
        {
            this.right1.BindData();
            //this.right1.OnPageClicked += right1_OnPageClicked;
            this.right1.OnPageAftered     += right1_OnPageAftered;
            this.center2_11.OnPageClicked += center2_11_OnPageClicked;

            //双缓存
            //base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            //base.SetStyle(ControlStyles.ResizeRedraw | ControlStyles.Selectable, true);

            //Path|Index
            if (String.IsNullOrEmpty(Param.DPageParameter) == false)
            {
                //1:1显示
                String[] arrls = Param.DPageParameter.Split(new char[] { '|' });
                index = SRLibFun.StringConvertToInt32(arrls[1]);
                PicId = SRLibFun.StringConvertToInt32(arrls[2]);
                inPutBuffer(arrls[0].Replace(Param.ServerCacheIP, Param.IP), 0);
                SROperation2.Instance.BrowserPicId = this.PicId;
            }
            this.center2_11.BindData(ref this.lvic);
            this.right1.SetBiaoJiStatusByString(this.PicId.ToString());
            //右键菜单
            CustomToolStripColorTable ctsct = new CustomToolStripColorTable();

            contextMenuStrip1.RenderMode = ToolStripRenderMode.Professional;
            contextMenuStrip1.Renderer   = new ToolStripProfessionalRenderer(ctsct);
            contextMenuStrip2.RenderMode = ToolStripRenderMode.Professional;
            contextMenuStrip2.Renderer   = new ToolStripProfessionalRenderer(ctsct);
            //FrmFame 事件
            //this.center2_11.listView1.KeyDown += Browser_KeyDown;
            splitContainer1.SplitterMoved   += splitContainer1_SplitterMoved;
            splitContainer1.SplitterDistance = SROperation.Instance.BrowserSplitContainer1SplitterDistance;

            this.FindForm().KeyPreview  = true;
            this.FindForm().KeyUp      += Browser_KeyUp;
            this.FindForm().MouseWheel += Browser_MouseWheel;

            this.FindForm().FormClosing += Browser_FormClosing;
        }
Exemplo n.º 2
0
        private void Browser_Load(object sender, EventArgs e)
        {
            this.right1.BindData();
            //this.right1.OnPageClicked += right1_OnPageClicked;
            this.right1.OnPageAftered += right1_OnPageAftered;
            this.center2_11.OnPageClicked += center2_11_OnPageClicked;

            //双缓存
            //base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            //base.SetStyle(ControlStyles.ResizeRedraw | ControlStyles.Selectable, true);

            //Path|Index
            if (String.IsNullOrEmpty(Param.DPageParameter) == false)
            {
                //1:1显示
                String[] arrls = Param.DPageParameter.Split(new char[] { '|' });
                index = SRLibFun.StringConvertToInt32(arrls[1]);
                PicId = SRLibFun.StringConvertToInt32(arrls[2]);
                inPutBuffer(arrls[0].Replace(Param.ServerCacheIP, Param.IP), 0);
                SROperation2.Instance.BrowserPicId = this.PicId;
            }
            //this.center2_11.BindData(ref this.lvic);
            this.right1.SetBiaoJiStatusByString(this.PicId.ToString());
            //右键菜单
            CustomToolStripColorTable ctsct = new CustomToolStripColorTable();
            contextMenuStrip1.RenderMode = ToolStripRenderMode.Professional;
            contextMenuStrip1.Renderer = new ToolStripProfessionalRenderer(ctsct);
            contextMenuStrip2.RenderMode = ToolStripRenderMode.Professional;
            contextMenuStrip2.Renderer = new ToolStripProfessionalRenderer(ctsct);
            //FrmFame 事件
            //this.center2_11.listView1.KeyDown += Browser_KeyDown;
            splitContainer1.SplitterMoved += splitContainer1_SplitterMoved;
            splitContainer1.SplitterDistance = SROperation.Instance.BrowserSplitContainer1SplitterDistance;

            this.FindForm().KeyPreview = true;
            this.FindForm().KeyUp += Browser_KeyUp;
            this.FindForm().MouseWheel += Browser_MouseWheel;

            this.FindForm().FormClosing += Browser_FormClosing;
        }