Beispiel #1
0
 public FormDesigner()
 {
     this.UniqueID       = "application" + projectCOunter;
     propertyWindow      = new PropertyWindow();
     projectExplorer     = new ProjectExplorer(this);
     dataPatternExplorer = new DataPatternExlorer(this);
     displayNameExplorer = new DisplayNameExplorer(this);
     webServiceExplorer  = new EIBFormDesigner.Designer.WebServiceExplorer.WebServiceExplorer(this);
     eventManager        = getEventManagerInstance();
     DragDropHandler.Initialize(eventManager, this);
     this.Disposed += new EventHandler(FormDesigner_Disposed);
     InitializeComponent();
     ToolBoxWindow.form = this;
     toolBoxWindow      = new ToolBoxWindow();
     startupImage       = new StartupHIC();
     formulaEditor      = new FormulaEditorWindow(this);
     workEditor         = new WorkflowEditorWindow(this);
     buildtool          = new EIBFormDesigner.Build.BuildTool(this);
     buildwindow        = new BuildWindow(this);
     setFromPatternsForACL();
     //UserAdmin.UserAdminConstants.CompanyId = company;
     //UserAdmin.UserAdminConstants.CompanyName = company;
     history = new UndoRedoHistory <ControlPool>(controlpool);
     this.SetStyle(ControlStyles.DoubleBuffer, true);
     this.SetStyle(ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }
    System.Collections.IEnumerator enable_drag_drop()
    {
        yield return(new WaitForSeconds(2));

        bool bEnableDragDrop = (FPlatform.InUnityEditor() == false && FPlatform.GetDeviceType() == FPlatform.fDeviceType.WindowsDesktop);

        bEnableDragDrop = true;
        if (bEnableDragDrop)
        {
            Context.RegisterNextFrameAction(() => {
                if (FPlatform.InUnityEditor())
                {
                    DragDropHandler.Initialize();
                }
                else
                {
                    DragDropHandler.Initialize(WinAPI.GetCurrentThreadId(), "UnityWndClass");   // is this necessary?
                }
                DragDropHandler.OnDroppedFilesEvent += CCActions.DoDragDropImport;
            });
        }
    }