示例#1
0
        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);
        }