Beispiel #1
0
        public NewItem()
        {
            InitializeComponent();

            // // TODO: [rlittlesii: July 04, 2020] fix once Sextant.Plugins.Popup is completed.
            // ViewModel = new NewItemViewModel();

            Save
            .Events()
            .Pressed
            .Select(x => Unit.Default)
            .InvokeCommand(this, x => x.ViewModel.Save);

            Cancel
            .Events()
            .Pressed
            .Select(x => Unit.Default)
            .InvokeCommand(this, x => x.ViewModel.Cancel);
        }