public PasswordToBDWindow(Bufer b) : base(Gtk.WindowType.Toplevel) { this.Build(); buf = b; }
public History_Window(string nameDB, Bufer bufer) : base(Gtk.WindowType.Toplevel) { this.Build(); buf = bufer; Initialize(nameDB); ReadDataAboutDeal(); }
public Add_Item_Window(List <StructOfProduct> exist_products, string nameDatabase, Bufer bufer) : base(Gtk.WindowType.Toplevel) { this.Build(); _ExistProduct = exist_products; nameDB = nameDatabase; buf = bufer; Initialize(); }
public Delete_Item_Window(List <StructOfProduct> productsList, string nameDataBase, Bufer bufer) : base(Gtk.WindowType.Toplevel) { this.Build(); _ProductsList = productsList; _DataForDelete = new List <StructOfProduct> (); nameDB = nameDataBase; buf = bufer; Initialize(productsList); }
public Change_Window(List <StructOfProduct> allProducts, StructOfProduct selectProduct, string nameDataBase, Bufer bufer) : base(Gtk.WindowType.Toplevel) { this.Build(); _AllProduct = allProducts; _SelectProduct = selectProduct; buf = bufer; Initialize(nameDataBase); SetGotStructOfPruduct(selectProduct); }
public Serach(string pathTO_DB, Bufer buf) { pathToDB = pathTO_DB; bufer = buf; }
private void ConnectTo(string path, Bufer buf) { connection = new NpgsqlConnection("Server=" + buf.ServerName + ";Port=5432; User Id=postgres; Password="******"; Database=" + path + ";"); command = connection.CreateCommand(); }
public ReadDB(string pathTo_db, Bufer buf) { ConnectTo(pathTo_db, buf); }
public WriteTo_DB(string pathToDb, Bufer buf) { ConnectTo(pathToDb, buf); readDB = new ReadDB(pathToDb, buf); }