/// <summary>
        /// When the graph is evaluated .. ?
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void OnEvaulationCompleted(object sender, EvaluationCompletedEventArgs e)
        {
            // WORKS
            MessageBox.Show($"The current Graph name is {FileName}");

            var dataToExport = ExportData.Export(FileName, DynamoVersion);

            ExportSheets.Execute(dataToExport);
        }
        private static void OnGraphRun(object sender, bool success)
        {
            // DOES NOT WORK
            if (success)
            {
                string DynamoVersion = string.Empty;
                MessageBox.Show($"The current Graph name is {FileName}");

                var dataToExport = ExportData.Export(FileName, DynamoVersion);
                ExportSheets.Execute(dataToExport);
            }
        }
Exemple #3
0
        /// <summary>
        /// When the graph is evaluated .. ?
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void OnEvaulationCompleted(object sender, EvaluationCompletedEventArgs e)
        {
            /*
             * if (FileName == null)
             * {
             *  FileName = "New Graph";
             * }
             */

            // @todo if EvaluationCount greater than 1..

            // WORKS
            MessageBox.Show($"The current Graph name is {FileName}");

            var dataToExport = ExportData.Export(FileName, DynamoVersion);

            ExportSheets.Execute(dataToExport);
        }