// 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); }
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); }
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); }
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; } }
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; }
public void OnConnection(NetOffice.OutlookApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments) { }
public void OnConnection(NetOffice.AccessApi.Application application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments) { StartTime = DateTime.Now; buttonEnabled_Click(buttonEnabled, new EventArgs()); }
public void OnConnection(NetOffice.ICOMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments) { Addin parentAddin = customArguments[0] as Addin; }
public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments) { }
public void DockPositionStateChange(NetOffice.OfficeApi._CustomTaskPane customTaskPaneInst) { Factory.ExecuteMethod(this, "DockPositionStateChange", customTaskPaneInst); }
public void VisibleStateChange(NetOffice.OfficeApi._CustomTaskPane customTaskPaneInst) { Factory.ExecuteMethod(this, "VisibleStateChange", customTaskPaneInst); }
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); }
public void OnConnection(COMObject application, NetOffice.OfficeApi._CustomTaskPane parentPane, object[] customArguments) { Addin parent = customArguments[0] as Addin; gridCommands.DataSource = parent.Commands; }