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

            SetExpanders();
            //Bind between Menu expanders and actual grid expanders
            App.ObjFieldBinding(BFVariablesExpander, Expander.IsExpandedProperty, BFVariablesExpander2, "IsExpanded");
            App.ObjFieldBinding(BFActivitiesGroupsExpander, Expander.IsExpandedProperty, BFActivitiesGroupsExpander2, "IsExpanded");
            App.ObjFieldBinding(BFActivitiesExpander, Expander.IsExpandedProperty, BFActivitiesExpander2, "IsExpanded");
            App.ObjFieldBinding(ActivityVariablesExpander, Expander.IsExpandedProperty, ActivityVariablesExpander2, "IsExpanded");
            App.ObjFieldBinding(ActivityActionsExpander, Expander.IsExpandedProperty, ActivityActionsExpander2, "IsExpanded");
            BFVariablesExpander.IsExpanded        = false;
            BFActivitiesGroupsExpander.IsExpanded = false;
            ActivityVariablesExpander.IsExpanded  = false;
            mlastBFVariablesRowHeight             = new GridLength(200, GridUnitType.Star);
            mlastActivityVariablesRowHeight       = new GridLength(200, GridUnitType.Star);
            SetFramesContent();
            LoadBizFlows();

            App.PropertyChanged             += AppPropertychanged;
            App.UserProfile.PropertyChanged += UserProfilePropertyChanged;

            SetGridsView(eAutomatePageViewStyles.Design.ToString());
            SetGherkinOptions();
        }
Example #2
0
        public StartPage()
        {
            InitializeComponent();

            //TODO: load from external - so easier to update
            lblAppVersion.Content = "Version " + Ginger.App.AppVersion;

            App.ObjFieldBinding(autoLoadLastSolCheckBox, CheckBox.IsCheckedProperty, App.UserProfile, nameof(UserProfile.AutoLoadLastSolution));
            SetRecentSolutions();
        }
Example #3
0
        public ucTag(RepositoryItemTag tag)
        {
            InitializeComponent();
            mTag = tag;
            App.ObjFieldBinding(lblTagName, Label.ContentProperty, mTag, RepositoryItemTag.Fields.Name);
            App.ObjFieldBinding(lblTagName, Label.ToolTipProperty, mTag, RepositoryItemTag.Fields.Description);
            tagStack.Background   = (Brush)bc.ConvertFrom("#cde0f2");
            closeImage.Visibility = Visibility.Hidden;

            xDeleteTagBtn.Tag = tag;
        }