static void Init() { ToolbarWindow window = (ToolbarWindow)EditorWindow.GetWindow(typeof(ToolbarWindow)); window.cs = new List <Component>(); window.Show(); }
public ToolbarControlProvider(ToolbarWindow window) { this.window = window; AssemblyReloadEvents.beforeAssemblyReload += Cleanup; EditorApplication.quitting += Cleanup; EditorApplication.update += FreeInvalid; }
public static void Init() { toolwnd = ToolbarWindow.Init(); instance = GetWindow <MainWindow>("Level Editor", typeof(ToolbarWindow)) as MainWindow; instance.minSize = new Vector2(32, 32); }
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); }
public static ToolbarWindow Init() { instance = GetWindow <ToolbarWindow>("Toolbar"); return(instance); }
public ViewerLayoutManager(ToolbarWindow toolbar) { Viewer2dWindowsList = new List <ViewerWindow>(); toolbarWindow = toolbar; }