Esempio n. 1
0
        // We keep a static page so even if we move between activities the Run controls and info stay the same
        public ActivityPage(Activity Activity, Context context)
        {
            InitializeComponent();

            mActivity = Activity;
            mContext  = context;

            ActivityNameLabel.Content = mActivity.ActivityName; // TODO: use binding !!!!!!!!!!!!!!!!!!!!!!!

            mContext.Runner.CurrentBusinessFlow.Activities.PropertyChanged += CurrentBusinessFlow_PropertyChanged;

            ShowActionsList();

            ActionsCountLabel.BindControl(mActivity.Acts, nameof(IObservableList.Count));
        }
Esempio n. 2
0
        // We keep a static page so even if we move between activities the Run controls and info stay the same
        public ActivityPage(Activity Activity)
        {
            InitializeComponent();

            mActivity = Activity;

            ActivityNameLabel.Content = mActivity.ActivityName; // TODO: use binding !!!!!!!!!!!!!!!!!!!!!!!

            mGingerRunner = App.AutomateTabGingerRunner;
            //WorkSpace.Instance.GingerRunner.CurrentBusinessFlow.Activities.PropertyChanged += CurrentBusinessFlow_PropertyChanged;
            mGingerRunner.CurrentBusinessFlow.Activities.PropertyChanged += CurrentBusinessFlow_PropertyChanged;

            ShowActionsList();

            ActionsCountLabel.BindControl(mActivity.Acts, nameof(IObservableList.Count));
        }