示例#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);