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);
            }
        }
Example #2
0
 private void AsposeRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     if (Globals.ThisAddIn.EnableAsposeWordsMetadata == false)
         CB_EnableAsposeWordsMetadataCleaner.Checked = false;
     else
         CB_EnableAsposeWordsMetadataCleaner.Checked = true;
 }
 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;
 }
Example #4
0
 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;
 }
Example #5
0
        private void RibbonSend_Load(object sender, RibbonUIEventArgs e)
        {
            _track = Configuration.ConfigurationManager.GetInstance().GetTrackEmails();

            stop_track_checkbox.Checked = _track;

            checkBox1.Checked = Configuration.ConfigurationManager.GetInstance().GetShowFileLinkDialog();
        }
 private void RibbonRedmineEmail_Load(object sender, RibbonUIEventArgs e)
 {
     SettingsChanged();
     dropDownServer.SelectionChanged += (o, args) =>
     {
         _settings.SelectedRedmineServer = dropDownServer.SelectedItemIndex;
     };
 }
Example #7
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     //if the settings file does not exist, create it
     if (!File.Exists(path+fileName))
     {
         CreateFile();
     }
 }
Example #8
0
 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";
 }
Example #9
0
        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);
            };
        }
 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);
     }
 }
        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;
        }
Example #12
0
        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;
        }
Example #13
0
        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();
                }
            }            
        }
Example #14
0
        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);
        }
Example #15
0
        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;

        }
 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);
     }
 }
        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;
        }
        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;
                    }
                }
            }
        }
        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);
        }
Example #20
0
        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();

        }
Example #21
0
 private void ExplorerRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     // Creating the dialog for the first time takes a while as all the WPF
     // assemblies need to load.  So, start doing that in a background thread...
     // can't use QueueUserWorkItem because the AppartmentState needs to be set.
     var thread = new Thread(() =>
         {
             var dialog = new ProgressDialog();
             dialog.Visibility = System.Windows.Visibility.Hidden;
             dialog.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;
             dialog.ShowActivated = false;
             dialog.Left = dialog.Top = -1000;
             dialog.Opacity = 0;
             dialog.Height = dialog.Width = 0;
             dialog.Loaded += (sender_, e_) => dialog.Close();
             dialog.Show();
         }
         );
     thread.Priority = ThreadPriority.Lowest;
     thread.IsBackground = true;
     thread.SetApartmentState(ApartmentState.STA);
     thread.Start();
 }
Example #22
0
 private void Ribbon2_Load(object sender, RibbonUIEventArgs e)
 {
     TestRefType();
 }
Example #23
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     ClipboardNotification.ClipboardUpdate += ClipboardNotification_ClipboardUpdate;
 }
Example #24
0
 private void STE_Tools_Load(object sender, RibbonUIEventArgs e)
 {
     _serialNumberGenerator = new SerialNumberGenerator();
 }
Example #25
0
 private void CsRibbonExtention_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #26
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #27
0
        private void MainRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            this.group1.Visible = false;
            var defaultitem = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem();

            defaultitem.Label = "none";
            this.ModelTargetDropDown.Items.Add(defaultitem);

            startupTask = Task.Run(() =>
            {
                //get current application
                this.application = NetOffice.VisioApi.Application.GetActiveInstance();
                this.spesapp     = new SpesActivities(this.application);

                //add modelverifiers
                modelverifiers.Add(new ScenarioNetwork(application));
                modelverifiers.Add(new FunktionsnetzNetwork(application));
                modelverifiers.Add(new ZielmodellNetwork(application));

                //new ones
                modelverifiers.Add(new WissenskontextNetwork(application));
                modelverifiers.Add(new StrukturellerKontextNetwork(application));
                modelverifiers.Add(new FunktionellerKontextNetwork(application));
                modelverifiers.Add(new SzenarioUseCasesNetwork(application));
                modelverifiers.Add(new StrukturellePerspektiveNetwork(application));
                modelverifiers.Add(new FunktionellePerspektiveNetwork(application));
                modelverifiers.Add(new VerhaltensperspektiveNetwork(application));
                modelverifiers.Add(new LogicalViewpointNetwork(application));
                modelverifiers.Add(new TechnicalViewpointNetwork(application));

                //add modelverifiers to dropdown menu and subscribe to events
                foreach (var obj in modelverifiers)
                {
                    //dropdown
                    var item   = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem();
                    item.Label = obj.ModelName;
                    this.ModelTargetDropDown.Items.Add(item);

                    //sub to log messages etc.
                    obj.OnErrorReceivedEvent += delegate(Exception pEx) {
                        //move to most inner exception
                        while (pEx.InnerException != null)
                        {
                            pEx = pEx.InnerException;
                        }
                        System.Windows.Forms.MessageBox.Show(pEx.Message);
                    };
                    //obj.OnLogMessageReceivedEvent += delegate (String pMessage) { System.Windows.Forms.MessageBox.Show(pMessage); };
                }

                //init stencils for modelverifiers
                modelverifiers.ForEach(t => t.CheckStencils());

                //call selection changed for init shape load (only if document is loaded)
                if (application.ActiveDocument != null)
                {
                    ModelTargetDropDown_SelectionChanged(null, null);
                }

                //subscribe to application events
                application.DocumentCreatedEvent += Application_DocumentLoadedOrCreated;
                application.DocumentOpenedEvent  += Application_DocumentLoadedOrCreated;
                application.EnterScopeEvent      += delegate(IVApplication app, int id, string description)
                {
                    //4490 = hyperlink event
                    if (id == 4490)
                    {
                        this.initialized = false;
                    }
                };
            });
            startupTask.ContinueWith(t =>
            {
                this.group1.Visible = true;

                this.ModelTargetDropDown.Enabled       = true;
                this.VerifyButton.Enabled              = true;
                this.ImportButton.Enabled              = true;
                this.ExportButton.Enabled              = true;
                this.CreateNewSPESProject.Enabled      = true;
                this.GenerateSubmodelsButton.Enabled   = true;
                this.CompleteInterfaceAutomata.Enabled = true;
                this.CreateNewEngineeringPath.Enabled  = true;

                ModelTargetDropDown_SelectionChanged(null, null);
            }
                                     );
        }
Example #28
0
 private void ManageTaskPaneRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #29
0
        private void Ribbon_Load(object sender, RibbonUIEventArgs e)
        {
            DataModel.Instance.WorkbookSelectionChangedEventHandler += Ribbon_WorkbookSelectionChanged;
            DataModel.Instance.CellDefinitionChangedEventHandler += Ribbon_WorkbookSelectionChanged;

            automaticScanCheckBox.Checked = Settings.Default.AutomaticScans;
        }
 private void CalendarEventFromTextRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #31
0
 private void ConverRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void CalendarRibbonButton_Load(object sender, RibbonUIEventArgs e)
 {
     setLanguage();
 }
Example #33
0
 private void CalDavSynchronizerRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     ThisAddIn.SynchronizationFailedWhileReportsFormWasNotVisible += SynchronizationFailedWhileReportsFormWasNotVisible;
 }
 private void PivotGroupingRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void NavRange_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void Ribbon2010_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #37
0
 private void AlertLevel_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void RibbonStackBuilder_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #39
0
 private void LogMvtResultsRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #40
0
 private void RibbonDocumentManagement_Load(object sender, RibbonUIEventArgs e)
 {
     // 言語設定読込み  // step2
     Localizable();
 }
Example #41
0
 private void WakaTimeRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #42
0
 private void Ribbon_Load(object sender, RibbonUIEventArgs e)
 {
     // TODO: checken ob User eingeloggt ist. Wenn nicht, dann wird selectSurvey-group ausgegraut.
 }
Example #43
0
 private void SEMC_SQL_For_Excel_Load(object sender, RibbonUIEventArgs e)
 {
     ExportFromSQL.Enabled = false;
     ImportInDB.Enabled    = false;
 }
Example #44
0
 private void XLantRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void CrmSyncRibbonDesign_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #46
0
 private void BankReconciliationRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #47
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     dic = this.getdic();
 }
Example #48
0
        //TODO:  Need to unload all COM

        private void AddInRibbon_Load(object sender, RibbonUIEventArgs e)
        {
        }
 private void DesignModeRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void RibbonEnecogenWeb_Load(object sender, RibbonUIEventArgs e)
 {
     editBoxSheetName.Text = DataType.SelectedItem.Tag.ToString();
     app              = Globals.ThisAddIn.Application;
     app.SheetChange += app_SheetChange;
 }
 private void GithubRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #52
0
 private void TildaRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
Example #53
0
 private void IG_Ribbon_Load(object sender, RibbonUIEventArgs e)
 {
     branchLoaded = false;
     btnExportTable.Enabled = false;
     btnExportMonsterTable.Enabled = false;
     btnExportMetaTable.Enabled = false;
     //IG_TableGroup.Label = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion;
     branch = null;
 }
Example #54
0
 private void Worship_Load(object sender, RibbonUIEventArgs e)
 {
     testCmb();
 }
 private void CalDavSynchronizerRibbon_Load (object sender, RibbonUIEventArgs e)
 {
 }
Example #56
0
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     this.check_button.Label    = Resources.WinFormStrings.check;
     this.settings_button.Label = Resources.WinFormStrings.settings;
 }
Example #57
0
 private void Ribbon_Load(object sender, RibbonUIEventArgs e)
 {
     InitializePowerPoint();
     InitializeKinect();
 }
Example #58
0
 private void ReporterRibbon_Load(object sender, RibbonUIEventArgs e)
 {
 }
 private void TestAutomationRibbon_Load (object sender, RibbonUIEventArgs e)
 {
 }
 private void AutoEmfRbbon_Load(object sender, RibbonUIEventArgs e)
 {
 }