예제 #1
0
        public PersonListViewModel()
        {
            database = BdDatabase.Connect(Settings.Default.Server, Settings.Default.Database,
                                          Settings.Default.User, Settings.Default.Password);

            SortingOrder = 0;
        }
예제 #2
0
        public PersonViewModel(Person _person)
        {
            database = BdDatabase.Connect(Settings.Default.Server, Settings.Default.Database,
                                          Settings.Default.User, Settings.Default.Password);

            person = _person;

            ClearModified();
        }
예제 #3
0
        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);
        }