You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
632 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using MvvmAppCore.Models;
using System;
namespace MvvmAppCore.ViewModels
{
public partial class MotorProfileViewModel : ObservableObject
{
[ObservableProperty]
private string _motorName;
private MotorProfile _motorProfile = new MotorProfile
{
MotorName = "Gantry",
MotorNo = 1,
Type = 2,
Upr = 232
};
public MotorProfileViewModel()
{
MotorName = "Elevator";
System.Console.WriteLine($"Motor Name : {_motorProfile.MotorName}");
}
}
}