示例#1
0
        //鼠标点击事件
        private void label_MouseClick(object sender, EventArgs e)
        {
            ((Label)sender).ForeColor = Color.Green;//设置控件文字字颜色
            //((Label)sender).Font = new Font(((Label)sender).Font, ((Label)sender).Font.Style | FontStyle.Underline);
            String time          = ((Label)sender).Text;
            String kernelLogPath = Utils.IOHelper.FindFileInDir(WelcomeForm.logDirPath, "dmesglog-d-t.txt");

            if (Utils.IOHelper.isFile(kernelLogPath))
            {
                Form kernelLogForm = new KernelLogForm(kernelLogPath, time);
                kernelLogForm.Show();
            }
        }
 //鼠标点击事件
 private void label_MouseClick(object sender, EventArgs e)
 {
     ((Label)sender).ForeColor = Color.Green;//设置控件文字字颜色
     //((Label)sender).Font = new Font(((Label)sender).Font, ((Label)sender).Font.Style | FontStyle.Underline);
     String time = ((Label)sender).Text;
     String kernelLogPath = Utils.IOHelper.FindFileInDir(WelcomeForm.logDirPath, "dmesglog-d-t.txt");
     if (Utils.IOHelper.isFile(kernelLogPath))
     {
         Form kernelLogForm = new KernelLogForm(kernelLogPath, time);
         kernelLogForm.Show();
     }
 }