コード例 #1
0
        public RecFolderWindow()
        {
            InitializeComponent();

            if (CommonManager.Instance.NWMode == true)
            {
                button_write.IsEnabled   = false;
                button_recName.IsEnabled = false;
            }

            button_ok.Click     += (sender, e) => DialogResult = true;
            button_cancel.Click += (sender, e) => DialogResult = false;

            if (CommonManager.Instance.IsConnected == true)
            {
                ErrCode err = CommonManager.Instance.DB.ReloadPlugInFile();
                CommonManager.CmdErrMsgTypical(err, "PlugIn一覧の取得");
            }
            comboBox_writePlugIn.ItemsSource  = CommonManager.Instance.DB.WritePlugInList;
            comboBox_writePlugIn.SelectedItem = "Write_Default.dll";

            comboBox_recNamePlugIn.ItemsSource   = new[] { "なし" }.Concat(CommonManager.Instance.DB.RecNamePlugInList);
            comboBox_recNamePlugIn.SelectedIndex = 0;

            //フォルダ設定無しの場合の表示
            textBox_recFolderDef.Text      = Settings.Instance.DefRecFolders.FirstOrDefault() ?? SettingPath.GetSettingFolderPath(true);
            textBox_recFolder.TextChanged += textBox_recFolder_TextChanged;
            textBox_recFolder_TextChanged(null, null);//ツールチップを設定するため

            button_folder.Click += ViewUtil.OpenFolderNameDialog(textBox_recFolder, "録画フォルダの選択", true, textBox_recFolderDef.Text);
        }