/* ----------------------------------------------------------------- */ /// /// SendOpen /// /// <summary> /// Posts the message to show a dialog of the OpenFileDialog /// class, and executes the specified action as an asynchronous /// operation. /// </summary> /// /// <remarks> /// 複数ファイルを非同期で追加した際にエラーが発生する場合が確認 /// されているため、暫定的に同期的に追加しています。 /// </remarks> /// /* ----------------------------------------------------------------- */ private void SendOpen() { var msg = MessageFactory.CreateForInsert(); Send(msg); if (!msg.Cancel) { Facade.Add(msg.Value); } }
/* --------------------------------------------------------------------- */ /// /// Add /// /// <summary> /// Invokes the Add command. /// </summary> /// /* --------------------------------------------------------------------- */ public void Add() => Send(MessageFactory.CreateForAdd(), e => Facade.Add(e));
private void AddButton_Click(object sender, RoutedEventArgs e) { f.Add(); }
/* --------------------------------------------------------------------- */ /// /// Add /// /// <summary> /// Invokes the Add command with the specified arguments. /// </summary> /// /// <param name="src">Files to add.</param> /// /* --------------------------------------------------------------------- */ public void Add(IEnumerable <string> src) => Track(() => Facade.Add(src), true);