Exemplo n.º 1
0
        /// <summary>
        /// Check if the suffix is a number or not
        /// </summary>
        /// <param name="cmddata_p"></param>
        public MainForm(ExternalCommandData cmddata_p)
        {
            this.DataContext   = this;
            this.p_commanddata = cmddata_p;

            InitializeComponent();

            _changedElements = new ObservableCollection <ElementId>();
            BindingOperations.EnableCollectionSynchronization(_changedElements, _changedElementsLock);
            _receivedElements = new ObservableCollection <ElementId>();
            BindingOperations.EnableCollectionSynchronization(_receivedElements, _receviedElementslock);

            cleanVariables();

            this._doc = cmddata_p.Application.ActiveUIDocument.Document;
            bool connected = ConnectToDB();

            FireBaseConnection.ReceiveChangesFromDB();
            this.Closed += ClosingWindow;
            this.SendChangesList.ItemsSource    = _changedElements;
            this.ReceiveChangesList.ItemsSource = _receivedElements;
        }
Exemplo n.º 2
0
 private void SetRealTimeConnection()
 {
     FireBaseConnection.ReceiveChangesFromDB();
 }