// TODO - sort this exit strategy now we don't have a navigator
        private void Navigate(PageExitType exitType)
        {
            switch (exitType)
            {
            case PageExitType.ExitToEditor:
            case PageExitType.ExitToNew:
                if (this.UIWrapper.OnEdit != null)
                {
                    this.UIWrapper.OnEdit.Invoke(0);
                }
                break;

            default:
                break;
            }
        }
        private void Navigate(PageExitType exitType)
        {
            switch (exitType)
            {
            case PageExitType.ExitToEditor:
            case PageExitType.ExitToNew:
                if (this.UIWrapper.OnEdit != null)
                {
                    this.UIWrapper.OnEdit.Invoke(0);
                }
                else
                {
                    ((IRecordNavigation)this).NavigateTo(new EditorEventArgs(exitType, 0, this.RecordConfiguration.RecordName));
                }
                break;

            default:
                ((IRecordNavigation)this).NavigateTo(new EditorEventArgs(exitType, 0, this.RecordConfiguration.RecordName));
                break;
            }
        }
Esempio n. 3
0
 public EditorEventArgs(PageExitType exitType, int id)
 {
     this.ExitType = exitType;
     this.ID       = id;
 }
Esempio n. 4
0
 public EditorEventArgs(PageExitType exitType, int id, string recordname)
 {
     this.ExitType   = exitType;
     this.ID         = id;
     this.RecordName = recordname;
 }
Esempio n. 5
0
 public EditorEventArgs(PageExitType exitType)
 {
     this.ExitType = exitType;
     this.ID       = 0;
 }