/// <summary> /// Initializes a new instance of the <see cref="BordeoLPanel"/> class. /// </summary> /// <param name="direction">The panel direction.</param> /// <param name="start">The panel start point.</param> /// <param name="end">The end point direction.</param> /// <param name="size">The panel size.</param> /// <param name="code">The panel code.</param> public BordeoLPanel(SweepDirection rotation, Point3d start, Point3d end, LPanelMeasure size, String code) : base(BordeoUtils.GetRivieraCode(code), size, start) { this.Rotation = rotation; this.Direction = start.ToPoint2d().GetVectorTo(end.ToPoint2d()); this.Rotation = rotation; this.Regen(); }
/// <summary> /// Handles the Click event of the SetAcabado control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void SetAcabado_Click(object sender, RoutedEventArgs e) { String code = this.codeHost.Text.Substring(0, 6); WinAcabadoPicker win = new WinAcabadoPicker(code, BordeoUtils.GetRivieraCode(code)); if (win.ShowDialog().Value) { foreach (PanelItem item in this.SelectedItems) { item.Acabado = win.SelectedAcabado.Acabado; } } }
/// <summary> /// Initializes a new instance of the <see cref="BordeoPanel"/> class. /// </summary> /// <param name="start">The start.</param> /// <param name="end">The end.</param> /// <param name="measure">The measure.</param> public BordeoPanel(Point3d start, Point3d end, PanelMeasure measure) : base(BordeoUtils.GetRivieraCode(CODE_PANEL_RECTO), measure, start) { this.Direction = start.ToPoint2d().GetVectorTo(end.ToPoint2d()); this.Regen(); }