Пример #1
0
 public override void InitBasic()
 {
     ConnectionIcons.DefaultIcon      = ImageAccessor.GetIcon("Icon.png");
     ConnectionIcons.InactiveIcon     = ImageAccessor.GetIcon("IconInactive.png");
     ConnectionIcons.IntermediateIcon = ImageAccessor.GetIcon("IconProgress.png");
     ConnectionIcons.ActiveIcon       = ImageAccessor.GetIcon("IconActive.png");
 }
        public DummyPropertyPages()
        {
            Name                          = "Dummy Connection Settings".TLL();
            TemplateName                  = "Dummy Template Settings".TLL();
            Icon                          = ImageAccessor.GetIcon("Icon.png");
            HandledObjectType             = typeof(RoyalRDSConnection);
            SupportsConnectionCredentials = true;
            SupportsWindowMode            = true;

            // Dummy
            SourceListItem itemDummyCat = new SourceListItem("Dummy".TL())
            {
                IsCategory = true
            };

            InsertCommonCategoryAfter = itemDummyCat;

            IPropertyPage propPageDummyMain = new PropertyPageDummyMainController().InitPropertyPage() as IPropertyPage;

            itemDummyCat.MutableChildNodes.AddObject(propPageDummyMain.ListItem);

            // Set Properties
            DefaultItem = propPageDummyMain.ListItem;

            PropertyPages.Add(propPageDummyMain);

            ListItems.Add(itemDummyCat);
        }
Пример #3
0
 private void CreateSessionView()
 {
     View = new NSImageView()
     {
         Image = ImageAccessor.GetIcon("Icon.png").Icon256
     }.Autorelease <NSImageView>();
 }