日期:2014-05-17  浏览次数:21031 次

IrisSkin2.dll换皮肤怎么不好用
为啥不出皮肤了
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CallCenter
{
  public partial class Table : Form
  {
  public Table()
  {
  InitializeComponent();
  this.skinEngine1.SkinFile = "RealOne.ssk";
  }

  private Point mouseOffset; //记录鼠标指针的坐标 
  private bool isMouseDown = false; //记录鼠标按键是否按下 
///---------------添加三个关于鼠标的事件 

private void Table_MouseUp(object sender, MouseEventArgs e)
{
  // 修改鼠标状态isMouseDown的值 
  // 确保只有鼠标左键按下并移动时,才移动窗体 
  if (e.Button == MouseButtons.Left)
  {
  isMouseDown = false;
  }  
}

private void Table_MouseMove(object sender, MouseEventArgs e)
{
  if (isMouseDown)
  {
  Point mousePos = Control.MousePosition;
  mousePos.Offset(mouseOffset.X, mouseOffset.Y);
  Location = mousePos;
  this.skinEngine1.SkinFile = "RealOne.ssk";
  } 
}

private void Table_MouseDown(object sender, MouseEventArgs e)
{
  int xOffset;
  int yOffset;

  if (e.Button == MouseButtons.Left)
  {
  xOffset = -e.X - SystemInformation.FrameBorderSize.Width;
  yOffset = -e.Y - SystemInformation.CaptionHeight -
  SystemInformation.FrameBorderSize.Height;
  mouseOffset = new Point(xOffset, yOffset);
  isMouseDown = true;
  } 
}

private void close_Click(object sender, EventArgs e)
{
  this.Close();
}

private void min_Click(object sender, EventArgs e)
{
  this.WindowState = FormWindowState.Minimized;

}


private void Table_Load(object sender, EventArgs e)
{
  // 创建the ToolTip 
  ToolTip toolTip1 = new ToolTip();
  // 设置显示样式
  toolTip1.AutoPopDelay = 5000;
  toolTip1.InitialDelay = 1000;
  toolTip1.ReshowDelay = 500;
  // Force the ToolTip text to be displayed whether or not the form is active.
  toolTip1.ShowAlways = true;

  // 设置伴随的对象.
  toolTip1.SetToolTip(this.btucall, "呼叫");
  toolTip1.SetToolTip(this.btuanswer, "接听");
  toolTip1.SetToolTip(this.btutrip, "三方");
  toolTip1.SetToolTip(this.btusx, "示闲");
  toolTip1.SetToolTip(this.btudrop,"挂断");
  toolTip1.SetToolTip(this.bturest, "休息");
  toolTip1.SetToolTip(this.incoming, "来电");
   
}

private void incoming_Click(object sender, EventArgs e)
{
  Incoming ic = new Incoming();
  ic.ShowDialog();
}

private void btucall_Click(object sender, EventArgs e)
{
  Calling cl = new Calling();
  cl.ShowDialog();
}

private void btutrip_Click(object sender, EventArgs e)
{
  Calling cl = new Calling();
  cl.ShowDialog();
}

private void btuwh_Click(object sender, EventArgs e)
{
  System.Diagnostics.Process.Start("callAccounting.html");
 
}

private void label2_Click(object sender, EventArgs e)
{
  System.Diagnostics.Process.Start("Callemployees.html"