public CoreUI(OpCore core) { Core = core; // load menus for loaded services foreach (var service in Core.ServiceMap.Values) { var id = service.ServiceID; if (id == ServiceIDs.Board) { Services[id] = new BoardUI(this, service); } if (id == ServiceIDs.Buddy) { Services[id] = new BuddyUI(this, service); } if (id == ServiceIDs.Chat) { Services[id] = new ChatUI(this, service); } if (id == ServiceIDs.IM) { Services[id] = new IMUI(this, service); } if (id == ServiceIDs.Mail) { Services[id] = new MailUI(this, service); } if (id == ServiceIDs.Plan) { Services[id] = new PlanUI(this, service); } if (id == ServiceIDs.Profile) { Services[id] = new ProfileUI(this, service); } if (id == ServiceIDs.Share) { Services[id] = new ShareUI(this, service); } if (id == ServiceIDs.Storage) { Services[id] = new StorageUI(this, service); } if (id == ServiceIDs.Trust) { Services[id] = new TrustUI(this, service); } } Core.RunInGui += Core_RunInGui; Core.UpdateConsole += Core_UpdateConsole; Core.ShowConfirm += Core_ShowConfirm; Core.ShowMessage += Core_ShowMessage; Core.VerifyPass += Core_VerifyPass; Core_UpdateConsole("DeOps " + Application.ProductVersion); }
public CoreUI(OpCore core) { Core = core; // load menus for loaded services foreach (var service in Core.ServiceMap.Values) { var id = service.ServiceID; if (id == ServiceIDs.Board) Services[id] = new BoardUI(this, service); if (id == ServiceIDs.Buddy) Services[id] = new BuddyUI(this, service); if (id == ServiceIDs.Chat) Services[id] = new ChatUI(this, service); if (id == ServiceIDs.IM) Services[id] = new IMUI(this, service); if (id == ServiceIDs.Mail) Services[id] = new MailUI(this, service); if (id == ServiceIDs.Plan) Services[id] = new PlanUI(this, service); if (id == ServiceIDs.Profile) Services[id] = new ProfileUI(this, service); if (id == ServiceIDs.Share) Services[id] = new ShareUI(this, service); if (id == ServiceIDs.Storage) Services[id] = new StorageUI(this, service); if (id == ServiceIDs.Trust) Services[id] = new TrustUI(this, service); } Core.RunInGui += Core_RunInGui; Core.UpdateConsole += Core_UpdateConsole; Core.ShowConfirm += Core_ShowConfirm; Core.ShowMessage += Core_ShowMessage; Core.VerifyPass += Core_VerifyPass; Core_UpdateConsole("DeOps " + Application.ProductVersion); }