public NopsaImage(NOPSAImageHolder imgholder, CommunicationManager cm) { InitializeComponent(); imageholder = imgholder; line.X1 = 0; line.X2 = Width; line.Y1 = Height - 1; line.Y2 = Height - 1; this.cm = cm; }
public SearchUserControl() { Thread.CurrentThread.Name = "GUI_THREAD"; // this shuts up 'other thread accessing UI' type errors //System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; InitializeComponent(); //this.searchTB.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTB_OnKeyDownHandler); this.SizeChanged += new EventHandler(this.SearchUserControl_SizeChanged); cm = new CommunicationManager(this); searchtb_timestamp = DateTime.UtcNow; }