private void lytGroup_Asthma_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group != null) { if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; lytGroup_Hepatitis.Expanded = group.Expanded; lytGroup_Asthma.Expanded = group.Expanded; if (lytGroup_Diabetes.Expanded) { lytGroup_Diabetes.Expanded = false; } if (lytGroup_Hypertension.Expanded) { lytGroup_Hypertension.Expanded = false; } } } }
private void layoutControlGroup2_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group != null) { if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; if (lytContainer_Smoke.Expanded) { lytContainer_Smoke.Expanded = false; } if (lytContainer_Alcohol.Expanded) { lytContainer_Alcohol.Expanded = false; } if (lytContainer_Addiction.Expanded) { lytContainer_Addiction.Expanded = false; } } } }
private void lytGroup_Printing_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group != null) { if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; if (lytGroup_AreaParts.Expanded) { lytGroup_AreaParts.Expanded = false; } if (lytGroup_RawMaterials.Expanded) { lytGroup_RawMaterials.Expanded = false; } if (lytGroup_Color.Expanded) { lytGroup_Color.Expanded = false; } } } }
private void lytGroup_Weight_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group != null) { if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; if (lytGroup_Temperature.Expanded) { lytGroup_Temperature.Expanded = false; } if (lytGroup_BloodPressure.Expanded) { lytGroup_BloodPressure.Expanded = false; } if (lytGroup_Respiration.Expanded) { lytGroup_Respiration.Expanded = false; } } } }
private void layoutControl1_MouseDown(object sender, MouseEventArgs e) { LayoutControl lc = sender as LayoutControl; BaseLayoutItemHitInfo hi = lc.CalcHitInfo(e.Location); LayoutControlItem currentItem = hi.Item as LayoutControlItem; if (currentItem == null || hi.HitType != LayoutItemHitTest.TextArea) { return; } if (currentItem.Control != null) { currentItem.Control.Focus(); } }
private void lytGroup_Pupillometry_OS_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group != null) { if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; lytGroup_Pupillometry_OD.Expanded = group.Expanded; if (group.Expanded) { if (lytGroup_RAPD_OD.Expanded) { lytGroup_RAPD_OD.Expanded = false; } if (lytGroup_RAPD_OS.Expanded) { lytGroup_RAPD_OS.Expanded = false; } if (lytGroup_Size_OD.Expanded) { lytGroup_Size_OD.Expanded = false; } if (lytGroup_Size_OS.Expanded) { lytGroup_Size_OS.Expanded = false; } if (lytGroup_Shape_OD.Expanded) { lytGroup_Shape_OD.Expanded = false; } if (lytGroup_Shape_OS.Expanded) { lytGroup_Shape_OS.Expanded = false; } } } } }
private void lytGroup_MouseUp(object sender, MouseEventArgs e) { BaseLayoutItemHitInfo hitInfo = layoutControl1.CalcHitInfo(e.Location); if (hitInfo.HitType != LayoutItemHitTest.Item || e.Clicks != 1) { return; } LayoutGroup group = hitInfo.Item as LayoutGroup; if (group.ViewInfo.BorderInfo.CaptionBounds.Contains(e.Location)) { group.Expanded = !group.Expanded; if (group.Expanded) { Height = 292; } else { Height = 35; } } }