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(); }
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); }
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; }