Esempio n. 1
0
        private void CreateSimpleRod()
        {
            var saveFileDialog = new SaveFileDialog
            {
                Filter       = "Файлы проекта расчета (*.fep)|*.fep",
                FileName     = Guid.NewGuid().ToString(),
                AddExtension = true
            };

            if (saveFileDialog.ShowDialog() == true)
            {
                var filePath = saveFileDialog.FileName;

                // создаем модель с простым стержнем
                ModelCreator.CreateSimpleRod(filePath);

                // открываем в лире
                LiraUtils.OpenFileByLira(filePath);
            }
        }