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

C# RibbonUIEventArgs类代码示例

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

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



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

示例1: KinectRibbon_Load

 private void KinectRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     KinectManager.Instance.UserFound += KinectManager_UserFound;
     KinectManager.Instance.UserLost += KinectManager_UserLost;
     KinectManager.Instance.KinectStarted += KinectManager_KinectStarted;
     KinectManager.Instance.KinectStopped += KinectManager_KinectStopped;
 }
开发者ID:atosorigin,项目名称:Kinect,代码行数:7,代码来源:KinectRibbon.cs


示例2: AsposeRibbon_Load

 private void AsposeRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     if (Globals.ThisAddIn.EnableAsposeWordsMetadata == false)
         CB_EnableAsposeWordsMetadataCleaner.Checked = false;
     else
         CB_EnableAsposeWordsMetadataCleaner.Checked = true;
 }
开发者ID:joyang1,项目名称:Aspose_Words_NET,代码行数:7,代码来源:AsposeRibbon.cs


示例3: RibbonReadMailMessage_Load

        private void RibbonReadMailMessage_Load(object sender, RibbonUIEventArgs e)
        {
            try
            {
                bool shouldShowWorkshareTab = false;
                using (var inspector = new WsInspector((Inspector) Context))
                {
                    var mailItem = inspector.CurrentItem as WsMailItem;
                    if (mailItem != null)
                    {
                        for (int i = 1; i <= mailItem.Attachments.Count; i++)
                        {
                            if (mailItem.Attachments[i].DisplayName == "Picture (Device Independent Bitmap)")
                                continue;


                            if (Utils.IsInterestingFileType(mailItem.Attachments[i].FileName))
                            {
                                shouldShowWorkshareTab = true;
                                break;
                            }
                        }
                    }
                }

                tabWorkshare.Visible = shouldShowWorkshareTab;
            }
            catch (Exception ex)
            {
                Logger.LogError(ex);
            }
        }
开发者ID:killbug2004,项目名称:WSProf,代码行数:32,代码来源:RibbonReadMailMessage.cs


示例4: TicketManagerRibbon_Load

 private void TicketManagerRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     JIRAProjectName.Text = Globals.ThisAddIn.JiraProjectName;
     JIRAServerURL.Text = Globals.ThisAddIn.JiraProjectURL;
     JIRAUsername.Text = Globals.ThisAddIn.JiraUsername;
     JIRAPassword.Text = Globals.ThisAddIn.JiraPassword;
 }
开发者ID:strich,项目名称:MS-Project-JIRA-Ticket-Manager-Add-In,代码行数:7,代码来源:TicketManagerRibbon.cs


示例5: RibbonSend_Load

        private void RibbonSend_Load(object sender, RibbonUIEventArgs e)
        {
            _track = Configuration.ConfigurationManager.GetInstance().GetTrackEmails();

            stop_track_checkbox.Checked = _track;

            checkBox1.Checked = Configuration.ConfigurationManager.GetInstance().GetShowFileLinkDialog();
        }
开发者ID:Mike0so,项目名称:PF-MAIL-OUTLOOK,代码行数:8,代码来源:RibbonSend.cs


示例6: Ribbon1_Load

 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     //if the settings file does not exist, create it
     if (!File.Exists(path+fileName))
     {
         CreateFile();
     }
 }
开发者ID:jamesfaske,项目名称:Report-Spam,代码行数:8,代码来源:Ribbon1.cs


示例7: RibbonRedmineEmail_Load

 private void RibbonRedmineEmail_Load(object sender, RibbonUIEventArgs e)
 {
     SettingsChanged();
     dropDownServer.SelectionChanged += (o, args) =>
     {
         _settings.SelectedRedmineServer = dropDownServer.SelectedItemIndex;
     };
 }
开发者ID:lukecummings,项目名称:redmine-outlook-addin,代码行数:8,代码来源:RibbonRedmineEmail.cs


示例8: ImporterRibbon_Load

 private void ImporterRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     this.select = new FolderSelection();
     this.select.ribbon = this;
     this.excelWin = Globals.Program.Application.ActiveWindow;
     this.import = new HeaderImport(excelWin);
     this.calc = new CalcImport(this);
     this.openFile = new System.Windows.Forms.OpenFileDialog();
     this.openFile.Filter = "Excel files(*.xls;*.xlsx;*.xlsm)|*.xls;*.xlsx;*.xlsm";
 }
开发者ID:RichardRanft,项目名称:Importer,代码行数:10,代码来源:ImporterRibbon.cs


示例9: CcmRibbon_Load

        private void CcmRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            application = CmmAddIn.thisApp;
            CmmAddIn.OnProjectLoaded += (project) => { 
                this.project = project;

                // Update ribbon display
                var isBuffersHidden = CcmData.GetIsBuffersHidden();
                HideUnhideBuffers(isBuffersHidden);
            };
        }
开发者ID:hbraasch,项目名称:CriticalChainAddIn,代码行数:11,代码来源:CcmRibbon.cs


示例10: QuestionnaireRibbon_Load

        private void QuestionnaireRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            RefreshSetAndAdd();

            AppWapper.App.SlideSelectionChanged += App_SlideSelectionChanged;
            AppWapper.App.SlideShowNextSlide += App_SlideShowNextSlide;
            AppWapper.App.PresentationOpen += App_PresentationOpen;


            _loginWindow = new LoginWindow();
            _loginWindow.Closed += LoginWindowClosed;
        }
开发者ID:ccnuyan,项目名称:PowerPointQuestionnaire,代码行数:12,代码来源:QuestionnaireRibbon.cs


示例11: VPTRibbon_Load

 private void VPTRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     try
     {
         this.client = new VisioAutomation.Scripting.Client(Globals.ThisAddIn.Application);
     }
     catch (System.Exception)
     {
         string msg = "Failed to load Visio Power Tools";
         MessageBox.Show(msg);
     }
 }
开发者ID:modulexcite,项目名称:Visio-Power-Tools,代码行数:12,代码来源:VPTRibbon.cs


示例12: Ribbon_Load

        private void Ribbon_Load(object sender, RibbonUIEventArgs e)
        {
            _kinectStatus = BootStrapper.Kernel.Get<IKinectStatus>();
            UpdateUsers(null, _kinectStatus.TrackedBodies);

            _kinectStatus.AvailabilityChanged += UpdateAvailability;
            _kinectStatus.TrackedBodyCountChanged += UpdateUsers;
            _kinectStatus.ErrorOccured += _kinectStatus_ErrorOccured;

            _gestures = BootStrapper.Kernel.Get<IGestures>();
            _gestures.GrabAndThrowLeftHanded += GrabAndThrowLeftHanded;
            _gestures.GrabAndThrowRightHanded += GrabAndThrowRightHanded;
        }
开发者ID:jansaris,项目名称:KinectV2,代码行数:13,代码来源:Ribbon.cs


示例13: RibbonNewMessage_Load

        private void RibbonNewMessage_Load(object sender, RibbonUIEventArgs e)
        {
            if (_presenter == null)
            {                
                _presenter = new RibbonNewMessagePresenter(this, new RibbonNewMessageModel());
                btnSendAndProtect.Click += _presenter.OnSendAndProtectClicked;
                btnAddLargeAttachment.Click += _presenter.OnAddLargeAttachmentClicked;

                if (ShouldDisposeExcelSimpleMapiMailRibbon())
                {                    
                    DisposeExcelSimpleMapiMailRibbon();
                }
            }            
        }
开发者ID:killbug2004,项目名称:WSProf,代码行数:14,代码来源:RibbonNewMessage.cs


示例14: Ribbon1_Load

        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {            
            gpAdmin.Visible = false;
            gpData.Visible = false;
            gpDraft.Visible = false;
            btnLogout.Enabled = false;
            btnLogin.Enabled = true;
            gpDebug.Visible = false;

            btnReports.Enabled = false;

            gpDraft.Visible = false;
            gpAdmin.Visible = false;

        }
开发者ID:santoshsaha,项目名称:AxiomCS-Ribbon02,代码行数:15,代码来源:Ribbon1.cs


示例15: MyRibbon_Load

        private void MyRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            Globals.ThisWorkbook.ActionsPane.Controls.Add(actionsPane1);
            Globals.ThisWorkbook.ActionsPane.Controls.Add(actionsPane2);
            actionsPane1.Hide();
            actionsPane2.Hide();
            Globals.ThisWorkbook.Application.DisplayDocumentActionTaskPane = false;

            this.button1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(
                this.button1_Click);
            this.button2.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(
                this.button2_Click);
            this.toggleButton1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(
                this.toggleButton1_Click);
        }
开发者ID:heiwang,项目名称:TestExcelProject,代码行数:15,代码来源:MyRibbon.cs


示例16: RibbonEllipse_Load

 private void RibbonEllipse_Load(object sender, RibbonUIEventArgs e)
 {
     _excelApp = Globals.ThisAddIn.Application;
     if (_cells == null)
         _cells = new ExcelStyleCells(_excelApp);
     _eFunctions.DebugQueries = false;
     _eFunctions.DebugErrors = false;
     _eFunctions.DebugWarnings = false;
     var enviroments = EnviromentConstants.GetEnviromentList();
     foreach (var env in enviroments)
     {
         var item = Factory.CreateRibbonDropDownItem();
         item.Label = env;
         drpEnviroment.Items.Add(item);
     }
 }
开发者ID:huancone,项目名称:EllipseMSO261ProntoPagoExcelAddIn,代码行数:16,代码来源:RibbonEllipse.cs


示例17: ExcelRibbon_Load

        private void ExcelRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            cmbModules.Items.Clear();

            foreach (var module in PSAddinModules.ModuleHandler.ModuleList)
            {
                var dropDownItem = this.Factory.CreateRibbonDropDownItem();
                dropDownItem.Label = module.Value.Name;
                cmbModules.Items.Add(dropDownItem);
            }

            bool blVisible = false;
            string value = string.Empty;
            value = System.Configuration.ConfigurationManager.AppSettings["showdevelopermodule"];
            bool.TryParse(value, out blVisible);
            devGroup.Visible = blVisible;
        }
开发者ID:PSDevGithub,项目名称:PSExcelAddin2010,代码行数:17,代码来源:ExcelRibbon.cs


示例18: SalaryMailGenerator_Load

        private void SalaryMailGenerator_Load(object sender, RibbonUIEventArgs e)
        {
            _app = Globals.ThisAddIn.Application;

            var outputColumns = System.Configuration.ConfigurationManager.AppSettings["OutputColumns"];
            if (!string.IsNullOrEmpty(outputColumns))
            {
                int result = 0;
                if (Int32.TryParse(outputColumns, out result))
                {
                    if (result != 0)
                    {
                        this._columnCount = result;
                    }
                }
            }
        }
开发者ID:fr4nky80,项目名称:LearnCSharp,代码行数:17,代码来源:SalaryMailGenerator.cs


示例19: PPRRibbon_Load

        private void PPRRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            #if !DEBUG
            this.buttonCopyCodeToClipboard.Visible = false;
            #endif

            this.addInInstance = PPRAddIn.GetInstance();
            PPRServer server = this.addInInstance.GetServer();
            if ( server != null )
            {
                server.Started += server_Started;
                server.Stopped += server_Stopped;

                server.ClientStatus += server_ClientStatus;
            }

            this.server_Stopped(this, EventArgs.Empty);
        }
开发者ID:sgade,项目名称:powerpoint-remote-server,代码行数:18,代码来源:PPRRibbon.cs


示例20: MainHedgeUI_Load

        private void MainHedgeUI_Load(object sender, RibbonUIEventArgs e)
        {
            DatabaseLayer.DataBaseConnection.SqlConnection_.Open();
            //ProgramVariable.Initialize();
            this.HedgeTradingViewModel_ = new HedgeTradingViewModel();
            
            // base data가 잘 생성 되면 그 날짜를 가져옴.
            this.RefDate_ = DateTime.Now;

            // 이건 배치로 돌려야함..
            this._dataGen();

            this._BookListDropDown_Initialize();
            
            this._BookLoad(this.BookListDropDown.Items[0].Label);

            this._buildRefDatePosition();

        }
开发者ID:minikie,项目名称:test,代码行数:19,代码来源:MainHedgeUI.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# RightToLeft类代码示例发布时间:2022-05-24
下一篇:
C# RibbonElementSizeMode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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