private void SnapCreateBtn_Click(object sender, EventArgs e) { SnapOverlay Overlay = new SnapOverlay(); InitializeOverlay(Overlay); Overlay.Width = SystemInformation.VirtualScreen.Width; Overlay.Height = SystemInformation.VirtualScreen.Height; Overlay.Show(); }
private void InitializeOverlay(SnapOverlay Overlay) { Overlay.OnReceivedSnapPoint += fReceivedSnapPoint; SetOpacityToSlider(Overlay); }
void SetOpacityToSlider(SnapOverlay Overlay) { Overlay.Opacity = ((double)OpacitySlider.Value / 100.0); }