Example #1
0
        public PvsPage()
        {
            InitializeComponent();

            enableButton.Command = new EnablePvsReadCachingCommand();
            disableButton.Command = new DisablePvsReadCachingCommand();

            enableSelectionManager = new SelectionManager();
            disableSelectionManager = new SelectionManager();

            vmDefaultSort = new DataGridViewVms_DefaultSort();

            PvsProxy_CollectionChangedWithInvoke = Program.ProgramInvokeHandler(PvsProxyCollectionChanged);

            base.Text = Messages.PVS_TAB_TITLE;
        }
Example #2
0
 private void RefreshTrimButton()
 {
     showTrimButton = connection != null && Helpers.CreedenceOrGreater(connection);
     if (showTrimButton)
     {
         trimButtonContainer.Visible = true;
         if (selectionManager == null)
             selectionManager = new SelectionManager();
         selectionManager.BindTo(trimButton, Program.MainWindow);
     }
     else
     {
         trimButtonContainer.Visible = false;
         trimButton.SelectionBroadcaster = null;
     }
 }