示例#1
0
        public SMAlarmForm()
        {
            InitializeComponent();
            DB = new SqliteFileDB();
            string DllPath    = Application.ExecutablePath;
            string DBFileName = System.IO.Path.ChangeExtension(System.Reflection.Assembly.GetExecutingAssembly().Location, ".db");

            if (!System.IO.File.Exists(DBFileName))
            {
                throw new Exception("找不到文件:" + DBFileName);
            }
            DB.Connect(DBFileName);
        }
 public void Init(Newtonsoft.Json.Linq.JObject jo, SManager SManager)
 {
     this.DB        = DB;
     AlarmReplyForm = new AlarmReplyForm();
 }