static MainDataClass() { _tsContext = new TsContext(); // //var init = new Initialization(new TsContext()); //DateMonthYear dateMonth = DateMonthYear.Now; }
public FlatWindow(TsContext context) { TsContext = context; InitializeComponent(); btn_SaveAddFlat.Click += Btn_AddFlat_OnClick; this.Title = "Добавить квартиру"; btn_SaveAddFlat.Content = "Добавить"; }
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 = "Сохранить"; }
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(); }
public ServiceControl(TsContext tsContext) { InitializeComponent(); TsContext = tsContext; }
public AccountsControl(TsContext tsContext) { InitializeComponent(); Context = tsContext; }
public FlatControlNew(TsContext tsContext) { InitializeComponent(); Context = tsContext; }
public PayControl(TsContext tsContext) { TsContext = tsContext; InitializeComponent(); }