Пример #1
0
        public FrmMain()
        {
            InitializeComponent();
            string document_path  = Application.StartupPath + "/renthouse.txt";
            string document_path2 = Application.StartupPath + "/salehouse.txt";

            rentHouseOperations = new TDRentHouseDal(document_path);
            saleHouseOperations = new TDSaleHouseDal(document_path2);

            DataGridViewButtonColumn btn = new DataGridViewButtonColumn();

            dgvRentHouses.Columns.Add(btn);
            btn.HeaderText = "Resimler";
            btn.Text       = "Resimler";
            btn.UseColumnTextForButtonValue = true;
            DataGridViewButtonColumn btn1 = new DataGridViewButtonColumn();

            dgvSaleHouses.Columns.Add(btn1);
            btn1.HeaderText = "Resimler";
            btn1.Text       = "Resimler";
            btn1.UseColumnTextForButtonValue = true;

            var singletonUser = SingletonUser.CreateAsSingleton();

            lblUser.Text = singletonUser.ReadUsername();
        }
Пример #2
0
        public FrmStatistics()
        {
            InitializeComponent();
            string document_path  = Application.StartupPath + "/renthouse.txt";
            string document_path2 = Application.StartupPath + "/salehouse.txt";

            rentHouseOperations = new TDRentHouseDal(document_path);
            saleHouseOperations = new TDSaleHouseDal(document_path2);
        }
Пример #3
0
        public FrmEdit(string type, string id)
        {
            InitializeComponent();
            this.type = type;
            this.id   = id;

            string document_path  = Application.StartupPath + "/renthouse.txt";
            string document_path2 = Application.StartupPath + "/salehouse.txt";

            rentHouseOperations = new TDRentHouseDal(document_path);
            saleHouseOperations = new TDSaleHouseDal(document_path2);

            panel1.Visible = false;
            panel2.Visible = false;
        }