Пример #1
0
        public GherkinPage()
        {
            InitializeComponent();

            folder = WorkSpace.UserProfile.Solution.BusinessFlowsMainFolder;

            GherkinTextEditor.AddToolbarTool(General.GetImage("@Save_16x16.png"), Save_Click, "Save Gherkin Feature");
            GherkinTextEditor.SaveButton.Visibility = Visibility.Collapsed;

            GherkinTextEditor.AddToolbarTool(General.GetImage("@Grid_16x16.png"), AddTable, "Add Examples Table");

            DragDrop2.HookEventHandlers(GherkinTextEditor);

            // Set the grids
            SetScenariosGridView();
            ScenariosGrid.SetTitleLightStyle = true;
            ScenariosGrid.DataSourceList     = mGherkinScenarioDefinition;

            SetStepsGridView();
            StepsGrid.SetTitleLightStyle = true;
            StepsGrid.DataSourceList     = mGherkinSteps;

            TagsGrid.DataSourceList     = mTags;
            TagsGrid.SetTitleLightStyle = true;
            SetTagsGrid();


            SetErrorsGridView();
            ErrorsGrid.SetTitleLightStyle = true;
            ErrorsGrid.DataSourceList     = mErrorsList;

            OptimizedStepsGrid.SetTitleLightStyle = true;
            SetOptimizedGridView();
        }
Пример #2
0
        public UCTreeView()
        {
            InitializeComponent();

            Tree.SelectedItemChanged         += Tree_SelectedItemChanged;
            Tree.PreviewMouseRightButtonDown += Tree_PreviewMouseRightButtonDown;
            Tree.MouseDoubleClick            += Tree_MouseDoubleClick;

            //Hook Drag Drop handler
            //TODO: add flag to decide if Drag and drop is needed
            DragDrop2.HookEventHandlers(this);
        }
Пример #3
0
        public UcListView()
        {
            InitializeComponent();

            //Hook Drag Drop handler
            mIsDragDropCompatible = true;
            DragDrop2.HookEventHandlers(this);

            if (Tags == null)
            {
                Tags = new ObservableList <Guid>();
            }

            xTagsFilter.Init(Tags);
            xTagsFilter.TagsStackPanlChanged += TagsFilter_TagsStackPanlChanged;
        }