public FormOrderType(ClassOpenBase _base, PosTypeOrder pos, bool edit = true) { Base = _base; Edit = edit; Pos = pos; InitializeComponent(); }
private void button4_Click(object sender, EventArgs e) { // Открытие окна типов заказа PosTypeOrder pos = new PosTypeOrder(); FormOrderType F = new FormOrderType(Base, pos); F.ShowDialog(this); F.Dispose(); }