public MainForm() { InitializeComponent(); InitializeForm(); client = ClientService.GetInstance(); client.SetUpdateHandler(UpdateRemoteDisplay); client.SetErrorHandler(DisplayErrorMessage); client.SetRequestHandler(DisplayRequestBox); SetStandartValues(); DPIUtility.SetDpiAwareness(); model = new MainFormModel(pbScreen.Size); model.SetAppWindow(this); }