public void тканиToolStripMenuItem_Click(object sender, EventArgs e) { Form tk = new tkani(); tk.Show(); this.Hide(); }
private void тканиToolStripMenuItem_Click(object sender, EventArgs e) { tkani f = new tkani(); f.Show(); f.dataGridView1.ReadOnly = true; f.button2.Visible = false; f.button3.Visible = false; this.Hide(); }
private void button2_Click(object sender, EventArgs e) { DataSet changes = this.ds.GetChanges(); if (changes != null) { SqlCommandBuilder builder = new SqlCommandBuilder(sda); builder.GetInsertCommand(); int updatesrows = sda.Update(changes, "Ткани"); ds.AcceptChanges(); WpfApp1asds.asd.x = this.Location.X; WpfApp1asds.asd.y = this.Location.Y; Form thi = new tkani(); thi.Show(); thi.Location = new Point(WpfApp1asds.asd.x, WpfApp1asds.asd.y); this.Close(); f1.Hide(); } }