Example #1
0
 private void ultraListView_Filters_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     if (ultraListView_Filters.SelectedItems.Count > 0)
     {
         object tag = null;
         tag = ultraListView_Filters.SelectedItems[0].Tag;
         // Set filter details.
         _rtbx_FilterDetails.Rtf = (tag != null) ? ((Sql.DataCollectionFilter)tag).FilterDetails : "";
     }
 }
Example #2
0
        private void ultraListViewSelectServer_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
        {
            bool isUserSelected = false;

            if (ultraListViewSelectServer.SelectedItems.Count > 0)
            {
                m_SelectedServer = (Sql.RegisteredServer)ultraListViewSelectServer.SelectedItems[0].Tag;
                isUserSelected   = true;
            }
            if (m_SelectedUserChangedDelegate != null)
            {
                m_SelectedUserChangedDelegate(isUserSelected);
            }
        }
Example #3
0
 /// <summary>
 /// Called as we change the registry key selected in the list view
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvRegistryKeys_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     bnEditKey.Enabled   = (lvRegistryKeys.SelectedItems.Count != 0);
     bnDeleteKey.Enabled = (lvRegistryKeys.SelectedItems.Count != 0);
 }
Example #4
0
 /// <summary>
 /// Called as we change the selection in the documents list to enable/disable buttons as required
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvDocuments_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     this.bnDeleteDocument.Enabled = (lvDocuments.SelectedItems.Count != 0);
     this.bnViewDocument.Enabled   = (lvDocuments.SelectedItems.Count != 0);
 }
Example #5
0
 /// <summary>
 /// Called as the selection cahnges in the list view - show is only valid when we have a selection
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvResults_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     bnOK.Enabled = (lvResults.SelectedItems.Count != 0);
 }
Example #6
0
 /// <summary>
 /// Called as we change the selection in the list box - if we have selected a publisher then we allow
 /// the OK buton to be pressed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvPublishers_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     bnOK.Enabled = lvPublishers.SelectedItems.Count != 0;
 }
 /// <summary>
 /// Called as we change the item(s) selected within the list view of alert definitions.
 /// Enable Edit and Delete if an alert definition has been selected (single selection only supported here)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvAlerts_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     bnDelete.Enabled     = (lvAlertDefinitions.SelectedItems.Count != 0);
     btnEditAlert.Enabled = (lvAlertDefinitions.SelectedItems.Count != 0);
 }
Example #8
0
 /// <summary>
 /// Called after the selection state of the list view has changed so that we can
 /// update the other controls on this form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lvLicenseTypes_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     // Set the button states based on what we have selected
     SetLicenseButtonStates();
 }
Example #9
0
 /// <summary>
 /// Called as the selection changes in the list. Enable or disable menu items as appropriate
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ulvTcpRanges_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     bnEdit.Enabled   = (ulvTcpRanges.SelectedItems.Count == 1);
     bnRemove.Enabled = (ulvTcpRanges.SelectedItems.Count != 0);
 }
Example #10
0
 private void ultraListViewDatabases_ItemSelectionChanged(object sender, Infragistics.Win.UltraWinListView.ItemSelectionChangedEventArgs e)
 {
     SetSelectedDB();
 }