Esempio n. 1
0
        private void Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var aa = StringHelper.GetSubScript(123456789);
                Presenters.Path.PathNodes.Clear();
                ConfigurationHelper.Modules.Clear();


                Presenters.Path.logFormElements.Add($"({DateTime.Now:H:mm:ss}) Action: Get condirion.");
                System.Diagnostics.Stopwatch myStopwatch = new System.Diagnostics.Stopwatch();
                myStopwatch.Start();
                textFormula.Text = subsystem.GetFormula();

                var count = ConfigurationHelper.Modules.Count();

                var aaa = StringHelper.GetUpScript(textFormula.Text);
                ConfigurationHelper.WorkCondition = textFormula.Text;

                myStopwatch.Stop();
                var ms = myStopwatch.Elapsed;


                Presenters.Path.logFormElements.Add($"Get  condition time {ms} ms.");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }