Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

SharedUI.Shared

Language: Iodine, Platform: All, Category: SharedUI
https://github.com/remobjects/ElementsSamples/tree/master/Iodine/All/SharedUI/SharedUI.Shared

$(MSBuildThisFileDirectory)MainWindow.xaml.java

package SharedUI.Shared;

#if ECHOES

import System.Windows.*;
import System.Windows.Controls.*;

public __partial class MainWindow extends Window
{
	private MainWindowController controller { __get { return (MainWindowController)DataContext; } }
} }

	public MainWindow(MainWindowController controller)
	{
		DataContext = controller;
		InitializeComponent();
	}

	//
	// Forward actions to the controller
	//

	private void CalculateResult_Click(Object sender, RoutedEventArgs e)
	{
		controller.calculateResult(sender);
	}
}

#endif