private void OnCloseNestedPane(CloseNestedPaneEventArgs args) { if (LeftPane == args.Pane) { var settings = LeftPane.Settings; LeftPane.Dispose(); LeftPane = _leftPaneStack.Pop(); LeftPane.LoadDataAsync(LoadCommand.Restore, new LoadDataAsyncParameters(settings, args.Payload)); LeftPane.SetActive(); } else if (RightPane == args.Pane) { var settings = RightPane.Settings; RightPane.Dispose(); RightPane = _rightPaneStack.Pop(); RightPane.LoadDataAsync(LoadCommand.Restore, new LoadDataAsyncParameters(settings, args.Payload)); RightPane.SetActive(); } }
private void OnCloseNestedPane(CloseNestedPaneEventArgs args) { if (LeftPane == args.Pane) { var settings = LeftPane.Settings; LeftPane.Dispose(); LeftPane = _leftPaneStack.Pop(); LeftPane.LoadDataAsync(LoadCommand.Restore, new LoadDataAsyncParameters(settings, args.Payload)); LeftPane.SetActive(); } else if (RightPane == args.Pane) { var settings = LeftPane.Settings; RightPane.Dispose(); RightPane = _rightPaneStack.Pop(); RightPane.LoadDataAsync(LoadCommand.Restore, new LoadDataAsyncParameters(settings, args.Payload)); RightPane.SetActive(); } }