private void button11_Click(object sender, EventArgs e) { this.Hide(); //hides the current form Manager_Replace_bike_from_stock mrbs = new Manager_Replace_bike_from_stock(user); mrbs.FormClosed += (s, args) => this.Close(); // close the login Form mrbs.Show(); }
internal Manager_Stock_Popup(Manager_Replace_bike_from_stock incomingWindow, List <string> bikeToChange, int incomingOrder, int incomingMaxValue) { InitializeComponent(); bikeType = bikeToChange; orderId = incomingOrder; maxValue = incomingMaxValue; label1.Text = " Please enter number of bike to use from the stock :\n maximum value = " + maxValue; window = incomingWindow; textBox1.Text = "0"; }