本文整理汇总了C#中RibbonUIEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# RibbonUIEventArgs类的具体用法?C# RibbonUIEventArgs怎么用?C# RibbonUIEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RibbonUIEventArgs类属于命名空间,在下文中一共展示了RibbonUIEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例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();
}
示例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();
}
}
示例7: RibbonRedmineEmail_Load
private void RibbonRedmineEmail_Load(object sender, RibbonUIEventArgs e)
{
SettingsChanged();
dropDownServer.SelectionChanged += (o, args) =>
{
_settings.SelectedRedmineServer = dropDownServer.SelectedItemIndex;
};
}
示例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";
}
示例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);
};
}
示例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;
}
示例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);
}
}
示例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;
}
示例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();
}
}
}
示例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;
}
示例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);
}