Exemple #1
0
    public bool IsReadyForMore()
    {
        var ready =
            _readinessTestHandler(_items, _generator.DescriptorList, _pursuitCtrl.ScreenTop());

        if (ready)
        {
            ResetDescriptors();
            _generator.Generate();
            _iter = _generator.DescriptorList.GetEnumerator();
        }
        return(ready);
    }
Exemple #2
0
 private void GenerateSql()
 {
     sqlTextBox.Text = "";
     Cursor          = Cursors.AppStarting;
     try
     {
         var gen = new MultiGenerator(CurrentConnectionStringAndDatabase())
         {
             Options = new GeneratorOptions
             {
                 Alter = alterStoredProcsToolStripMenuItem.Checked,
                 Grant = addGrantToolStripMenuItem.Checked,
                 Audit = includeAuditColumnsToolStripMenuItem.Checked
             }
         };
         sqlTextBox.Text = gen.Generate(SelectedTables(), SelectedKeys(), SelectedCodeGenerators());
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }