コード例 #1
0
ファイル: Main.cs プロジェクト: oghenez/landlord2011
        private void Form1_Load(object sender, EventArgs e)
        {
            //解决kryptonListBox的双击Bug
            kryptonListBox1.ListBox.MouseDoubleClick += new MouseEventHandler(kryptonListBox1_MouseDoubleClick);

            ThreadPool.QueueUserWorkItem(delegate
            {
                DoThreadSafe(delegate { yfUC = new UC源房详细(true)
                                        {
                                            Dock = DockStyle.Fill
                                        }; });
                DoThreadSafe(delegate { kfUC = new UC客房详细(true)
                                        {
                                            Dock = DockStyle.Fill
                                        }; });
                DoThreadSafe(delegate { chartUC = new UC源房客房到期一览()
                                        {
                                            Dock = DockStyle.Fill
                                        }; });
                LoadTreeView(null);

                RefreshCustomAlarmData();
                RefreshSystemAlarmData();

                string msg;
                if (!AutoBackupData(out msg))
                {
                    KryptonMessageBox.Show(msg, "自动备份错误提示",
                                           System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
                }
            });
        }
コード例 #2
0
 private void Main_Load(object sender, EventArgs e)
 {
     ThreadPool.QueueUserWorkItem(delegate
     {
         LoadTreeView(null);
         DoThreadSafe(delegate { yfUC = new UC源房详细(true, context)
                                 {
                                     Dock = DockStyle.Fill
                                 }; });
         DoThreadSafe(delegate { kfUC = new UC客房详细(true, context)
                                 {
                                     Dock = DockStyle.Fill
                                 }; });
     });
     AlarmTimer1.Enabled = true; //-- 测试闪动提醒图标
 }