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

            case 2:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void Button_StartGame_Copy_Click(object sender, RoutedEventArgs e)
        {
            AboutProgramFrom aboutProgramFrom = new AboutProgramFrom();

            aboutProgramFrom.ShowDialog();
        }