Basics for .Net ( .Net Standard 2.1 )
- Delphi like TIniFile (ini file management)
- Delphi like TStrings (list of strings)
- ObjectExtensions
- StringExtensions
- BaseViewModel class for an basic MVVM (Model View ViewModel) implemention
- ...
[ ] ...
- Downgrade to .Net Standard 2.0 for compatibility with Xamarin.Forms, ...
- ObservableObject
- new implementation of BaseViewModel
- add implementation of Singleton
- add commands
public class yourViewModel : BaseViewModel<yourViewModel>
{
public ICommand SimpleCommand { get; }
public yourViewModel()
{
SimpleCommand = new RelayCommand(ExecuteSimpleCommand, CanExecuteSimpleCommand);
}
public string Hello()
{
return "Hello World!";
}
public string Toto { get => _toto; set => SetField(ref _toto, value); }
string _toto = "toto";
private void ExecuteSimpleCommand(object parameter)
{
// Your command execution logic here
Console.WriteLine("SimpleCommand executed with parameter: " + parameter);
}
private bool CanExecuteSimpleCommand(object parameter)
{
// Your logic to determine if the command can execute
return true; // or some condition
}
}
public class yourClass
{
public void yourCode()
{
yourViewModel.Current.Hello();
yourViewModel.Current.Toto = "titi";
}
}
- Add: AuditTrail.WithStack() & AuditTrail.FromHere()
- Add: NameValue_DateTime
- Add: DB_Attributes.TableNameAttribute
- Add: EnumerableExtensions
- NameValue: override string ToString()
- Open source ...
- Code review ...
- Add some unit tests ...
- Comming out ...