Beispiel #1
0
        protected virtual void Closed(ContextAction result, object data)
        {
            DataContext.IsVisabled = false;
            DataContext.OnCommand?.Invoke(this, ContextResult.Cancel());
            OnResult.InvokeAsync(result?.ContextResult(data));

            //DataContext.Child = new TContext<TNull>();
            LoadDataContext();
            base.Close();
            OnCloseAction?.Invoke();
        }
Beispiel #2
0
 public void InitContent()
 {
     tcc.DataContext = tc;
     Assert.IsTrue(tcc.DomId == tc.DomId);
     Assert.IsTrue(tcc.DataContext.Caption == tc.Caption);
     tcc.Caption = "change 1";
     tcc.UpdateDataContext();
     Assert.IsTrue(tcc.Caption == tcc.DataContext.Caption);
     tc.OnCommand.Invoke(this, ContextResult.Cancel());
     Assert.IsTrue(tcc.DataContext.ObjectName == "test");
 }
Beispiel #3
0
 public override void Cancel()
 {
     CloseItem(ContextResult.Cancel());
 }