private void Compiler_Click(object sender, RoutedEventArgs e) { RodskaApplication app = (RodskaApplication)RodskaApp.Current; MainWindow window = (MainWindow)app.MainWindow; InteractionLiteral doc = window.CurrentDocument as InteractionLiteral; doc.Compile(); compilationLua.Text = doc.CompilationResult; }
public InteractionViewModel(InteractionLiteral interaction) { Argument.IsNotNull(() => interaction); Interaction = interaction; }