Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            panel1.Enabled = false;
            cmd = OpaqueLayer.Show(this, 125, true);
            builderobj.SetOpetion(option);

            if (checkBox1.Checked)
            {
                builderobj.UnsafeProcessBitmapAsync();
            }
            else
            {
                builderobj.ProcessBitmapAsync();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 显示遮罩层
 /// </summary>
 /// <param name="control">控件</param>
 /// <param name="alpha">透明度</param>
 /// <param name="isShowLoadingImage">是否显示图标</param>
 public static OpaqueCommand Show(Control control, int alpha, bool isShowLoadingImage)
 {
     OpaqueCommand command;
     if (ControList.ContainsKey(control))
     {
         command = ControList[control];
     }
     else
     {
         command = new OpaqueCommand();
         ControList.Add(control, command);
     }
     command.ShowOpaqueLayer(control, alpha, isShowLoadingImage);
     return command;
 }