private ToDoListVersionDetailSubWindow Init(ToDoListProductDetailView _productDetailView
                                                    , ToDoProduct _todoProduct, ToDoProductVersion _version)
        {
            productView    = _productDetailView;
            todoProduct    = _todoProduct;
            productVersion = _version;

            if (_version != null)
            {
                todoVersion.SetVersion(_version.version);
                versionNameView.Content.Val = _version.name;
            }
            else
            {
                todoVersion.SetVersion(0, 0, 0);
                productName = string.Empty;
            }


            UpdateMajor();
            UpdateMiddle();
            UpdateSmall();

            return(this);
        }
        public static ToDoListVersionDetailSubWindow Open(ToDoListProductDetailView productDetailView,
                                                          ToDoProduct todoProduct, ToDoProductVersion version = null, string name = null)
        {
            string str    = name ?? (version == null ? "Version Detail Create Window" : "Version Detail Editor Window");
            var    window = Open <ToDoListVersionDetailSubWindow>(str)
                            .Init(productDetailView, todoProduct, version);

            instance = window;
            window.Show();
            return(window);
        }