2016年第一次接触C#,闲来无事,趁着周末清闲做一个小程序打发打发时间。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
using System.IO;//调用IO,用以实现打开外部文件操作
namespace 文字加密解密
{
public partial class FrmMain : Form
{
private FrmCover frmCover;
public static string Source;
public FrmMain()
{
frmCover = new FrmCover();
frmCover.Show();
InitializeComponent();
}
private void FrmMain_Load(object sender, EventArgs e)
{
Thread.Sleep(800);//延时450毫秒,需调用System.Threading
frmCover.Close();
}
//****************************************************************************************************
//名 称:FindText
//功能描述:在InputBox中查找指定字符
//输入参数:
//输出参数:
//返 回 值 :bool类型
//****************************************************************************************************
public bool FindText(string text)
{
bool returnValue = false;
if (text.Length > 0)
{
int indexToText = Inpu