private void Delegate_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { CRect_Cli rect = new CRect_Cli(); CPoint_Cli pt = new CPoint_Cli(); pt.X = e.X; pt.Y = e.Y; uint nFlags = 0; if (_openGraph_Cli != null) { _openGraph_Cli.OnLButtonDown(ref rect, nFlags, pt); } } }
private void Delegate_MouseMove(object sender, MouseEventArgs e) { _openGraph_Cli.OnSetCursor(); if (e.Button == MouseButtons.Left) { CRect_Cli rect = new CRect_Cli(); CPoint_Cli pt = new CPoint_Cli(); pt.X = e.X; pt.Y = e.Y; uint nFlags = (int)COpenGraph_Cli.ButtonFlag.flagMK_LBUTTON; if (_openGraph_Cli != null) { _openGraph_Cli.OnMouseMove(nFlags, pt); } } }