public string GetClassString() { ClassTypeManager m = ClassTypeManager.GetInstance(); string s = ""; foreach (ObjectId classTypeID in ClassList) { s += m.GetClassType(classTypeID).Name + " "; } return(s); }
public void InitVideoInfo() { videoManager = VideoManager.GetInstance(); FilterVideo(); this.classTypeComboBox.Items.Add("所有"); foreach (var item in ClassTypeManager.GetInstance().GetClassType()) { this.classTypeComboBox.Items.Add(item); } }
public MainWindow() { InitializeComponent(); MongoDBHelper.connectionString = "mongodb://localhost"; MongoDBHelper.dbName = "avdb"; Console.WriteLine("开始初始化"); Console.WriteLine("开始初始化ClassType"); classTypeManager = ClassTypeManager.GetInstance(); classTypeManager.Init(InitActressManager); }