Пример #1
0
        private void button_recDef_Click(object sender, RoutedEventArgs e)
        {
            SetDefRecSettingWindow dlg = new SetDefRecSettingWindow();

            dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
            dlg.ShowDialog();
        }
Пример #2
0
        private void button_recDef_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new SetDefRecSettingWindow();

            dlg.Owner = CommonUtil.GetTopWindow(this);
            dlg.ShowDialog();
        }
Пример #3
0
        public static bool ChangeBulkSet(List <RecSettingData> infoList, Control owner = null, bool pgAll = false)
        {
            try
            {
                var dlg = new Setting.SetDefRecSettingWindow();
                dlg.Owner = CommonUtil.GetTopWindow(owner);
                dlg.SetSettingMode("まとめて録画設定を変更");
                dlg.recSettingView.SetDefSetting(infoList[0], pgAll == true);
                dlg.recSettingView.SetViewMode(pgAll != true);

                if (dlg.ShowDialog() == false)
                {
                    return(false);
                }

                RecSettingData setData = dlg.recSettingView.GetRecSetting();

                infoList.ForEach(info => setData.CopyTo(info));
                return(true);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
            return(false);
        }
Пример #4
0
        public static bool ChangeMarginValue(List <RecSettingData> infoList, bool start, Control owner = null)
        {
            try
            {
                infoList[0].UseMargineFlag = 1;

                var dlg = new Setting.SetDefRecSettingWindow();
                dlg.Owner = CommonUtil.GetTopWindow(owner);
                dlg.SetSettingMode(start == true ? "開始マージン設定" : "終了マージン設定");
                dlg.recSettingView.SetDefSetting(infoList[0]);
                dlg.recSettingView.SetChangeMode(start == true ? 0 : 1);

                if (dlg.ShowDialog() == false)
                {
                    return(false);
                }

                RecSettingData setData = dlg.recSettingView.GetRecSetting();

                infoList.ForEach(info =>
                {
                    info.UseMargineFlag = 1;
                    if (start == true)
                    {
                        info.StartMargine = setData.StartMargine;
                    }
                    else
                    {
                        info.EndMargine = setData.EndMargine;
                    }
                });
                return(true);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
            return(false);
        }
Пример #5
0
 private void button_recDef_Click(object sender, RoutedEventArgs e)
 {
     SetDefRecSettingWindow dlg = new SetDefRecSettingWindow();
     dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
     dlg.ShowDialog();
 }
Пример #6
0
 private void button_recDef_Click(object sender, RoutedEventArgs e)
 {
     var dlg = new SetDefRecSettingWindow();
     dlg.Owner = CommonUtil.GetTopWindow(this);
     dlg.ShowDialog();
 }