public void DrawRect1(out int row1, out int col1, out int row2, out int col2) { lock (globalLock){ row1 = 0; col1 = 0; row2 = 100; col2 = 100; try{ viewController.DrawRect1(out row1, out col1, out row2, out col2); } catch (Exception ex) { Logger.PopError(ex.Message.ToString()); } } }