Beispiel #1
0
        public FrmCreateAsset()
        {
            string exePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            dbPath = string.Format($"{exePath}\\{DBConstant.SqlLiteDBFileName}");

            InitializeComponent();
            this.WindowState            = FormWindowState.Maximized;
            personRespository           = new PersonRespository(dbPath);
            assetManagementRepository   = new AssetManagementRepository(dbPath);
            propertyLocationRespository = new LocationRespository(dbPath);
        }
        public FrmAssetSearch()
        {
            InitializeComponent();

            string exePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            dbPath = string.Format($"{exePath}\\{DBConstant.SqlLiteDBFileName}");
            assetManagementRepository = new AssetManagementRepository(dbPath);
            personRespository         = new PersonRespository(dbPath);

            this.WindowState = FormWindowState.Maximized;
            assetCollection  = new List <AssetViewModel>();
            InitDataGridView();
        }