Пример #1
0
        public static DbMethods getInstance()
        {
            if(DbMethods._instance == null)
            {
                DbMethods._instance = new DbMethods();
            }

            return DbMethods._instance;
        }
Пример #2
0
        public UI()
        {
            InitializeComponent();
            _controller = new Controller();

            this._CM = new List<Visit>();
            this._db = DbMethods.getInstance();
            this._clientACVs = new List<ACV>();
            this.listRationaleAddVisit.DataSource = DbMethods.getInstance().getRationals();
            this.disableButtons();
        }