コード例 #1
0
 public PathFindView(PathFindingViewModel model)
 {
     Model = model;
     string algorithmMenu = new MenuList(model.AlgorithmKeys.ToArray()).ToString();
     Model.AlgorithmKeyInputMessage = algorithmMenu + Resources.ChooseAlrorithm;
     Model.SourceVertexInputMessage = "\n" + Resources.StartVertexPointInputMsg;
     Model.TargetVertexInputMessage = Resources.EndVertexCoordinateInputMsg;
 }
コード例 #2
0
        public GraphCreateView(GraphCreatingViewModel model)
        {
            Model = model;
            string graphAssembleMenu = new MenuList(model.GraphAssembleKeys.ToArray(), 1).ToString();

            Model.GraphAssembleInpuMessage    = graphAssembleMenu + ChooseGraphAssemble;
            Model.ObstaclePercentInputMessage = ObstaclePercentInputMsg;
            Model.WidthInputMessage           = WidthInputMsg;
            Model.HeightInputMessage          = HeightInputMsg;
        }