Exemplo n.º 1
0
 public Landing()
 {
     InitializeComponent();
     Method.FormShadow(this);
     CheckForIllegalCrossThreadCalls = false;
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     KeyData.receiver.UserOnlineAndOfflineEvent += Receiver_UserOnlineAndOfflineEvent;
     Transmitters.Sender.GetNumberOver          += Sender_GetNumberOver;
 }
Exemplo n.º 2
0
 public ChooseHeadImage()
 {
     InitializeComponent();
     Method.FormShadow(this);
     SelectImage     = HeadImages.im1;
     SelectImageName = "im1";
     Thread.CurrentThread.IsBackground = true;
     SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
     this.panel1               = this.GetPanel();
     this.panel1.Location      = new Point(0, 0);
     this.panel1.AutoSize      = true;
     this.panel1.ControlAdded += Panel1_ControlAdded;
     this.panel_Panent.Controls.Add(this.panel1);
     this.bt_Confirm.Image = HeadImages.im1;
     this.Refresh();
 }