예제 #1
0
        /* ----------------------------------------------------------------- */
        ///
        /// 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);
            }
        }
예제 #2
0
 /* --------------------------------------------------------------------- */
 ///
 /// Add
 ///
 /// <summary>
 /// Invokes the Add command.
 /// </summary>
 ///
 /* --------------------------------------------------------------------- */
 public void Add() => Send(MessageFactory.CreateForAdd(), e => Facade.Add(e));
예제 #3
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     f.Add();
 }
예제 #4
0
 /* --------------------------------------------------------------------- */
 ///
 /// 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);