• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Library.GUIControl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MediaPortal.GUI.Library.GUIControl的典型用法代码示例。如果您正苦于以下问题:C# GUIControl类的具体用法?C# GUIControl怎么用?C# GUIControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GUIControl类属于MediaPortal.GUI.Library命名空间,在下文中一共展示了GUIControl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   if (control == this.btnDisableRemote)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnDisableRepeat)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnRepeatDelay)
   {
     this.SaveSettings();
   }
   if (control == this.btnRemoteMapping)
   {
     try
     {
       if (!File.Exists(VLSYS_Mplay.DefaultMappingPath))
       {
         VLSYS_Mplay.AdvancedSettings.CreateDefaultRemoteMapping();
       }
       new InputMappingForm("VLSYS_Mplay").ShowDialog();
     }
     catch (Exception exception)
     {
       Log.Info("VLSYS_AdvancedSetupForm.btnRemoteSetup_Click() CAUGHT EXCEPTION: {0}", new object[] {exception});
     }
   }
   base.OnClicked(controlId, control, actionType);
 }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:33,代码来源:RemoteWindow.cs


示例2: OnClicked

        protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
        {
            if (control.GetType() == typeof (GUIButtonControl))
            {
                if (controlId > 100 && controlId <= Settings.LocalPresetsNumber + 100 &&
                    _setting.PresetStations[controlId - 100 - 1] != null &&
                    _setting.PresetStations[controlId - 100 - 1].GuidId != null)
                {
                    DoPlay(_setting.PresetStations[controlId - 100 - 1]);
                    if (_setting.JumpNowPlaying)
                        GUIWindowManager.ActivateWindow(25652);
                }
            }
            if (control == homeButton)
            {
                GUIWindowManager.ActivateWindow(25650);
            }
            else if (control == folderButton)
            {
                var s = GetPresetFolder();
                if (s == noPresetFolders)
                {
                    ErrMessage(Translation.NoPresetFoldersFound);
                    GUIControl.DisableControl(GetID, folderButton.GetID);
                }
                else if (s != null)
                {
                    _setting.FolderId = s;
                    _setting.Save();
                    LoadLocalPresetStations();
                }
            }

            base.OnClicked(controlId, control, actionType);
        }
开发者ID:andrewjswan,项目名称:mediaportal-tunein,代码行数:35,代码来源:PresetsGUI.cs


示例3: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   if (control == btnSearch)
   {
     TvNewScheduleSearch.SearchFor = TvNewScheduleSearch.SearchType.Title;
     GUIWindowManager.ActivateWindow((int)Window.WINDOW_TV_SEARCH);
     return;
   }
   if (control == btnTvGuide)
   {
     TvNewScheduleSearch.SearchFor = TvNewScheduleSearch.SearchType.KeyWord;
     GUIWindowManager.ActivateWindow((int)Window.WINDOW_TVGUIDE);
     return;
   }
   if (control == btnQuickRecord)
   {
     OnQuickRecord();
     return;
   }
   if (control == btnAdvancedRecord)
   {
     OnAdvancedRecord();
     return;
   }
   base.OnClicked(controlId, control, actionType);
 }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:26,代码来源:TvNewScheduleSearchType.cs


示例4: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   if (control == this.btnEnableKeyPad)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnEnableCustom)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnKeyPadMapping)
   {
     try
     {
       if (!File.Exists(MatrixMX.DefaultMappingPath))
       {
         MatrixMX.AdvancedSettings.CreateDefaultKeyPadMapping();
       }
       new InputMappingForm("MatrixMX_Keypad").ShowDialog();
     }
     catch (Exception exception)
     {
       Log.Info("VLSYS_AdvancedSetupForm.btnRemoteSetup_Click() CAUGHT EXCEPTION: {0}", new object[] {exception});
     }
   }
   base.OnClicked(controlId, control, actionType);
 }
开发者ID:nio22,项目名称:MediaPortal-1,代码行数:29,代码来源:GUISettingsMiniDisplay_KeyPadWindow.cs


示例5: ApplyAlignment

    private void ApplyAlignment(GUIControl element, Thickness t, double x, double y, double w, double h)
    {
      Rect rect = new Rect(x, y, element.Width, element.Height);

      switch (element.HorizontalAlignment)
      {
        case HorizontalAlignment.Center:
          rect.X = x + ((w - element.Width) / 2);
          break;
        case HorizontalAlignment.Right:
          rect.X = x + w - element.Width;
          break;
        case HorizontalAlignment.Stretch:
          rect.Width = w;
          break;
      }

      switch (element.VerticalAlignment)
      {
        case VerticalAlignment.Center:
          rect.Y = y + ((h - element.Height) / 2);
          break;
        case VerticalAlignment.Bottom:
          rect.Y = y + h - element.Height;
          break;
        case VerticalAlignment.Stretch:
          rect.Height = h;
          break;
      }

      element.Arrange(rect);
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:32,代码来源:GridLayout.cs


示例6: OnClicked

    protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
      {
        bIsUsernameButtonPressed = false;
        bIsPasswordButtonPressed = false;

        if (control == btnEnterUsername)
        {
          bIsUsernameButtonPressed = true;
          PageDestroy();
        }

        if (control == btnEnterPassword)
        {
          bIsPasswordButtonPressed = true;
          PageDestroy();
        }

        if (control == btnOK)
        {
          HeadWeb hw = (HeadWeb)GUIWindowManager.GetWindow(HeadWeb.ID);
          HeadWebSettings.Instance.s_cc = new CookieContainer();
          bool loginresult = hw.loginUser(HeadWebSettings.Instance.s_username, HeadWebSettings.Instance.s_password);
          if (loginresult)
          {
            HeadWebSettings.Instance.s_loggedin = true;
            hw.getFavorites(true);
            PageDestroy();
          }
        }

        base.OnClicked(controlId, control, actionType);
      }
开发者ID:pilehave,项目名称:headweb-mp,代码行数:32,代码来源:HeadWebLogin.cs


示例7: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == btDoUpdate)
       {
     //install the patch(s)
     installUpdateGUI();
     // tell the user what has been done
     cmc_ChangeLog.Visible = false;
     btDoUpdate.Visible = false;
     if (StreamedMPConfig.manualInstallNeeded)
     {
       GUIDialogOK dlgDone = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
       dlgDone.SetHeading(Translation.mupdateheader);
       dlgDone.SetLine(1, Translation.mupdateline1);
       dlgDone.SetLine(2, Translation.mupdateline2);
       dlgDone.SetLine(3, string.Format(Translation.mupdateline3, Path.GetFileName(optionDownloadPath)));
       dlgDone.SetLine(4, Translation.mupdateline4);
       dlgDone.DoModal(GUIWindowManager.ActiveWindow);
     }
     else
     {
       if (!updateCancelled)
       {
     GUIDialogOK dlgDone = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
     dlgDone.SetHeading(Translation.SkinUpdate);
     dlgDone.SetLine(1, string.Format(Translation.NumPatchesInstalled, updateCheck.patchList.Count.ToString()));
     dlgDone.SetLine(2, String.Empty);
     dlgDone.SetLine(3, string.Format(Translation.PatchUpdateComplete, updateCheck.SkinVersion()));
     dlgDone.DoModal(GUIWindowManager.ActiveWindow);
       }
     }
     GUIWindowManager.ShowPreviousWindow();
     StreamedMPConfig.updateAvailable = false;
       }
 }
开发者ID:MichelZ,项目名称:streamedmp-michelz,代码行数:35,代码来源:SkinUpdateGUI.cs


示例8: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   if (control == this.btnDisplayVideo)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnDisplayAction)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnDisplayActionTime)
   {
     this.SaveSettings();
   }
   if (control == this.btnDisplayIdle)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnIdleDelay)
   {
     this.SaveSettings();
   }
   base.OnClicked(controlId, control, actionType);
 }
开发者ID:sanyaade-embedded-systems,项目名称:MediaPortal-1,代码行数:27,代码来源:DisplayControlWindow.cs


示例9: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == serverListGUI)
     {
         onServerListGUI();
     }
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:7,代码来源:ServerListGUI.cs


示例10: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   base.OnClicked(controlId, control, actionType);
   if (control == btnClose)
   {
     PageDestroy();
   }
 }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:8,代码来源:GUIDialogNotify.cs


示例11: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
     if (control == btnCreateMovingPicturesCategories)
         CreateMovingPicturesCategoriesClicked();
     if (control == btnCreateMovingPicturesFilters)
         CreateMovingPicturesFiltersClicked();
     base.OnClicked(controlId, control, actionType);
 }
开发者ID:MichelZ,项目名称:Trakt-for-Mediaportal,代码行数:8,代码来源:GUISettingsGeneral.cs


示例12: OnClicked

    protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
      {
        if (control == btnEnterCode)
        {
          bIsSMSCodeButtonPressed = true;
          PageDestroy();
        }
        base.OnClicked(controlId, control, actionType);
      }
开发者ID:pilehave,项目名称:headweb-mp,代码行数:9,代码来源:HeadWebSMSPurchase.cs


示例13: ImageElement

 /// <summary>
 /// Creates the element and retrieves all information from the control
 /// </summary>
 /// <param name="control">GUIControl</param>
 public ImageElement(GUIControl control)
     : base(control)
 {
     _image = control as GUIImage;
       if (_image != null)
       {
     _bitmap = loadBitmap(_image.FileName);
       }
 }
开发者ID:pilehave,项目名称:headweb-mp,代码行数:13,代码来源:ImageElement.cs


示例14: AddControl

 public void AddControl(GUIControl control)
 {
   //control.AddAnimations(base.Animations);
   if (base.Animations.Count != 0)
   {
     control.Animations.AddRange(base.Animations);
   }
   control.DimColor = DimColor;
   Children.Add(control);
 }
开发者ID:MediaPortal,项目名称:MediaPortal-1,代码行数:10,代码来源:GUIGroup.cs


示例15: OnClicked

    protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
    {
      base.OnClicked(controlId, control, actionType);
      int iYear, iMonth;
      if (control == spinStartMonth)
      {
        iYear = spinStartYear.Value;
        iMonth = spinStartMonth.Value;
        if (iMonth == 2 && DateTime.IsLeapYear(iYear))
        {
          spinStartDay.SetRange(1, 29);
        }
        else
        {
          spinStartDay.SetRange(1, months[iMonth]);
        }
      }
      if (control == spinEndMonth)
      {
        iYear = spinEndYear.Value;
        iMonth = spinEndMonth.Value;
        if (iMonth == 2 && DateTime.IsLeapYear(iYear))
        {
          spinEndDay.SetRange(1, 29);
        }
        else
        {
          spinEndDay.SetRange(1, months[iMonth]);
        }
      }
      if (control == btnOK)
      {
        int iHour;
        iHour = spinStartHour.Value;
        int iMin;
        iMin = spinStartMinute.Value;
        int iDay;
        iDay = spinStartDay.Value;
        iMonth = spinStartMonth.Value;
        iYear = spinStartYear.Value;
        channel = spinChannel.GetLabel();

        startDateTime = new DateTime(iYear, iMonth, iDay, iHour, iMin, 0, 0);
        iHour = spinEndHour.Value;
        iMin = spinEndMinute.Value;
        iDay = spinEndDay.Value;
        iMonth = spinEndMonth.Value;
        iYear = spinEndYear.Value;
        endDateTime = new DateTime(iYear, iMonth, iDay, iHour, iMin, 0, 0);

        _confirmed = true;
        PageDestroy();
        return;
      }
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:55,代码来源:GUIDialogDateTime.cs


示例16: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
   if (control == this.btnVolume)
   {
     this.SaveSettings();
   }
   if (control == this.btnProgress)
   {
     this.SaveSettings();
   }
   if (control == this.btnDiskIcon)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnMediaStatus)
   {
     this.SaveSettings();
   }
   if (control == this.btnDiskStatus)
   {
     this.SaveSettings();
   }
   if (control == this.btnCustomFont)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnLargeIcons)
   {
     this.SaveSettings();
     this.SetButtons();
   }
   if (control == this.btnCustomIcons)
   {
     this.SaveSettings();
   }
   if (control == this.btnInvertIcons)
   {
     this.SaveSettings();
   }
   if (control == this.btnFontEditor)
   {
     Form form = new iMONLCDg_FontEdit();
     form.ShowDialog();
     form.Dispose();
   }
   if (control == this.btnIconEditor)
   {
     Form form2 = new iMONLCDg_IconEdit();
     form2.ShowDialog();
     form2.Dispose();
   }
   base.OnClicked(controlId, control, actionType);
 }
开发者ID:sanyaade-embedded-systems,项目名称:MediaPortal-1,代码行数:55,代码来源:DisplayOptionsWindow.cs


示例17: TextScrollUpElement

 /// <summary>
 /// Creates the element and retrieves all information from the control
 /// </summary>
 /// <param name="control">GUIControl</param>
 public TextScrollUpElement(GUIControl control)
     : base(control)
 {
     _textScrollUp = control as GUITextScrollUpControl;
       if (_textScrollUp != null)
       {
     _font = GetFont(_textScrollUp.FontName);
     _brush = new SolidBrush(GetColor(_textScrollUp.TextColor));
     _label = _textScrollUp.Property;
       }
 }
开发者ID:MisterD81,项目名称:MyMPlayer,代码行数:15,代码来源:TextScrollUpElement.cs


示例18: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == hidePlaylistButton)
     {
         WindowManager.ShowPlayList();
     }
     if (control == playlistControl)
     {
         onPlaylistControl();
     }
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:11,代码来源:PlayListGUI.cs


示例19: FadeLabelElement

 /// <summary>
 /// Creates the element and retrieves all information from the control
 /// </summary>
 /// <param name="control">GUIControl</param>
 public FadeLabelElement(GUIControl control)
     : base(control)
 {
     _label = control as GUIFadeLabel;
       if (_label != null)
       {
     _font = GetFont(_label.FontName);
     _brush = new SolidBrush(GetColor(_label.TextColor));
     _labelString = _label.Label;
       }
 }
开发者ID:MisterD81,项目名称:MyMPlayer,代码行数:15,代码来源:FadeLabelElement.cs


示例20: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
 {
     switch (controlId)
     {
         case (int)GUIControls.Style:
             break;
         case (int)GUIControls.ThumbViewMod:
             ShowThumbnailContextMenu();
             break;
     }
     base.OnClicked(controlId, control, actionType);
 }
开发者ID:ncoH,项目名称:Avalon,代码行数:12,代码来源:MovingPicturesConfig.cs



注:本文中的MediaPortal.GUI.Library.GUIControl类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Library.GUIFont类代码示例发布时间:2022-05-26
下一篇:
C# Library.Action类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap