MainForm.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using ServiceStack.Redis;
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;
namespace RedisDemo
{
public partial class MainForm : Form
{
readonly RedisUtil util = new RedisUtil();
public MainForm()
{
InitializeComponent();
try
{
}
catch (Exception exception)
{
MessageBox.Show(exception.Message+"\n"+exception.StackTrace, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
comboBox_Type.SelectedIndex = 0;
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
try
{
}
catch (Exception exception)
{
MessageBox.Show(exception.Message + "\n" + exception.StackTrace, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void Button_Start_Click(object sender, EventArgs e)
{
try
{
if (util.Start())
{
toolStripStatusLabel.Text = "redis服务端开启成功";
}
else
{
toolStripStatusLabel.Text = "redis服务端开启失败";
}
}
catch (Exception exception)
{
toolStripStatusLabel.Text = "redis服务端开启失败";
MessageBox.Show(exception.Message + "\n" + exception.StackTrace, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
后面还有 148 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
