Example #1
0
        public MpeResourceDesigner(MediaPortalEditor mpe)
        {
            // Set Painting Styles
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Initialize variables
            this.mpe = mpe;
            mask     = new MpeControlMask(this);
            //this.mask2 = new MpeResourceMask();
            //this.Controls.Add(mask2);
            resourceList = new MpeResourceCollection();

            // Create Popup Context Menu
            contextMenu = new PopupMenu();
            contextMenu.MenuCommands.Add(new MenuCommand("Parent", menuImageList, 4));
            contextMenu.MenuCommands.Add(new MenuCommand("-"));
            contextMenu.MenuCommands.Add(new MenuCommand("Send To Back", menuImageList, 0));
            contextMenu.MenuCommands.Add(new MenuCommand("Bring To Front", menuImageList, 1));
            contextMenu.MenuCommands.Add(new MenuCommand("-"));
            contextMenu.MenuCommands.Add(new MenuCommand("Copy"));
            contextMenu.MenuCommands.Add(new MenuCommand("Paste"));
            contextMenu.MenuCommands.Add(new MenuCommand("Cut"));
            contextMenu.MenuCommands.Add(new MenuCommand("Delete", menuImageList, 2));
            contextMenu.MenuCommands.Add(new MenuCommand("-"));
            contextMenu.MenuCommands.Add(new MenuCommand("Properties", menuImageList, 3));
            contextMenu.MenuCommands.Add(new MenuCommand("Test"));
        }
Example #2
0
        public MpeExplorer(MediaPortalEditor mpe)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            this.mpe        = mpe;
            contextMenu     = new PopupMenu();
            menuAdd         = new MenuCommand("Add");
            menuAddExisting = new MenuCommand("Add Existing...");
            menuAddNew      = new MenuCommand("Add New...");
            menuRename      = new MenuCommand("Rename");
            menuDelete      = new MenuCommand("Delete");
            menuAdd.MenuCommands.Add(menuAddExisting);
            menuAdd.MenuCommands.Add(menuAddNew);

            menuModify             = new MenuCommand("Modify");
            menuModifyScreen       = new MenuCommand("Screen Type");
            menuModifyScreenWindow = new MenuCommand("Window");
            menuModifyScreenDialog = new MenuCommand("Dialog");
            menuModifyScreenOSD    = new MenuCommand("OnScreenDisplay");
            menuModifyScreen.MenuCommands.AddRange(
                new MenuCommand[] { menuModifyScreenWindow, menuModifyScreenDialog, menuModifyScreenOSD });
            menuModify.MenuCommands.Add(menuModifyScreen);

            contextMenu.MenuCommands.Add(menuAdd);
            contextMenu.MenuCommands.Add(new MenuCommand("-"));
            contextMenu.MenuCommands.Add(menuModify);
            contextMenu.MenuCommands.Add(new MenuCommand("-"));
            contextMenu.MenuCommands.Add(menuRename);
            contextMenu.MenuCommands.Add(menuDelete);
        }
    public MpeResourceDesigner(MediaPortalEditor mpe)
    {
      // Set Painting Styles
      SetStyle(ControlStyles.DoubleBuffer, true);
      SetStyle(ControlStyles.AllPaintingInWmPaint, true);
      SetStyle(ControlStyles.UserPaint, true);

      // This call is required by the Windows.Forms Form Designer.
      InitializeComponent();

      // Initialize variables
      this.mpe = mpe;
      mask = new MpeControlMask(this);
      //this.mask2 = new MpeResourceMask();
      //this.Controls.Add(mask2);
      resourceList = new MpeResourceCollection();

      // Create Popup Context Menu
      contextMenu = new PopupMenu();
      contextMenu.MenuCommands.Add(new MenuCommand("Parent", menuImageList, 4));
      contextMenu.MenuCommands.Add(new MenuCommand("-"));
      contextMenu.MenuCommands.Add(new MenuCommand("Send To Back", menuImageList, 0));
      contextMenu.MenuCommands.Add(new MenuCommand("Bring To Front", menuImageList, 1));
      contextMenu.MenuCommands.Add(new MenuCommand("-"));
      contextMenu.MenuCommands.Add(new MenuCommand("Copy"));
      contextMenu.MenuCommands.Add(new MenuCommand("Paste"));
      contextMenu.MenuCommands.Add(new MenuCommand("Cut"));
      contextMenu.MenuCommands.Add(new MenuCommand("Delete", menuImageList, 2));
      contextMenu.MenuCommands.Add(new MenuCommand("-"));
      contextMenu.MenuCommands.Add(new MenuCommand("Properties", menuImageList, 3));
      contextMenu.MenuCommands.Add(new MenuCommand("Test"));
    }
Example #4
0
 public MpeHelpManager(MediaPortalEditor mpe)
 {
     // Initialize variables
     this.mpe = mpe;
     // This call is required by the Windows.Forms Form Designer.
     InitializeComponent();
 }
Example #5
0
 public MpeHelpManager(MediaPortalEditor mpe)
 {
   // Initialize variables
   this.mpe = mpe;
   // This call is required by the Windows.Forms Form Designer.
   InitializeComponent();
 }
 public MpePropertyManager(MediaPortalEditor mpe)
 {
   SetStyle(ControlStyles.EnableNotifyMessage, true);
   // This call is required by the Windows.Forms Form Designer.
   InitializeComponent();
   this.mpe = mpe;
   contextMenu = new PopupMenu();
   MenuCommand category =
     new MenuCommand("Sort By Category", menuImageList, 0, new EventHandler(OnMenuCategoryClicked));
   MenuCommand name = new MenuCommand("Sort By Name", menuImageList, 1, new EventHandler(OnMenuNameClicked));
   contextMenu.MenuCommands.AddRange(new MenuCommand[] {category, name});
   propertyGrid.CommandsVisibleIfAvailable = true;
 }
 public MpeStringDesigner(MediaPortalEditor mpe, MpeStringTable referenceTable, MpeStringTable stringTable)
 {
   this.mpe = mpe;
   InitializeComponent();
   if (referenceTable == null)
   {
     throw new DesignerException("Invalid reference string table");
   }
   this.referenceTable = referenceTable;
   this.stringTable = stringTable;
   dataSet = new MpeData();
   dataTable = new MpeData.MpeDbStringDataTable();
 }
 public MpeStringDesigner(MediaPortalEditor mpe, MpeStringTable referenceTable, MpeStringTable stringTable)
 {
     this.mpe = mpe;
     InitializeComponent();
     if (referenceTable == null)
     {
         throw new DesignerException("Invalid reference string table");
     }
     this.referenceTable = referenceTable;
     this.stringTable    = stringTable;
     dataSet             = new MpeData();
     dataTable           = new MpeData.MpeDbStringDataTable();
 }
Example #9
0
        public MpePropertyManager(MediaPortalEditor mpe)
        {
            SetStyle(ControlStyles.EnableNotifyMessage, true);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            this.mpe    = mpe;
            contextMenu = new PopupMenu();
            MenuCommand category =
                new MenuCommand("Sort By Category", menuImageList, 0, new EventHandler(OnMenuCategoryClicked));
            MenuCommand name = new MenuCommand("Sort By Name", menuImageList, 1, new EventHandler(OnMenuNameClicked));

            contextMenu.MenuCommands.AddRange(new MenuCommand[] { category, name });
            propertyGrid.CommandsVisibleIfAvailable = true;
        }
Example #10
0
 public FontDesigner(MediaPortalEditor mpe, MpeFont font) : base(mpe)
 {
   this.font = font;
 }
Example #11
0
 public MpeScreenDesigner(MediaPortalEditor mpe, MpeScreenInfo screenInfo) : base(mpe)
 {
     this.screenInfo = screenInfo;
 }
 public MpeControlDesigner(MediaPortalEditor mpe, MpeControl control) : base(mpe)
 {
     this.control = control;
 }
 public MpeControlDesigner(MediaPortalEditor mpe, MpeControl control) : base(mpe)
 {
   this.control = control;
 }
Example #14
0
 public MpeHelpBrowser(MediaPortalEditor mpe)
 {
   this.mpe = mpe;
   InitializeComponent();
 }
 public MpeImageDesigner(MediaPortalEditor mpe, FileInfo image) : base(mpe)
 {
     imageFile = image;
 }
 public FontDesigner(MediaPortalEditor mpe, MpeFont font) : base(mpe)
 {
     this.font = font;
 }
Example #17
0
 public MpeHelpBrowser(MediaPortalEditor mpe)
 {
     this.mpe = mpe;
     InitializeComponent();
 }
 public MpeScreenDesigner(MediaPortalEditor mpe, MpeScreenInfo screenInfo) : base(mpe)
 {
   this.screenInfo = screenInfo;
 }
Example #19
0
 public MpeImageDesigner(MediaPortalEditor mpe, FileInfo image) : base(mpe)
 {
   imageFile = image;
 }