コード例 #1
0
        /// <summary>
        /// Create VariablesViewModel object from Variables.
        /// </summary>
        /// <param name="variables">The variables.</param>
        /// <returns>The <see cref="VariablesViewModel"/></returns>
        internal static VariablesViewModel FromVariables(Variables variables)
        {
            var viewModel = new VariablesViewModel
            {
                SquareWidth  = 400,
                SquareHeight = 400,
                Variables    = variables,
                Opacity      = 0.1,
                StringFormat = "F"
            };

            viewModel.SetUpViewModel(true, true);

            return(viewModel);
        }
コード例 #2
0
 private static VariablesViewModel GenerateOutput(Variables priorKnowledge)
 {
     return(VariablesViewModel.FromVariables(priorKnowledge));
 }