protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); RequestWindowFeature(WindowFeatures.NoTitle); SetContentView(Resource.Layout.Index); TextView gname = FindViewById<TextView>(Resource.Id.Index_Gname); TextView Contact = FindViewById<TextView>(Resource.Id.Index_Contact); gname.Text = _publicfuns.of_GetMySysSet("COMPANY", "CompanyName"); Contact.Text = "广州国宇软件技术服务有限公司\n联系电话:020-61131488 85557207\n软件版本" + SysVisitor.getVersionName(this); string[] list = { "会员查询", "新增会员", "快速收银", "系统设置" }; GridView gridView = FindViewById<GridView>(Resource.Id.Index_gridView); IndexAdapter listItemAdapter = new IndexAdapter(this, list); gridView.Adapter = listItemAdapter; System.Threading.Thread thr = new System.Threading.Thread(new System.Threading.ThreadStart(of_netType)); thr.Start(); ImageButton netType_del = FindViewById<ImageButton>(Resource.Id.Index_netType_del); LinearLayout netType_view = FindViewById<LinearLayout>(Resource.Id.Index_netType_LinearLayout); TextView netType = FindViewById<TextView>(Resource.Id.Index_netType_text); netType_del.Click += delegate { netType_view.Visibility = ViewStates.Gone; ab_shouNetType = true; }; netType.Click += delegate { Intent intent = null; if (int.Parse(Android.OS.Build.VERSION.Sdk) > 10) { intent = new Intent(Android.Provider.Settings.ActionWirelessSettings); } else { intent = new Intent(); ComponentName component = new ComponentName("com.android.settings", "com.android.settings.WirelessSettings"); intent.SetComponent(component); intent.SetAction("android.intent.action.VIEW"); } StartActivity(intent); }; System.Threading.Thread thr_msg = new System.Threading.Thread(MsgPush); thr_msg.Start(); }
public static MeasurementCreateCommand FromApi(GetMeasurementByInstallationIdResponse api) => MeasurementCreateCommand.Create(api.Current.FromDateTime, api.Current.TillDateTime, ValueAdapter.FromApi(api.Current.Values), IndexAdapter.FromApi(api.Current.Indexes), StandardAdapter.FromApi(api.Current.Standards));
public ProcessB(IndexAdapter index) { Index = index; }