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

            case 2:
                this.UCf = ((WpfGS.FilePathEdit)(target));
                return;

            case 3:
                this.UCc = ((WpfGS.Container)(target));
                return;

            case 4:
                this.UCcs = ((WpfGS.CalibrationSource)(target));
                return;

            case 5:
                this.UCts = ((WpfGS.TransmissionSource)(target));
                return;

            case 6:
                this.UCd = ((WpfGS.Detector)(target));
                return;

            case 7:

            #line 47 "..\..\..\..\Settings\SettingsGuide.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonOK_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 49 "..\..\..\..\Settings\SettingsGuide.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonSaveAll_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 50 "..\..\..\..\Settings\SettingsGuide.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonCancel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        //Opt=true,New
        //Opt=false,Edit
        public NeworEditTransmissionSource(TransmissionSource ts, bool opt)
        {
            InitializeComponent();


            Ts  = ts;
            Opt = opt;
            if (Opt)
            {
                DataContext = tsp;
            }
            else
            {
                index = ts.list1.SelectedIndex;
                tsp.Copy(Settings.listtsp[index]);
                DataContext = tsp;
            }
        }