示例#1
0
 public MainWindow()
 {
     InitializeComponent();
     db = new RealtyContext();
     db.Lands.Load();
     landGrid.ItemsSource = db.Lands.Local.ToBindingList();
 }
 public ManagePropertiesController(RealtyContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
示例#3
0
    public RealtyContext realty()
    {
        RealtyContext _localctx = new RealtyContext(Context, State);

        EnterRule(_localctx, 2, RULE_realty);
        int _la;

        try {
            State = 57;
            ErrorHandler.Sync(this);
            switch (Interpreter.AdaptivePredict(TokenStream, 10, Context))
            {
            case 1:
                EnterOuterAlt(_localctx, 1);
                {
                    {
                        State = 33; realty_type();
                        State = 35;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == COMMA)
                        {
                            {
                                State = 34; Match(COMMA);
                            }
                        }

                        State = 38;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == OPN_BRK)
                        {
                            {
                                State = 37; Match(OPN_BRK);
                            }
                        }

                        State = 41;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == OWN_TYPE)
                        {
                            {
                                State = 40; own_type();
                            }
                        }

                        State = 44;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == CLS_BRK)
                        {
                            {
                                State = 43; Match(CLS_BRK);
                            }
                        }
                    }
                }
                break;

            case 2:
                EnterOuterAlt(_localctx, 2);
                {
                    {
                        State = 46; realty_type();
                        State = 48;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == OPN_BRK)
                        {
                            {
                                State = 47; Match(OPN_BRK);
                            }
                        }

                        State = 50; realty_share();
                        State = 52;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == DOLYA_WORD)
                        {
                            {
                                State = 51; Match(DOLYA_WORD);
                            }
                        }

                        State = 55;
                        ErrorHandler.Sync(this);
                        _la = TokenStream.LA(1);
                        if (_la == CLS_BRK)
                        {
                            {
                                State = 54; Match(CLS_BRK);
                            }
                        }
                    }
                }
                break;
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
示例#4
0
 public PhotosController(RealtyContext context)
 {
     _context = context;
 }
示例#5
0
 public NonResidentialPremisesController(RealtyContext context)
 {
     _context = context;
 }
 public ApartmentsController(RealtyContext context)
 {
     _context = context;
 }
 public LandPlotsController(RealtyContext context)
 {
     _context = context;
 }
 public PropertiesController(RealtyContext context)
 {
     _context = context;
 }