Example #1
0
        public MySceneItemViewModel(MySceneViewModel sceneview, string name)
        {
            this.SceneView = sceneview;
            this.ItemName = name;

            Label = string.Format("{0}: {1}", sceneview.Client.DazInstanceName, name);
        }
Example #2
0
        private void refreshButton_Click(object sender, EventArgs e)
        {
            Log.Add("Refresh list clicked", LogLevel.Debug);

            scenesView.Clear();
            sceneListbox.Items.Clear();

            Plugin.DazClientManager.FindAllInstances();
            foreach (var client in Plugin.DazClientManager.Instances)
            {
                MySceneViewModel sceneView = new MySceneViewModel(client);
                scenesView.Add(sceneView);
                sceneListbox.Items.AddRange(sceneView.Items.ToArray());
            }
        }