Пример #1
0
        public AuraContainerForm(AuraContainerForm.AuraTypeEnum at)
        {
            InitializeComponent();
            PresentableOpacity = 50;
            TransparencyKey    = BackColor;
            AuraType           = at;
            switch (at)
            {
            case AuraTypeEnum.Image:
                break;

            case AuraTypeEnum.Text:
                Brush = new SolidBrush(Color.Black);
                break;
            }
            Disposed += AuraContainerForm_Disposed;
            Resize   += AuraContainerForm_Resize;
        }
Пример #2
0
        public AuraDesignForm(AuraContainerForm.AuraTypeEnum at)
        {
            InitializeComponent();
            AuraType = at;
            switch (AuraType)
            {
            case AuraContainerForm.AuraTypeEnum.Image:
                clickthroughPictureBox1.Visible = true;
                break;

            case AuraContainerForm.AuraTypeEnum.Text:
                clickthroughPictureBox1.Visible = false;
                Brush = new SolidBrush(Color.Black);
                break;
            }
            DoubleBuffered = true;
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            Disposed += AuraDesignForm_Disposed;
            hb        = new HatchBrush(HatchStyle.LargeCheckerBoard, Color.FromArgb(120, 120, 170), Color.FromArgb(150, 150, 200));
        }