public void GivenColumnWithLongPathGroup_WhenResolveDefinitionNode_ResolveDefinitionNodesShouldBeReturn()
        {
            Dictionary <string, PropertiesGroup> propertiesGroups = new Dictionary <string, PropertiesGroup>();

            propertiesGroups["test"] = new PropertiesGroup()
            {
                PropertiesGroupName = "test",
                Properties          = new List <Property>()
                {
                    new Property()
                    {
                        Name = "p1", Type = "string", Path = "abc"
                    }
                }
            };
            var properties = new List <Property>();

            properties.Add(new Property()
            {
                Name            = "TestName",
                Path            = "test1.test2",
                PropertiesGroup = "test"
            });
            TabularTable table = new TabularTable();

            table.Properties = properties;

            TabularMappingDefinition defination = BaseMappingDefinitionLoader.BuildMappingDefinition(table, propertiesGroups, 5);

            Assert.AreEqual("Test1Test2p1", defination.Root.Children["test1"].Children["test2"].Children["abc"].ColumnDefinitions[0].Name);
        }
Пример #2
0
 protected virtual async Task ParseEntityAsync(TEntity entity)
 {
     Id               = entity.Id;
     DateAdded        = entity.DateAdded;
     DateUpdated      = entity.DateUpdated;
     PropertiesGroups = (await _propertiesProvider.GetAsync(entity))
                        .Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList();
 }
Пример #3
0
        protected virtual Task ParseEntityAsync(TEntity entity)
        {
            Id          = entity.Id;
            DateAdded   = entity.DateAdded;
            DateUpdated = entity.DateUpdated;

            Title = entity.Title;

            PropertiesGroups =
                entity.Properties.Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList();
            return(Task.CompletedTask);
        }
Пример #4
0
 //This is execute just the panel is open
 private void TimePanel_Load(object sender, EventArgs e)
 {
     Restart.Enabled = !pause;
     FrameTrackBar.SetRange(0, 99);
     FrameTrackBar.BackColor  = System.Drawing.Color.WhiteSmoke;
     FrameProgressBar.Minimum = 0;
     FrameProgressBar.Maximum = 99;
     MaxFrameBox.Minimum      = 100;
     MaxFrameBox.Maximum      = 500;
     PropertiesGroup.Hide();
     Play.Enabled          = pause;
     Pause.Enabled         = !pause;
     FrameTrackBar.Enabled = false;
 }
        public void GivenDefinitionMoreThanMaxLevel_WhenResolveDefinitionNode_ResolveDefinitionNodesShouldBeReturn()
        {
            Dictionary <string, PropertiesGroup> propertiesGroups = new Dictionary <string, PropertiesGroup>();

            propertiesGroups["test1"] = new PropertiesGroup()
            {
                PropertiesGroupName = "test1",
                Properties          = new List <Property>()
                {
                    new Property()
                    {
                        Name = "p11", Type = "string", Path = "abc1"
                    },
                    new Property()
                    {
                        PropertiesGroup = "test1", Path = "abc2"
                    }
                }
            };

            var properties = new List <Property>();

            properties.Add(new Property()
            {
                Name            = "TestName",
                Path            = "test1",
                PropertiesGroup = "test1"
            });
            properties.Add(new Property()
            {
                Name = "p1",
                Path = "test",
                Type = "string"
            });
            TabularTable table = new TabularTable();

            table.Properties = properties;

            TabularMappingDefinition defination = BaseMappingDefinitionLoader.BuildMappingDefinition(table, propertiesGroups, 2);

            Assert.AreEqual(3, defination.Columns.Count());
        }
Пример #6
0
 public void PropertiesGroupHide()
 {
     PropertiesGroup.Hide();
 }
Пример #7
0
 public void PropertiesGroupShow()
 {
     PropertiesGroup.Show();
 }
        void ReleaseDesignerOutlets()
        {
            if (AddTagButton != null)
            {
                AddTagButton.Dispose();
                AddTagButton = null;
            }

            if (ArrangerBox != null)
            {
                ArrangerBox.Dispose();
                ArrangerBox = null;
            }

            if (BackgroundBox != null)
            {
                BackgroundBox.Dispose();
                BackgroundBox = null;
            }

            if (BookmarkLabelBox != null)
            {
                BookmarkLabelBox.Dispose();
                BookmarkLabelBox = null;
            }

            if (BookmarkList != null)
            {
                BookmarkList.Dispose();
                BookmarkList = null;
            }

            if (BookmarkMeasureBox != null)
            {
                BookmarkMeasureBox.Dispose();
                BookmarkMeasureBox = null;
            }

            if (ComposerBox != null)
            {
                ComposerBox.Dispose();
                ComposerBox = null;
            }

            if (CopyrightBox != null)
            {
                CopyrightBox.Dispose();
                CopyrightBox = null;
            }

            if (DifficultyBox != null)
            {
                DifficultyBox.Dispose();
                DifficultyBox = null;
            }

            if (FingerHintBox != null)
            {
                FingerHintBox.Dispose();
                FingerHintBox = null;
            }

            if (HandsBox != null)
            {
                HandsBox.Dispose();
                HandsBox = null;
            }

            if (LicenseBox != null)
            {
                LicenseBox.Dispose();
                LicenseBox = null;
            }

            if (MadeFamousByBox != null)
            {
                MadeFamousByBox.Dispose();
                MadeFamousByBox = null;
            }

            if (PartsBox != null)
            {
                PartsBox.Dispose();
                PartsBox = null;
            }

            if (PropertiesGroup != null)
            {
                PropertiesGroup.Dispose();
                PropertiesGroup = null;
            }

            if (RatingBox != null)
            {
                RatingBox.Dispose();
                RatingBox = null;
            }

            if (RemoveBookmarkButton != null)
            {
                RemoveBookmarkButton.Dispose();
                RemoveBookmarkButton = null;
            }

            if (RemoveTagButton != null)
            {
                RemoveTagButton.Dispose();
                RemoveTagButton = null;
            }

            if (RetargetButton != null)
            {
                RetargetButton.Dispose();
                RetargetButton = null;
            }

            if (SongList != null)
            {
                SongList.Dispose();
                SongList = null;
            }

            if (SubtitleBox != null)
            {
                SubtitleBox.Dispose();
                SubtitleBox = null;
            }

            if (TagBox != null)
            {
                TagBox.Dispose();
                TagBox = null;
            }

            if (TagList != null)
            {
                TagList.Dispose();
                TagList = null;
            }

            if (TitleBox != null)
            {
                TitleBox.Dispose();
                TitleBox = null;
            }

            if (UniqueIdBox != null)
            {
                UniqueIdBox.Dispose();
                UniqueIdBox = null;
            }
        }