Example #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="host">プラグインホスト</param>
        public MainForm(IPluginHost host)
        {
            InitializeComponent();

            _Host = host;

            // フォームデータ読み込み
            FormConfig formConfig = AppConfigIO.LoadFormData(_Host.DirectoryPathAppSetting);

            if (formConfig != null)
            {
                excludeOwnerComment.Checked = formConfig.excludeOwnerComment;
                No2AsNo1Comment.Checked     = formConfig.No2AsNo1Comment;
                ReplyCommentToggle.Checked  = formConfig.ReplyCommentToggle;
                ReplyCommentTextBox.Text    = formConfig.ReplyCommentText;
            }
            // 履歴データ読み込み
            _HistoryDataList       = AppConfigIO.LoadHistoryData(_Host.DirectoryPathAppSetting);
            HistoryView.DataSource = _HistoryDataList;

            // イベント設定
            _Host.ReceivedComment += new ReceivedCommentEventHandler(_Host_ReceivedComment);
        }