78 lines
1.8 KiB
C#
78 lines
1.8 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using System.Runtime.CompilerServices;
|
|
using WebWindowTest.DTO;
|
|
using WebWindowTest.Models;
|
|
|
|
namespace WebWindowTest.Compo
|
|
{
|
|
public partial class AreaSashArcElem
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Sash corrente
|
|
/// </summary>
|
|
[Parameter]
|
|
public Sash CurrSashGroup { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<Sash> EC_UpdatePreview { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
//protected int ArcElementQty
|
|
//{
|
|
// get => CurrSashGroup.SashArcElem.nQty;
|
|
// set
|
|
// {
|
|
// CurrSashGroup.SashArcElem.nQty = value;
|
|
// _ = EC_UpdatePreview.InvokeAsync(CurrSashGroup);
|
|
// }
|
|
//}
|
|
|
|
//protected double ArcSection
|
|
//{
|
|
// get => CurrSashGroup.SashArcElem.nSection;
|
|
// set
|
|
// {
|
|
// CurrSashGroup.SashArcElem.nSection = value;
|
|
// _ = EC_UpdatePreview.InvokeAsync(CurrSashGroup);
|
|
// }
|
|
//}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected void IsCheckedQty()
|
|
{
|
|
insertQty = !insertQty;
|
|
}
|
|
|
|
//protected void IsCheckCutEdge()
|
|
//{
|
|
// CurrSashGroup.SashArcElem.bCutEdge = !CurrSashGroup.SashArcElem.bCutEdge;
|
|
// _ = EC_UpdatePreview.InvokeAsync(CurrSashGroup);
|
|
//}
|
|
|
|
protected string IsUsedQty()
|
|
{
|
|
if (insertQty)
|
|
return "form-control";
|
|
else
|
|
return "form-control disabled";
|
|
}
|
|
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool insertQty = false;
|
|
|
|
#endregion Private Fields
|
|
}
|
|
|
|
} |