示例#1
0
文件: Program.cs 项目: reserad/D.E.D
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     var main_form = new Main();
     main_form.Show();
     Application.Run();
 }
示例#2
0
文件: Verified.cs 项目: reserad/D.E.D
 public Verified(bool? isVerified)
 {
     if (isVerified.HasValue == null && isVerified == true)
     {
         Main frm = new Main();
         frm.Show();
         Close();
     }
     InitializeComponent();
 }
示例#3
0
文件: Create.cs 项目: reserad/D.E.D
 private void btnCreate_Click(object sender, EventArgs e)
 {
     using (var cn = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename" +
      "=|DataDirectory|\\DB.mdf; Integrated Security=True"))
     {
         string _sql = @"INSERT INTO [dbo].[Data] ([70617373776f7264]) VALUES (@70617373776f7264)";
         var insertCmd = new SqlCommand(_sql, cn);
         insertCmd.Parameters
             .Add(new SqlParameter("@70617373776f7264", SqlDbType.VarChar))
             .Value = SHA1.Encode(txtCreate.Text);
         cn.Open();
         insertCmd.ExecuteNonQuery();
         cn.Close();
     }
     Main frm = new Main();
     frm.Show();
     Close();
 }