public override bool Collect(AbstractDataCollector <TEntity> collector) { if (collector == null) { return(false); } ActiveCollector = collector; ID = ((IOrganizationMachine_Viewer)ActiveCollector.ActiveViewer).ID; if (ActiveDBItem == null) { return(false); } if (Name_P != null) { ((OrganizationMachine_cu)ActiveDBItem).Name_P = Name_P.ToString(); } //if (StationPoint_CU_ID != null) // ((OrganizationMachine_cu)ActiveDBItem).StationPoint_CU_ID = Convert.ToInt32(StationPoint_CU_ID); //if (StationPointStage_CU_ID != null) // ((OrganizationMachine_cu)ActiveDBItem).StationPointStage_CU_ID = Convert.ToInt32(StationPointStage_CU_ID); ((OrganizationMachine_cu)ActiveDBItem).OrganizationID = Convert.ToInt32(ApplicationStaticConfiguration.Organization); if (SkinName != null) { ((OrganizationMachine_cu)ActiveDBItem).SkinName = SkinName.ToString(); } if (Color != null) { ((OrganizationMachine_cu)ActiveDBItem).Color = Color.ToString(); } if (UserID != null) { ((OrganizationMachine_cu)ActiveDBItem).InsertedBy = Convert.ToInt32(UserID); } ((OrganizationMachine_cu)ActiveDBItem).IsOnDuty = true; switch (((IOrganizationMachine_Viewer)ActiveCollector.ActiveViewer).CommonTransactionType) { case DB_CommonTransactionType.DeleteExisting: ((OrganizationMachine_cu)ActiveDBItem).IsOnDuty = false; break; } RelatedViewers = ((IOrganizationMachine_Viewer)ActiveCollector.ActiveViewer).RelatedViewers; return(true); }
public override void OnRunning() { Application.ThreadException += Application_ThreadException; if (SkinName.IsNotNullOrEmpty()) { DevExpress.LookAndFeel.UserLookAndFeel.Default.UseDefaultLookAndFeel = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.UseWindowsXPTheme = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = SkinName; DevExpress.Skins.SkinManager.EnableFormSkins(); } MainForm = new ServerForm(); Application.Run(MainForm); }
public override void OnRunning() { Application.ThreadException += Application_ThreadException; if (SkinName.IsNotNullOrEmpty()) { DevExpress.LookAndFeel.UserLookAndFeel.Default.UseDefaultLookAndFeel = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.UseWindowsXPTheme = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = SkinName; DevExpress.Skins.SkinManager.EnableFormSkins(); } if (!Login()) { return; } MainForm = new MDIMainForm(); MVCPublic.MainForm = MainForm; MainForm.Initialize(this); Application.Run(MainForm); }
public override Dictionary <string, object> SaveToDict() { var dict = new Dictionary <string, object>(); dict.Add(GDMConstants.SchemaKey, "Weapon"); dict.Merge(true, ID.ToGDEDict(IDKey)); dict.Merge(true, MagazineSize.ToGDEDict(MagazineSizeKey)); dict.Merge(true, ConsumePerHit.ToGDEDict(ConsumePerHitKey)); dict.Merge(true, DamageVal.ToGDEDict(DamageValKey)); dict.Merge(true, AtkInterval.ToGDEDict(AtkIntervalKey)); dict.Merge(true, ChargeTime.ToGDEDict(ChargeTimeKey)); dict.Merge(true, ReloadTime.ToGDEDict(ReloadTimeKey)); dict.Merge(true, Thrust.ToGDEDict(ThrustKey)); dict.Merge(true, AlertRange.ToGDEDict(AlertRangeKey)); dict.Merge(true, PrefabPath.ToGDEDict(PrefabPathKey)); dict.Merge(true, SkinName.ToGDEDict(SkinNameKey)); dict.Merge(true, OpaType.ToGDEDict(OpaTypeKey)); dict.Merge(true, AniType.ToGDEDict(AniTypeKey)); return(dict); }