public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Use this to return your custom view for this Fragment var theView = inflater.Inflate(Resource.Layout.PointOfPresenceLayout, container, false); galaxyBtn = theView.FindViewById <TextView>(Resource.Id.GalaxyBtn); solSysBtn = theView.FindViewById <TextView>(Resource.Id.SolSysBtn); planetBtn = theView.FindViewById <TextView>(Resource.Id.PlanetBtn); sectorBtn = theView.FindViewById <TextView>(Resource.Id.SectorBtn); structureBtn = theView.FindViewById <TextView>(Resource.Id.StructureBtn); galaxyBtn.Click += GalaxyBtn_Click; solSysBtn.Click += SolSysBtn_Click; planetBtn.Click += PlanetBtn_Click; sectorBtn.Click += SectorBtn_Click; structureBtn.Click += StructureBtn_Click; if (pop == null) { // no pop yet - better create one pop = new PointOfPresenceObj(); pop.created = DateTime.Now; pop.playerId = PhabrikServer.CurrentUser.Id; pop.nickname = "primary"; pop.scale = PointOfPresenceObj.PopScale.System; pop.structureId = 0; SetScale(PointOfPresenceObj.PopScale.System); } curScale = PointOfPresenceObj.PopScale.None; RefreshForPop(); return(theView); }
public void InitPop(PointOfPresenceObj newPop) { pop = newPop; PopTitle = newPop.nickname; if (string.IsNullOrEmpty(PopTitle)) { PopTitle = "New Point of Presence"; } }
public virtual void InitializeForNewPop(PointOfPresenceObj popObj) { }