public PersonListViewModel() { database = BdDatabase.Connect(Settings.Default.Server, Settings.Default.Database, Settings.Default.User, Settings.Default.Password); SortingOrder = 0; }
public PersonViewModel(Person _person) { database = BdDatabase.Connect(Settings.Default.Server, Settings.Default.Database, Settings.Default.User, Settings.Default.Password); person = _person; ClearModified(); }
public PrintListViewModel() { database = BdDatabase.Connect(Settings.Default.Server, Settings.Default.Database, Settings.Default.User, Settings.Default.Password); Document = new FlowDocument(); DateTime today = DateTime.Today; if (today.Day > 15) { today = today.AddMonths(1); } DateFrom = new DateTime(today.Year, today.Month, 1); }