示例#1
0
 public static extern bool WTSSendMessage(
         IntPtr hServer,
         uint   SessionId,
         string pTitle,
         uint   TitleLength,
         string pMessage,
         uint   MessageLength,
         MB     Style,
         uint   Timeout,
     out ID     pResponse,
         bool   bWait
 );
示例#2
0
 protected void OnMBHelp_Click(object sender, MB mn) { if (MBHelp_Click != null) MBHelp_Click(sender, new MBClickEventArgs(mn)); }
示例#3
0
 protected void OnCMFilter_Click(object sender, MB mn) { if (CMFilter_Click != null) CMFilter_Click(sender, new MBClickEventArgs(mn)); }
示例#4
0
 public bool IsChecked(MB mn) { return tsMB[(int)mn].Checked; }
示例#5
0
 public class MBClickEventArgs : EventArgs { public readonly MB mn; public MBClickEventArgs(MB mn) { this.mn = mn; } }
示例#6
0
 public void Checked(MB mn, bool state)
 {
     tsMB[(int)mn].Checked = state;
     tsMB[(int)mn].CheckState = state ? CheckState.Checked : CheckState.Unchecked;
     if (isCMSTP(mn))
     {
         cmsTP[(int)mn - (int)CMS_TP.MBE_copy].Checked = state;
         cmsTP[(int)mn - (int)CMS_TP.MBE_copy].CheckState = state ? CheckState.Checked : CheckState.Unchecked;
     }
     if (isCMSBW(mn))
     {
         cmsBW[(int)mn - (int)CMS_BW.MBR_add].Checked = state;
         cmsBW[(int)mn - (int)CMS_BW.MBR_add].CheckState = state ? CheckState.Checked : CheckState.Unchecked;
     }
 }
示例#7
0
 public void Indeterminate(MB mn)
 {
     tsMB[(int)mn].CheckState = CheckState.Indeterminate;
     if (isCMSTP(mn)) cmsTP[(int)mn - (int)CMS_TP.MBE_copy].CheckState = CheckState.Indeterminate;
     if (isCMSBW(mn)) cmsBW[(int)mn - (int)CMS_BW.MBR_add].CheckState = CheckState.Indeterminate;
 }
示例#8
0
 bool isCMSBW(MB mn) { return (mn >= MB.MBR_add && mn < MB.MBT_fnvHash); }
示例#9
0
 public void Enable(MB mn, bool state)
 {
     tsMB[(int)mn].Enabled = state;
     if (isCMSTP(mn)) cmsTP[(int)mn - (int)CMS_TP.MBE_copy].Enabled = state;
     if (isCMSBW(mn)) cmsBW[(int)mn - (int)CMS_BW.MBR_add].Enabled = state;
 }
示例#10
0
 bool isCMSTP(MB mn) { return (mn >= MB.MBE_copy && mn < MB.MBR_add); }
示例#11
0
 public void Indeterminate(MB mn) { tsMB[(int)mn].CheckState = CheckState.Indeterminate; }
示例#12
0
 public void Checked(MB mn, bool state) { tsMB[(int)mn].Checked = state; tsMB[(int)mn].CheckState = state ? CheckState.Checked : CheckState.Unchecked; }
示例#13
0
 public void Enable(MB mn, bool state) { tsMB[(int)mn].Enabled = state; }
示例#14
0
 public static extern bool MessageBeep(
     MB BeepType
     );