private void CloseButton_Click(object sender, EventArgs e) { Form c = new LAB1(); c.Show(); this.Hide(); }
private void bunifuImageButton1_Click(object sender, EventArgs e) { Form F = new LAB1(); F.Show(); this.Hide(); }
private async void button2_Click(object sender, EventArgs e) { MongoClient client = new MongoClient("mongodb://localhost"); var db = client.GetDatabase("SysAnalys1"); var collection = db.GetCollection <Problem>("problems"); for (int j = 0; j < n; j++) { Problem docum1 = new Problem { Problems = box1[j].Text, }; await collection.InsertOneAsync(docum1); } this.Hide(); Form a = new LAB1(); a.Show(); }