private void button12_Click(object sender, EventArgs e) { FIzborReprezentacijaZaUtakmicu firzu = new FIzborReprezentacijaZaUtakmicu(); firzu.ShowDialog(); /*FInfoZaMec test = new FInfoZaMec(firzu, "Srbija", "Nemacka"); * test.ShowDialog();*/ /*try * { * var client = new MongoClient("mongodb://localhost"); * var database = client.GetDatabase("docs"); * var fs = new GridFSBucket(database); * * // ------ Brisanje iz GridFS-a * var server = client.GetServer(); * var database2 = server.GetDatabase("docs"); * var gridFs = new MongoGridFS(database2); * gridFs.Delete("Srbijazastava"); * //Object id = "Srbijazastava"; * * * //----------------- * * var data = fs.DownloadAsBytesByName("Srbijazastava"); * * MemoryStream stream = new MemoryStream(data); * * } * catch (Exception ex) * { * MessageBox.Show(ex.Message); * * }*/ }
public FInfoZaMec(FIzborReprezentacijaZaUtakmicu staraForma, string domacin, string gost) { InitializeComponent(); domacinIme = domacin; gostIme = gost; staraForma.Dispose(); notClosed = true; }
private void button12_Click(object sender, EventArgs e) { FIzborReprezentacijaZaUtakmicu firzu = new FIzborReprezentacijaZaUtakmicu(); firzu.ShowDialog(); /*FInfoZaMec test = new FInfoZaMec(firzu, "Srbija", "Nemacka"); test.ShowDialog();*/ /*try { var client = new MongoClient("mongodb://localhost"); var database = client.GetDatabase("docs"); var fs = new GridFSBucket(database); // ------ Brisanje iz GridFS-a var server = client.GetServer(); var database2 = server.GetDatabase("docs"); var gridFs = new MongoGridFS(database2); gridFs.Delete("Srbijazastava"); //Object id = "Srbijazastava"; //----------------- var data = fs.DownloadAsBytesByName("Srbijazastava"); MemoryStream stream = new MemoryStream(data); } catch (Exception ex) { MessageBox.Show(ex.Message); }*/ }
private void PbSimulirajUtakmicu_Click(object sender, EventArgs e) { FIzborReprezentacijaZaUtakmicu fsu = new FIzborReprezentacijaZaUtakmicu(); fsu.ShowDialog(); }