private void NewPart() { if (_engine.SupportedPartTypes.Length > 0) { TypeOfContentDialog.ShowHandlerDialog(_engine.SupportedPartTypes, false, true); } }
private void NewFile() { if (_engine.SupportedPartTypes.Length > 0) { bool cancelable = _editor.Part != null; TypeOfContentDialog.ShowHandlerDialog(_engine.SupportedPartTypes, true, cancelable); } }