public void CreateRegionWindow() { _regionSelectionDTO = new RegionSelectionDTO(); _parent.Visible = false; _screenWidth = _monitor.Bounds.Width; _screenHeight = _monitor.Bounds.Height; _form = new StreamSelectionForm(Pen, new Size(_screenWidth, _screenHeight)); _pictureBoxContainer = _form.StreamSelectionContent; Task.Delay(SnippetDelay).GetAwaiter().GetResult(); SubscribeMouseEvents(); _form.Show(); BuildScreen(); }
public void SetBounds(RegionSelectionDTO tool) { SetTextboxValues(tool.ToRectangle()); }