Example #1
0
        public ActionPage(DiversityPage previous) : base(previous)
        {
            HasPrevious = true;
            HasNext     = false;
            InitializeComponent();

            RefreshLanguage();

            DiversityPage.Actions = this;
        }
Example #2
0
        public TaxonPage(DiversityPage previous) : base(previous)
        {
            InitializeComponent();

            RefreshLanguage();

            HasNext     = false;
            HasPrevious = true;

            this.DataContext = TaxonManager;
        }
Example #3
0
        public ProjectPage(DiversityPage previous) : base(previous)
        {
            InitializeComponent();

            HasNext     = false;
            HasPrevious = true;

            RefreshLanguage();

            projectSelector  = new ProjectSelector();
            this.DataContext = projectSelector;
        }
Example #4
0
        public SelectionPage(DiversityPage previous) : base(previous)
        {
            InitializeComponent();

            HasPrevious = true;
            HasNext     = true;

            var selectionBinding = new Binding("FinishedSelection")
            {
                Source = FieldDataManager.SelectionBuilder,
                Mode   = BindingMode.OneWay,
                NotifyOnTargetUpdated = true,
            };

            listBoxSelection.TargetUpdated += new EventHandler <DataTransferEventArgs>(updateTreeview);
            this.listBoxSelection.SetBinding(ListBox.ItemsSourceProperty, selectionBinding);


            RefreshLanguage();
        }
Example #5
0
        //Collection Agent
        //private TextBox textBoxCollectorsName = new TextBox();

        public SelectFieldDataPage(DiversityPage previous) : base(previous)
        {
            InitializeComponent();

            RefreshLanguage();

            HasNext     = true;
            HasPrevious = true;

            /*var maxHeight = new Binding("ActualHeight")
             * {
             *  Source = this.groupBoxResult,
             *  Mode = BindingMode.OneWay,
             * };
             * this.listBoxResult.SetBinding(MaxHeightProperty,maxHeight);*/

            var queryResult = new Binding("QueryResult")
            {
                Mode   = BindingMode.OneWay,
                Source = FieldDataManager.SelectionBuilder,
                UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
            };

            listBoxResult.SetBinding(ListBox.ItemsSourceProperty, queryResult);

            var actualSelection = new Binding("SelectedElements")
            {
                Mode   = BindingMode.OneWay,
                Source = FieldDataManager.SelectionBuilder,
                UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
            };

            listBoxActualSelection.SetBinding(ListBox.ItemsSourceProperty, actualSelection);



            listBoxSearchType.ItemsSource = FieldDataManager.SelectionBuilder.SearchTypes;
        }
Example #6
0
 public DiversityPage(DiversityPage previous)
 {
     previousPage = previous;
 }