using StructureHelperCommon.Models.Forces;
using System.Windows;

namespace StructureHelper.Windows.BeamShears
{
    /// <summary>
    /// Interaction logic for BeamShearActionView.xaml
    /// </summary>
    public partial class BeamShearActionView : Window
    {
        private readonly BeamShearActionViewModel viewModel;
        public BeamShearActionView(BeamShearActionViewModel viewModel)
        {
            InitializeComponent();
            this.viewModel = viewModel;
            this.DataContext = this.viewModel;
            this.viewModel.ParentWindow = this;
        }
        public BeamShearActionView(IBeamShearAction beamShearAction) : this(new BeamShearActionViewModel(beamShearAction))
        {
            
        }
    }
}
