private void button1_Click(object sender, EventArgs e) { if (layoutInfo != null && layoutInfo.Visible) { return; } layoutInfo = new LayoutInfo(); layoutInfo._database = _database; layoutInfo._layout = layoutEditor1; layoutInfo._shipData = _item as Ship; layoutInfo.Owner = this; layoutInfo.OnLayoutChanged(); layoutInfo.Show(); }