예제 #1
0
    static void Init()
    {
        ToolbarWindow window = (ToolbarWindow)EditorWindow.GetWindow(typeof(ToolbarWindow));

        window.cs = new List <Component>();
        window.Show();
    }
예제 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            string dicomFilesPath = txtDicomFilesPath.Text;

            //create tool bar window for this study

            var toolbarWindow    = new ToolbarWindow();
            var toolbarViewModel = new ToolbarViewModel();

            toolbarWindow.DataContext = toolbarViewModel;

            toolbarWindow.Left  = 0;
            toolbarWindow.Top   = 0;
            toolbarWindow.Width = SystemParameters.PrimaryScreenWidth;

            toolbarWindow.Show();

            //load files from folder
            toolbarWindow.LoadThumbnails(dicomFilesPath);
        }