123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Windows.Forms;
- namespace FastReport.FastQueryBuilder
- {
- internal enum BorderPosition
- {
- None,
- Right,
- Bottom,
- Left,
- Top
- }
- internal class TableBorder
- {
- private UserControl table;
- private BorderPosition border;
- public bool isResize;
- private void SetCursor()
- {
- table.Cursor = Cursors.Default;
- switch (border)
- {
- case BorderPosition.Top:
- case BorderPosition.Bottom:
- table.Cursor = Cursors.SizeNS;
- break;
- case BorderPosition.Left:
- case BorderPosition.Right:
- table.Cursor = Cursors.SizeWE;
- break;
- }
- }
- public TableBorder(UserControl tbl)
- {
- table = tbl;
- }
- public BorderPosition SelectedBorder
- {
- get
- {
- return border;
- }
- set
- {
- border = value;
- SetCursor();
- }
- }
- }
- }
|