Beispiel #1
0
        private void btnRecentlyModified_Click(object sender, EventArgs e)
        {
            try
            {
                EnsureItemTypes();
                using (var dialog = new RecentlyModifiedSearch())
                {
                    dialog.SetConnection(_conn);
                    dialog.SetItemTypes(_itemTypes);
                    if (dialog.ShowDialog() == DialogResult.OK)
                    {
                        _availableRefs.Clear();
                        _availableRefs.AddRange(dialog.Results);

                        EnsureResultsTab();
                        tbcSearch.SelectedTab = pgResults;
                        txtFind.Focus();
                    }
                }
            }
            catch (Exception ex)
            {
                Utils.HandleError(ex);
            }
        }
        private void btnRecentlyModified_Click(object sender, EventArgs e)
        {
            try
              {
            EnsureItemTypes();
            using (var dialog = new RecentlyModifiedSearch())
            {
              dialog.SetConnection(_conn);
              dialog.SetItemTypes(_itemTypes);
              if (dialog.ShowDialog() == DialogResult.OK)
              {
            _availableRefs.Clear();
            _availableRefs.AddRange(dialog.Results);

            EnsureResultsTab();
            tbcSearch.SelectedTab = pgResults;
            txtFind.Focus();
              }
            }
              }
              catch (Exception ex)
              {
            Utils.HandleError(ex);
              }
        }