/// <summary>
        /// 削除ボタンが押された時の処理
        /// </summary>
        /// <param name="sender"></param>
        private void Button_Delete_Press(object sender)
        {
            string message = "内容が削除されますが\nよろしいですか?";

            if (ShowMessageDlg(message) == MessageBoxResult.Cancel)
            {
                return;
            }


            this.Grid_Opa.Visibility = Visibility.Visible;
            ConfirmationWindow conf = new ConfirmationWindow("削除");

            conf.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            conf.ShowDialog();

            this.Grid_Opa.Visibility = Visibility.Collapsed;

            if (conf.result == false)
            {
                return;
            }

            ReturnValue.bActionable = false;

            Original.Data_Import(ReturnValue);

            IsModified = true;

            //ReturnValue.PropertyChanged -= DekidakaPropertyChanged;


            this.Close();
        }
        /// <summary>
        /// 現在の出来高データを消去して、日付やパネルデータも読み直す
        /// </summary>
        /// <param name="sender">呼び出し元ボタンオブジェクト</param>
        private async void Clear_DataAsync(object sender)
        {
            string message = "現在の出来高を消去しますか?";


            if (ShowMessageDlg(message) == MessageBoxResult.Cancel)
            {
                return;
            }

            ConfirmationWindow conf = new ConfirmationWindow("クリア");

            conf.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            this.Grid_Opa.Visibility = Visibility.Visible;

            conf.ShowDialog();

            this.Grid_Opa.Visibility = Visibility.Collapsed;


            if (conf.result == false)
            {
                return;
            }


            DekiDakaDataCollection.Clear();
            DekiDakaDataCollection.Add(new Dekidaka_Data(0));
            iDataCollectionIndex = 0;

            //コンテキストの初期値設定
            mwContext.mwWriteMember     = "名前を入力";
            mwContext.mwInputDate       = System.DateTime.Today;
            this.TodayDate.SelectedDate = mwContext.mwInputDate;
            mwContext.mwPartNumber      = 0;

            ModuleData.ModuleDataSetup();

            StateWindow StateW = new StateWindow("データを保存しています");

            StateW.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            StateW.Topmost = true;

            StateW.Show();

            //一時データを保存
            await Task.Run(() => { SaveTempData(); });

            StateW.Close();
            StateW = null;
        }