Пример #1
0
 public SimpleSummaryItemControl(SimpleSummaryItemContainer parent)
 {
     InitializeComponent();
     Dock = DockStyle.Top;
     AppManager.Instance.SetClickEventHandler(this);
     _parent = parent;
     if ((CreateGraphics()).DpiX > 96)
     {
         laTotal.Font = new Font(laTotal.Font.FontFamily, laTotal.Font.Size - 2, laTotal.Font.Style);
     }
     if (FormMain.Instance != null)
     {
         textEditItem.EnableSelectAll();
         spinEditMonthly.EnableSelectAll();
         spinEditTotal.EnableSelectAll();
         memoEditDetails.EnableSelectAll();
     }
 }
		public SimpleSummaryItemControl(SimpleSummaryItemContainer parent)
		{
			InitializeComponent();
			Dock = DockStyle.Top;
			AppManager.Instance.SetClickEventHandler(this);
			_parent = parent;
			if ((CreateGraphics()).DpiX > 96)
			{
				laTotal.Font = new Font(laTotal.Font.FontFamily, laTotal.Font.Size - 2, laTotal.Font.Style);
			}
			if (FormMain.Instance != null)
			{
				textEditItem.EnableSelectAll();
				spinEditMonthly.EnableSelectAll();
				spinEditTotal.EnableSelectAll();
				memoEditDetails.EnableSelectAll();
			}
		}