コード例 #1
0
        public string GetClassString()
        {
            ClassTypeManager m = ClassTypeManager.GetInstance();
            string           s = "";

            foreach (ObjectId classTypeID in ClassList)
            {
                s += m.GetClassType(classTypeID).Name + " ";
            }
            return(s);
        }
コード例 #2
0
        public void InitVideoInfo()
        {
            videoManager = VideoManager.GetInstance();
            FilterVideo();

            this.classTypeComboBox.Items.Add("所有");
            foreach (var item in ClassTypeManager.GetInstance().GetClassType())
            {
                this.classTypeComboBox.Items.Add(item);
            }
        }
コード例 #3
0
        public MainWindow()
        {
            InitializeComponent();

            MongoDBHelper.connectionString = "mongodb://localhost";
            MongoDBHelper.dbName           = "avdb";

            Console.WriteLine("开始初始化");
            Console.WriteLine("开始初始化ClassType");
            classTypeManager = ClassTypeManager.GetInstance();
            classTypeManager.Init(InitActressManager);
        }