Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        protected void CloseWindow(WindowCloseType type, object param = null)
        {
            // 非表示にしたほうが速く感じる?
            ViewModel.View.Visibility = Visibility.Collapsed;

            BeginInvoke(() =>
            {
                if (ViewModel.CloseWindowAction != null)
                {
                    ViewModel.CloseWindowAction(type, param);
                    ViewModel.CloseWindowAction = null;
                }
                ViewModel.View.Close();
            });
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="type"></param>
 /// <param name="result"></param>
 public WindowCloseResult(WindowCloseType type, object result)
 {
     Type   = type;
     Result = result;
 }