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

            case 2:
                this.serverExPander = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.outerBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.outputStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.outerStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.startMailPanel1 = ((MailSendWPF.UserControls.StartMailPanel)(target));
                return;

            case 7:
                this.resToMailPanel1 = ((MailSendWPF.UserControls.ResToMailPanel)(target));
                return;

            case 8:
                this.mailsPanel = ((MailSendWPF.UserControls.MailsPanel)(target));
                return;

            case 9:
                this.mailingOutput = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 11:
                this.txtStatus = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow1 = ((MailSendWPF.Window1)(target));
                return;

            case 2:
                this.mailPanel1 = ((MailSendWPF.UserControls.MailsPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }