/// <summary> /// Constructor for use in-code. /// </summary> /// <param name="operation">The operation.</param> /// <exception cref="System.ArgumentException">@This window doesn't support empty operations.;operation</exception> /// <exception cref="System.ArgumentNullException">operation</exception> public PlanToOperationWindow(IPlanOperation operation) : this() { operation.ThrowIfNull(nameof(operation)); if (operation.Type == PlanOperations.None) { throw new ArgumentException(@"This window doesn't support empty operations.", nameof(operation)); } m_operation = operation; rootMultiPanel.SelectedPage = additionPage; }