Exemplo n.º 1
0
 private void CreateViewDataTable(View view)
 {
     view.SetTableName(view.Name);
     this.mediator.Project.CollectedData.CreateDataTableForView(view, 1);
     this.createDataTableToolStripMenuItem.Enabled = false;
     this.DeleteDataTableItemEnabled = true;
     foreach (View v in view.GetDescendantViews())
     {
         if (!this.mediator.Project.CollectedData.TableExists(v.TableName))
         {
             view.SetTableName(v.Name);
             this.mediator.Project.CollectedData.CreateDataTableForView(v, 1);
         }
     }
     view.TableName = view.Name;
     this.mediator.Project.CollectedData.SynchronizeDataTable(view);
 }