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