59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Components.Authorization;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
using Microsoft.AspNetCore.Components.Routing;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
|
using Microsoft.JSInterop;
|
|
using WebDoorCreator.UI;
|
|
using WebDoorCreator.UI.Components;
|
|
using WebDoorCreator.UI.Shared;
|
|
using WebDoorCreator.Data.DbModels;
|
|
|
|
namespace WebDoorCreator.UI.Components
|
|
{
|
|
public partial class DoorSizingStep
|
|
{
|
|
protected bool isSizing { get; set; } = true;
|
|
protected string isSizingActive
|
|
{
|
|
get => isSizing ? "btn-primary" : "btn-secondary";
|
|
}
|
|
protected bool isOpening { get; set; } = false;
|
|
protected string isOpeningActive
|
|
{
|
|
get => isOpening ? "btn-primary" : "btn-secondary";
|
|
}
|
|
protected bool isEdges { get; set; } = false;
|
|
protected string isEdgesActive
|
|
{
|
|
get => isEdges ? "btn-primary" : "btn-secondary";
|
|
}
|
|
|
|
protected void setSizing()
|
|
{
|
|
isOpening = false;
|
|
isEdges = false;
|
|
isSizing = true;
|
|
}
|
|
protected void setOpening()
|
|
{
|
|
isEdges = false;
|
|
isSizing = false;
|
|
isOpening = true;
|
|
}
|
|
protected void setEdges()
|
|
{
|
|
isOpening = false;
|
|
isSizing = false;
|
|
isEdges = true;
|
|
}
|
|
|
|
}
|
|
} |