예제 #1
0
        private void ShowSearchForm(string targetDir)
        {
            AppObject.Frame.ShowSearchForm();
            //既にインデックス化されているかどうか
            if (!MainFrameForm.SearchForm.IsContainTargetIndex(targetDir))
            {
                var result = MessageBox.Show(AppObject.GetMsg(AppObject.Msg.MSG_DO_CREATE_INDEX),
                                             AppObject.GetMsg(AppObject.Msg.TITLE_QUESTION), MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (result == DialogResult.Yes)
                {
                    //インデックス作成
                    var ibf = new IndexBuildForm(targetDir);
                    ibf.ShowDialog();
                    if (ibf.DoStop)
                    {
                        //検索中断
                        return;
                    }
                }
                else
                {
                    //検索中断
                    return;
                }
            }

            //検索
            MainFrameForm.SearchForm.SetPathFilterText(targetDir);
        }
예제 #2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public WebBrowserForm(string rootUrl, CefSharpPanel browserPanel, IndexBuildForm ibf)
        {
            InitializeComponent();

            _rootUrl        = rootUrl;
            _browserPanel   = browserPanel;
            _indexBuildForm = ibf;

            this.Controls.Add(_browserPanel);
            _browserPanel.InitializeInstance();
        }
예제 #3
0
 /// <summary>
 /// フォームロード
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OuterIndexForm_Load(object sender, EventArgs e)
 {
     IndexBuildForm.LoadActiveIndex(ConnectString, this.ActiveIndexGrid, appendCheckBox: false);
 }
예제 #4
0
 public void LoadActiveIndex()
 {
     _activeIndex = IndexBuildForm.SelectActiveIndex(AppObject.ConnectString);
 }