Exemplo n.º 1
0
        /* ----------------------------------------------------------------- */
        ///
        /// WhenLocked
        ///
        /// <summary>
        /// ファイルがロックされている時に実行されるハンドラです。
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        private void WhenLocked(object sender, ValueCancelEventArgs <string> e)
        {
            var result = SyncWait(() => Views.ShowMessage(
                                      string.Format(
                                          Properties.Resources.MessageLock,
                                          System.IO.Path.GetFileName(e.Value)
                                          ), MessageBoxButtons.RetryCancel));

            e.Cancel = (result == DialogResult.Cancel);
        }
Exemplo n.º 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// WhenMessage
 ///
 /// <summary>
 /// Message イベント発生時に実行されます。
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private void WhenMessage(string message) => Sync(() => Views.ShowMessage(message));