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