Esempio n. 1
0
        public WalkerWindow(ExternalEvent exEvent, WalkerHandler handler)
        {
            m_event   = exEvent;
            m_handler = handler;
            m_handler.WalkerWindow = this;
            InitializeComponent();

            expanderBCF.Header = "Show BCF Info";
            //expanderRowDefinition.Height = new GridLength(40);
            this.MinHeight    = 535;
            this.Height       = 535;
            this.Title        = "smartBCF v." + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            labelStep.Content = "";

            filterOnImage  = ImageUtil.LoadBitmapImage("filter.png", 24);
            filterOffImage = ImageUtil.LoadBitmapImage("filter_empty.png", 24);

            buttonFilterImage.Source = filterOffImage;

            bcfFileDictionary = m_handler.BCFFileDictionary;
            bcfDictionary     = m_handler.BCFDictionary;
            categoryInfoList  = m_handler.CategoryInfoList;
            schemeInfo        = m_handler.SchemeInfo;
            bcfProjectId      = m_handler.BCFProjectId;
            bcfColorSchemeId  = m_handler.BCFColorSchemeId;
            googleFolders     = m_handler.GoogleFolders;

            if (bcfDictionary.Count > 0)
            {
                currentIndex = 0;
                DisplayLinkedBCF();
                DisplayColorscheme(schemeInfo);
            }
            else
            {
                //MessageBox.Show("Elements cannot be found in the active Revit document.\n", "Elements Not Found", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
Esempio n. 2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     m_event.Dispose();
     m_event   = null;
     m_handler = null;
 }