private void adxApprovedByBox_Connect(object sender, System.EventArgs e) { try { AddinExpress.MSO.ADXMSFormsComboBox cmb = MSFControlByName("ApprovedByBox") as AddinExpress.MSO.ADXMSFormsComboBox; if (cmb.ListCount == 0) { cmb.AddItem("Harrison, George, director"); } } catch (Exception err) { MessageBox.Show(err.Message, err.Source, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void adxFromBox_Connect(object sender, System.EventArgs e) { try { AddinExpress.MSO.ADXMSFormsComboBox cmb = this.MSFControlByName("FromBox") as AddinExpress.MSO.ADXMSFormsComboBox; if (cmb.ListCount == 0) { cmb.AddItem("Fish Research Labs"); } } catch (Exception err) { MessageBox.Show(err.Message, err.Source, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void adxEmployeeBox_Connect(object sender, System.EventArgs e) { try { AddinExpress.MSO.ADXMSFormsComboBox cmb = MSFControlByName("EmployeeBox") as AddinExpress.MSO.ADXMSFormsComboBox; if (cmb.ListCount == 0) { cmb.AddItem(Employees[0]); cmb.AddItem(Employees[1]); cmb.AddItem(Employees[2]); } } catch (Exception err) { MessageBox.Show(err.Message, err.Source, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// Required by designer support - do not modify /// the following method /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.adxEmployeeBox = new AddinExpress.MSO.ADXMSFormsComboBox(this.components); this.adxApprovedByBox = new AddinExpress.MSO.ADXMSFormsComboBox(this.components); this.adxPeriodFromBtn = new AddinExpress.MSO.ADXMSFormsCommandButton(this.components); this.adxPeriodToBtn = new AddinExpress.MSO.ADXMSFormsCommandButton(this.components); this.adxImportBtn = new AddinExpress.MSO.ADXMSFormsCommandButton(this.components); this.adxCommandBar1 = new AddinExpress.MSO.ADXCommandBar(this.components); this.adxClearTimesheet = new AddinExpress.MSO.ADXCommandBarButton(this.components); this.adxRibbonTab1 = new AddinExpress.MSO.ADXRibbonTab(this.components); this.adxRibbonGroup1 = new AddinExpress.MSO.ADXRibbonGroup(this.components); this.adxRibbonButtonClearTimesheet = new AddinExpress.MSO.ADXRibbonButton(this.components); // // adxEmployeeBox // this.adxEmployeeBox.ControlName = "EmployeeBox"; this.adxEmployeeBox.Connect += new System.EventHandler(this.adxEmployeeBox_Connect); this.adxEmployeeBox.Click += new System.EventHandler(this.adxEmployeeBox_Click); // // adxApprovedByBox // this.adxApprovedByBox.ControlName = "ApprovedByBox"; this.adxApprovedByBox.Connect += new System.EventHandler(this.adxApprovedByBox_Connect); this.adxApprovedByBox.Click += new System.EventHandler(this.adxApprovedByBox_Click); // // adxPeriodFromBtn // this.adxPeriodFromBtn.ControlName = "PeriodFromBtn"; this.adxPeriodFromBtn.Click += new System.EventHandler(this.adxPeriodFromBtn_Click); // // adxPeriodToBtn // this.adxPeriodToBtn.ControlName = "PeriodToBtn"; this.adxPeriodToBtn.Click += new System.EventHandler(this.adxPeriodToBtn_Click); // // adxImportBtn // this.adxImportBtn.ControlName = "ImportBtn"; this.adxImportBtn.Click += new System.EventHandler(this.adxImportBtn_Click); // // adxCommandBar1 // this.adxCommandBar1.CommandBarName = "Excel Timesheet Bar"; this.adxCommandBar1.CommandBarTag = "c5203094-114e-42f5-af0e-93441442b896"; this.adxCommandBar1.Controls.Add(this.adxClearTimesheet); this.adxCommandBar1.SupportedApps = AddinExpress.MSO.ADXOfficeHostApp.ohaExcel; this.adxCommandBar1.UpdateCounter = 9; // // adxClearTimesheet // this.adxClearTimesheet.Caption = "Clear Timesheet"; this.adxClearTimesheet.ControlTag = "8b0cb1ee-366b-486b-9d7e-fdef6aef0157"; this.adxClearTimesheet.ImageTransparentColor = System.Drawing.Color.Transparent; this.adxClearTimesheet.UpdateCounter = 13; this.adxClearTimesheet.Click += new AddinExpress.MSO.ADXClick_EventHandler(this.adxClearTimesheet_Click); // // adxRibbonTab1 // this.adxRibbonTab1.Caption = "Excel Timesheet Sample"; this.adxRibbonTab1.Controls.Add(this.adxRibbonGroup1); this.adxRibbonTab1.Id = "adxRibbonTab_5065698129f84f2caddbe1a393506eb5"; // // adxRibbonGroup1 // this.adxRibbonGroup1.Caption = "Excel Timesheet"; this.adxRibbonGroup1.Controls.Add(this.adxRibbonButtonClearTimesheet); this.adxRibbonGroup1.Id = "adxRibbonGroup_b97581263aaf4862acb03c62c5545d90"; this.adxRibbonGroup1.ImageTransparentColor = System.Drawing.Color.Transparent; // // adxRibbonButtonClearTimesheet // this.adxRibbonButtonClearTimesheet.Caption = "Clear Timesheet"; this.adxRibbonButtonClearTimesheet.Id = "adxRibbonButton_8087e5cf93fd45959fca33f4dbda347d"; this.adxRibbonButtonClearTimesheet.ImageTransparentColor = System.Drawing.Color.Transparent; this.adxRibbonButtonClearTimesheet.OnClick += new AddinExpress.MSO.ADXRibbonOnAction_EventHandler(this.adxRibbonButtonClearTimesheet_OnClick); // // TimesheetModule // this.Description = "ADX Excel Worksheet Module Example"; this.ModuleName = "TimesheetModule"; this.PropertyId = "_ADX_ExcelTimesheet"; this.PropertyValue = "Created for the ExcelTimesheet project."; this.Worksheet = "Timesheet"; this.Activate += new System.EventHandler(this.TimesheetModule_Activate); this.Deactivate += new System.EventHandler(this.TimesheetModule_Deactivate); }
/// <summary> /// Required by designer support - do not modify /// the following method /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.adxToBox = new AddinExpress.MSO.ADXMSFormsComboBox(this.components); this.adxFromBox = new AddinExpress.MSO.ADXMSFormsComboBox(this.components); this.adxAddressLbl = new AddinExpress.MSO.ADXMSFormsLabelControl(this.components); this.adxFaxLbl = new AddinExpress.MSO.ADXMSFormsLabelControl(this.components); this.adxDateLbl = new AddinExpress.MSO.ADXMSFormsLabelControl(this.components); this.adxDateBtn = new AddinExpress.MSO.ADXMSFormsCommandButton(this.components); this.adxWordFaxBar = new AddinExpress.MSO.ADXCommandBar(this.components); this.adxClearControlsBtn = new AddinExpress.MSO.ADXCommandBarButton(this.components); this.adxWordFaxRibbonTab = new AddinExpress.MSO.ADXRibbonTab(this.components); this.adxWordFaxRibbonGroup = new AddinExpress.MSO.ADXRibbonGroup(this.components); this.adxClearControlsRibbonButton = new AddinExpress.MSO.ADXRibbonButton(this.components); // // adxToBox // this.adxToBox.ControlName = "ToBox"; this.adxToBox.Connect += new System.EventHandler(this.adxToBox_Connect); this.adxToBox.Click += new System.EventHandler(this.adxToBox_Click); // // adxFromBox // this.adxFromBox.ControlName = "FromBox"; this.adxFromBox.Connect += new System.EventHandler(this.adxFromBox_Connect); this.adxFromBox.Click += new System.EventHandler(this.adxFromBox_Click); // // adxAddressLbl // this.adxAddressLbl.ControlName = "AddressLbl"; // // adxFaxLbl // this.adxFaxLbl.ControlName = "FaxLbl"; // // adxDateLbl // this.adxDateLbl.ControlName = "DateLbl"; // // adxDateBtn // this.adxDateBtn.ControlName = "DateBtn"; this.adxDateBtn.Click += new System.EventHandler(this.adxDateBtn_Click); // // adxWordFaxBar // this.adxWordFaxBar.CommandBarName = "Word Fax Bar"; this.adxWordFaxBar.CommandBarTag = "6b99158d-946a-4951-a6d1-c258480ec852"; this.adxWordFaxBar.Controls.Add(this.adxClearControlsBtn); this.adxWordFaxBar.SupportedApps = AddinExpress.MSO.ADXOfficeHostApp.ohaWord; this.adxWordFaxBar.UpdateCounter = 13; // // adxClearControlsBtn // this.adxClearControlsBtn.Caption = "Clear Fields"; this.adxClearControlsBtn.ControlTag = "9b414a31-610a-49a2-ae48-28ab4cafd0b3"; this.adxClearControlsBtn.ImageTransparentColor = System.Drawing.Color.Transparent; this.adxClearControlsBtn.UpdateCounter = 10; this.adxClearControlsBtn.Click += new AddinExpress.MSO.ADXClick_EventHandler(this.adxShowControlsBtn_Click); // // adxWordFaxRibbonTab // this.adxWordFaxRibbonTab.Caption = "Word Fax Ribbon Tab"; this.adxWordFaxRibbonTab.Controls.Add(this.adxWordFaxRibbonGroup); this.adxWordFaxRibbonTab.Id = "adxRibbonTab_438ab8b1cc304340b541318e45331623"; this.adxWordFaxRibbonTab.Ribbons = AddinExpress.MSO.ADXRibbons.msrWordDocument; // // adxWordFaxRibbonGroup // this.adxWordFaxRibbonGroup.Caption = "Word Fax Ribbon Group"; this.adxWordFaxRibbonGroup.Controls.Add(this.adxClearControlsRibbonButton); this.adxWordFaxRibbonGroup.Id = "adxRibbonGroup_00f6e98442dd4dd984f890c700e54eab"; this.adxWordFaxRibbonGroup.ImageTransparentColor = System.Drawing.Color.Transparent; this.adxWordFaxRibbonGroup.Ribbons = AddinExpress.MSO.ADXRibbons.msrWordDocument; // // adxClearControlsRibbonButton // this.adxClearControlsRibbonButton.Caption = "Clear Fields"; this.adxClearControlsRibbonButton.Id = "adxRibbonButton_912c8304d0434302b949211bd3671c4d"; this.adxClearControlsRibbonButton.ImageTransparentColor = System.Drawing.Color.Transparent; this.adxClearControlsRibbonButton.Ribbons = AddinExpress.MSO.ADXRibbons.msrWordDocument; this.adxClearControlsRibbonButton.OnClick += new AddinExpress.MSO.ADXRibbonOnAction_EventHandler(this.adxClearControlsRibbonButton_OnClick); // // FaxModule // this.Description = "ADX Word Fax Module Example"; this.ModuleName = "FaxModule"; this.PropertyId = "_ADX_WordFax"; this.PropertyValue = "Created for the WordFax project."; }