摘要: //监听返回键 public void onBackPressed(){ confirmExit(); } //确认退出程序对话 private void confirmExit() { //确认退出程序 new AlertDialog.Builder(this).setTitle(R.string 阅读全文
posted @ 2017-08-11 09:36 徐海峰 阅读(161) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Runtim 阅读全文
posted @ 2017-06-16 11:00 徐海峰 阅读(704) 评论(0) 推荐(0) 编辑
摘要: private void MainForm_Load(object sender, EventArgs e) { NavigationForm w = new NavigationForm(); ShowForm(w); } public void ShowForm(Form form1) { th 阅读全文
posted @ 2017-05-19 12:53 徐海峰 阅读(4948) 评论(0) 推荐(0) 编辑
摘要: Calendar calendar=Calendar.getInstance(); SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy年MM月dd日"); String[] str1=new String[]{"Error","日 阅读全文
posted @ 2017-05-06 15:21 徐海峰 阅读(4250) 评论(0) 推荐(0) 编辑
摘要: /* 1.定义Form1以对话框方式弹出 */ /* 2.在Form1窗口中定义变量 */ /* 3.给变量复制并返回DialogResult.OK结束对话 */ 阅读全文
posted @ 2016-11-26 13:40 徐海峰 阅读(7084) 评论(0) 推荐(1) 编辑