コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.spreadsheetLayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.ribbon = ((Telerik.Windows.Controls.RadSpreadsheetRibbon)(target));
                return;

            case 3:
                this.radSpreadsheet = ((Telerik.Windows.Controls.RadSpreadsheet)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: MainWindow.g.i.cs プロジェクト: hamerstandr/Tools
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ParentWindow = ((Excel.MainWindow)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ribbonView = ((Telerik.Windows.Controls.RadRibbonView)(target));
                return;

            case 4:
                this.PasteButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target));
                return;

            case 5:
                this.FontStylesGroup = ((Telerik.Windows.Controls.RadButtonGroup)(target));
                return;

            case 6:
                this.MergeAndCenterButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target));
                return;

            case 7:
                this.AccountingNumberFormatButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target));
                return;

            case 8:
                this.InsertCellsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 9:
                this.DeleteCellsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 10:
                this.FormatButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 11:
                this.FillButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 12:
                this.ClearButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 13:
                this.ThemeGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.ThemeGallery)(target));
                return;

            case 14:
                this.ColorGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.ColorGallery)(target));
                return;

            case 15:
                this.FontGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.FontGallery)(target));
                return;

            case 16:
                this.PrintAreaButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 17:
                this.BreaksButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 18:
                this.AutoSumButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 19:
                this.RecentlyUsed = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 20:
                this.Financial = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 21:
                this.Logical = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 22:
                this.Text = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 23:
                this.DateAndTime = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 24:
                this.LookupAndReference = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 25:
                this.MathAndTrig = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 26:
                this.MoreFunctionsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 27:
                this.FreezePanesButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 28:
                this.BringForwardButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target));
                return;

            case 29:
                this.SendBackwardButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target));
                return;

            case 30:
                this.RotateButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target));
                return;

            case 31:
                this.PictureTools = ((Telerik.Windows.Controls.RadRibbonContextualGroup)(target));
                return;

            case 32:
                this.radSpreadsheet = ((Telerik.Windows.Controls.RadSpreadsheet)(target));
                return;
            }
            this._contentLoaded = true;
        }