Example #1
0
        // ITaskpane Member

        public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
        {
            ParentPane            = parentPane;
            LastParentPaneVisible = parentPane.Visible;
            commandPane1.OnConnection(application, parentPane, customArguments);
            propertyPane1.OnConnection(application, parentPane, customArguments);
            infoPane1.OnConnection(application, parentPane, customArguments);
        }
Example #2
0
        public NetOffice.OfficeApi._CustomTaskPane CreateCTP(string cTPAxID, string cTPTitle)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(cTPAxID, cTPTitle);
            object   returnItem  = Invoker.MethodReturn(this, "CreateCTP", paramsArray);

            NetOffice.OfficeApi._CustomTaskPane newObject = Factory.CreateObjectFromComProxy(this, returnItem) as NetOffice.OfficeApi._CustomTaskPane;
            return(newObject);
        }
Example #3
0
 public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     ApplicationHandler = new OfficeApplicationManager(application);
     AvailableProxy[] proxies = ApplicationHandler.GetAvailableProxies();
     if (proxies.Length > 0)
     {
         comboBoxTarget.DataSource    = proxies;
         comboBoxTarget.SelectedIndex = 0;
     }
 }
 public void OnConnection(Excel.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     try
     {
         Application = application;
         Application.SheetSelectionChangeEvent += new Excel.Application_SheetSelectionChangeEventHandler(Application_SheetSelectionChangeEvent);
     }
     catch (Exception exception)
     {
         ShowError(string.Format("An errror occured. Details: {0}", exception.Message));
     }
 }
        public void DockPositionStateChange([In, MarshalAs(UnmanagedType.IDispatch)] object customTaskPaneInst)
        {
            if (!Validate("DockPositionStateChange"))
            {
                Invoker.ReleaseParamsArray(customTaskPaneInst);
                return;
            }

            NetOffice.OfficeApi._CustomTaskPane newCustomTaskPaneInst = Factory.CreateEventArgumentObjectFromComProxy(EventClass, customTaskPaneInst) as NetOffice.OfficeApi._CustomTaskPane;
            object[] paramsArray = new object[1];
            paramsArray[0] = newCustomTaskPaneInst;
            EventBinding.RaiseCustomEvent("DockPositionStateChange", ref paramsArray);
        }
        public void DockPositionStateChange([In, MarshalAs(UnmanagedType.IDispatch)] object customTaskPaneInst)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("DockPositionStateChange");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(customTaskPaneInst);
                return;
            }

            NetOffice.OfficeApi._CustomTaskPane newCustomTaskPaneInst = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, customTaskPaneInst) as NetOffice.OfficeApi._CustomTaskPane;
            object[] paramsArray = new object[1];
            paramsArray[0] = newCustomTaskPaneInst;
            _eventBinding.RaiseCustomEvent("DockPositionStateChange", ref paramsArray);
        }
Example #7
0
 public void OnConnection(NetOffice.OutlookApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     InitializeTaskPane();
     Client = new TwitterTimer(this, Client_Error);
     Client.EnabledChanegd += new EnabledChangedEventHanlder(Client_EnabledChanegd);
     settingsPane.Initialize(Client);
     tweetGrid.DataSource = Client;
     button_Click(buttonMain, new EventArgs());
     if (Config.Enabled)
     {
         tweetGrid.Enabled = true;
         Client.Enabled    = true;
     }
     else
     {
         tweetGrid.Enabled = false;
     }
 }
Example #8
0
        void NetOffice.WordApi.Tools.ITaskPane.OnConnection(NetOffice.WordApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
        {
            TestAddin addin = customArguments[0] as TestAddin;

            addin.TaskPaneOkay = true;
        }
Example #9
0
 public void OnConnection(NetOffice.OutlookApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
 }
Example #10
0
 public void OnConnection(NetOffice.AccessApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     StartTime = DateTime.Now;
     buttonEnabled_Click(buttonEnabled, new EventArgs());
 }
Example #11
0
 public void OnConnection(NetOffice.ICOMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     Addin parentAddin = customArguments[0] as Addin;
 }
Example #12
0
 public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
 }
Example #13
0
 public void DockPositionStateChange(NetOffice.OfficeApi._CustomTaskPane customTaskPaneInst)
 {
     Factory.ExecuteMethod(this, "DockPositionStateChange", customTaskPaneInst);
 }
Example #14
0
 public void VisibleStateChange(NetOffice.OfficeApi._CustomTaskPane customTaskPaneInst)
 {
     Factory.ExecuteMethod(this, "VisibleStateChange", customTaskPaneInst);
 }
Example #15
0
 public void OnConnection(NetOffice.ExcelApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
 {
     Counter            = new PerformanceCounter("Process", "% Processor Time", "Excel");
     UsageTimer.Enabled = true;
 }
 public void DockPositionStateChange(NetOffice.OfficeApi._CustomTaskPane customTaskPaneInst)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(customTaskPaneInst);
     Invoker.Method(this, "DockPositionStateChange", paramsArray);
 }
Example #17
0
        public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments)
        {
            Addin parent = customArguments[0] as Addin;

            gridCommands.DataSource = parent.Commands;
        }