Exemplo n.º 1
0
        private SortedDictionary<int, ErrorInfo> mSortedWarnningMap = new SortedDictionary<int, ErrorInfo>(); //errorinfo level, plcvarname

        #endregion Fields

        #region Constructors

        private WarnningDataSource()
        {
            mBeckHoff = Utils.GetBeckHoffInstance();
            mBeckHoff.RegisterObserver(TAG, this);

            InitStatusMap();
            InitWarnningList();
        }
Exemplo n.º 2
0
        private WarnningDataSource()
        {
            mBeckHoff = Utils.GetBeckHoffInstance();
            mBeckHoff.RegisterObserver(TAG, this);

            InitStatusMap();
            InitWarnningList();
        }
Exemplo n.º 3
0
        private void Canvas_Loaded(object sender, RoutedEventArgs e)
        {
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);

            //init views
            UpdateView();
        }
Exemplo n.º 4
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            TAG = this.Name.Replace("btn_", ".");
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);

            //init views
            Object value;

            mBeckHoff.plcVarUserdataMap.TryGetValue(TAG, out value);
            UpdateView(TAG, value);
        }
Exemplo n.º 5
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);
            context.CommandToolbarParamter(TAG, ToolbarParameter.ACTIONBAR_REGISTER);

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);
            //init views
            foreach (String item in mStatusMap.Keys)
            {
                Object value;
                mBeckHoff.plcVarUserdataMap.TryGetValue(item, out value);
                UpdateView(item, value);
            }
        }
Exemplo n.º 6
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);

            mTooltipHelper.Loaded(sender, e);
            tm.Tick    += new EventHandler(tm_Tick);
            tm.Interval = TimeSpan.FromSeconds(0.5);
            tm.Start();

            updateBucket();
            initStatusMap();
        }
Exemplo n.º 7
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);
            context.CommandToolbarParamter(TAG, ToolbarParameter.ACTIONBAR_REGISTER);

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);
            //init views
            foreach (String item in mStatusMap.Keys)
            {
                Object value;
                mBeckHoff.plcVarUserdataMap.TryGetValue(item, out value);
                UpdateView(item, value);
            }

            //FrameworkElement panel_test_run = this.tooltip.panel_test_run") as FrameworkElement;
            Utils.ShowPrevilageControl(this.panel_test_run);
            Utils.ShowPrevilageControl(btn_test_run_unprotected);
        }
Exemplo n.º 8
0
        public void Loaded(object sender, RoutedEventArgs e)
        {
            PageDataExchange context = PageDataExchange.getInstance();

            context.addResultObserver(TAG, this);

            tm.Tick    += new EventHandler(tm_Tick);
            tm.Interval = TimeSpan.FromSeconds(1);
            tm.Start();

            mHelpState = false;
            UpdateHelpState();

            //beck hoff register
            mBeckHoff.RegisterObserver(TAG, this);

            //init views
            foreach (String item in mStatusMap.Keys)
            {
                Object value;
                mBeckHoff.plcVarUserdataMap.TryGetValue(item, out value);
                UpdateView(item, value);
            }
        }