help
Root Question Message
namespace MyApp.Common
{
public partial class BaseForm : Form
{
private Guid _guid = Guid.NewGuid();
public Guid GUID
{
get { return _guid; }
set { _guid = value; }
}
}
}
namespace MyApp.Presentation
{
public partial class Admin : BaseForm
{
}
}
public static Guid GUID { get; private set; } = Guid.NewGuid();
BaseForm.GUID
everywhere.: base()
to the derived class ctor and it should workBaseForm myform = new();
myform.GUID = Guid.NewGuid();
myform.Show();
[AutoGuid]
to your class[ObservableObject]
or [ObservableProperty]
source code for inspiration