private RhinoWindowSetUp() { if (instance != null) { instance = this; } }
public void initEvent() { if (isAdministrator()) { Rhino.RhinoApp.WriteLine("Admin"); } else { Rhino.RhinoApp.WriteLine("NotAdmin"); } try { UIManager.getInstance().init(); } catch (System.TypeInitializationException e1e) { System.Windows.Forms.MessageBox.Show(e1e.Message); } Rhino.ApplicationSettings.GeneralSettings.NewObjectIsoparmCount = -1; InstanceClass.turing.ProjectAddress.Text = CommonFunc.getAddressFromServer(InstanceClass.turing.CurrentDataIdName.ToList(), InstanceClass.turing.CurrentDataId.ToList()); Rhino.RhinoApp.Wait(); Rhino.RhinoApp.Wait(); LoadManager.getInstance().importFileWithAdress(); LoadManager.getInstance().LayerSetting(); ///6.3 RhinoWindowSetUp.SetUIForTC(Rhino.RhinoDoc.ActiveDoc); ///~6.3 Rhino.RhinoApp.WriteLine("InitComplete"); }