private void EditModel(string selected, bool show = true)
 {
     using (var modelDialog = new NutcrackerModelDialog(selected)) {
         if (show)
         {
             modelDialog.ShowDialog();
             _ignoreIndexChange = true;
             InitializeModels();
             cbModels.SelectedIndex = cbModels.FindStringExact(modelDialog.ModelName);
             _ignoreIndexChange     = false;
         }
         modelDialog.PreviewRectangle = _previewRectangle;
         RenderRows             = modelDialog.Rows;
         RenderCols             = modelDialog.Cols;
         _effectBuffers         = new[] { new Color[RenderRows, RenderCols], new Color[RenderRows, RenderCols] };
         _nodes                 = modelDialog.Nodes;
         _colorSpace            = modelDialog.ColorLayout;
         btnModelEdit.Visible   = true;
         btnModelRemove.Visible = true;
     }
     UpdateSummary();
 }
 private void EditModel(string selected, bool show = true)
 {
     using (var modelDialog = new NutcrackerModelDialog(selected)) {
         if (show) {
             modelDialog.ShowDialog();
             _ignoreIndexChange = true;
             InitializeModels();
             cbModels.SelectedIndex = cbModels.FindStringExact(modelDialog.ModelName);
             _ignoreIndexChange = false;
         }
         modelDialog.PreviewRectangle = _previewRectangle;
         RenderRows = modelDialog.Rows;
         RenderCols = modelDialog.Cols;
         _effectBuffers = new[] { new Color[RenderRows, RenderCols], new Color[RenderRows, RenderCols] };
         _nodes = modelDialog.Nodes;
         _colorSpace = modelDialog.ColorLayout;
         btnModelEdit.Visible = true;
         btnModelRemove.Visible = true;
     }
     UpdateSummary();
 }