// 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; } }
public EditorEventArgs(PageExitType exitType, int id) { this.ExitType = exitType; this.ID = id; }
public EditorEventArgs(PageExitType exitType, int id, string recordname) { this.ExitType = exitType; this.ID = id; this.RecordName = recordname; }
public EditorEventArgs(PageExitType exitType) { this.ExitType = exitType; this.ID = 0; }