Пример #1
0
 private void structDataEditor1_DataChanged(object sender, EventArgs e)
 {
     if (_item is Ship)
     {
         layoutInfo?.OnLayoutChanged();
         UpdateEngines();
     }
 }
Пример #2
0
 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();
 }