コード例 #1
0
        private void ButtonClickFunc(object obj)
        {
            string buttonName = obj as string;

            switch (buttonName)
            {
            case "BaseSetClick":
            {
                this.BaseVisible = Visibility.Visible;
                this.CaseVisible = Visibility.Collapsed;
            }
            break;

            case "CaseSetClick":
            {
                this.BaseVisible = Visibility.Collapsed;
                this.CaseVisible = Visibility.Visible;
            }
            break;

            case "Btn_Sumit":
            {
            }
            break;

            case "Case2":
            {
            }
            break;

            case "Case3":
            {
            }
            break;

            case "Case4":
            {
            }
            break;

            case "Case5":
            {
            }
            break;

            case "Case6":
            {
            }
            break;

            case "Case7":
            {
            }
            break;

            case "Case8":
            {
            }
            break;

            case "Case9":
            {
            }
            break;

            case "Case10":
            {
            }
            break;

            case "Case11":
            {
            }
            break;

            case "Case12":
            {
            }
            break;

            default:
                break;
            }

            if (obj is Window)
            {
                WindowBase window = obj as WindowBase;
                window.BegionStoryClose();
            }
        }