Esempio n. 1
0
 static MainDataClass()
 {
     _tsContext = new TsContext();
     //
     //var init = new Initialization(new TsContext());
     //DateMonthYear dateMonth = DateMonthYear.Now;
 }
Esempio n. 2
0
 public FlatWindow(TsContext context)
 {
     TsContext = context;
     InitializeComponent();
     btn_SaveAddFlat.Click += Btn_AddFlat_OnClick;
     this.Title = "Добавить квартиру";
     btn_SaveAddFlat.Content = "Добавить";
 }
Esempio n. 3
0
 public FlatWindow(TsContext context, Flat flat)
 {
     TsContext = context;
     TsContext.Flats.Load();
     InitializeComponent();
     if (flat != null) FlatGrid.DataContext = TsContext.Flats.Find(flat.Id);
     btn_SaveAddFlat.Click += BtnSaveFlatOnClick;
     this.Title = "Изменить данные о квартире";
     btn_SaveAddFlat.Content = "Сохранить";
 }
Esempio n. 4
0
        public AccountWindow( TsContext tsContext)
        {
            tsContext.Flats.Load();
            tsContext.Services.Load();
            tsContext.Tariffs.Load();

            TsContext = tsContext;

            InitializeComponent();

            flatView.ItemsSource = tsContext.Flats.ToList();
            flatView.Items.SortDescriptions.Add(new SortDescription("Number",ListSortDirection.Ascending));
            serviceView.ItemsSource = tsContext.Services.ToList();
        }
Esempio n. 5
0
 public ServiceControl(TsContext tsContext)
 {
     InitializeComponent();
     TsContext = tsContext;
 }
Esempio n. 6
0
 public AccountsControl(TsContext tsContext)
 {
     InitializeComponent();
     Context = tsContext;
 }
Esempio n. 7
0
 public FlatControlNew(TsContext tsContext)
 {
     InitializeComponent();
     Context = tsContext;
 }
Esempio n. 8
0
 public PayControl(TsContext tsContext)
 {
     TsContext = tsContext;
     InitializeComponent();
 }