Beispiel #1
0
        public SettingsForm(SettingsFormController controller)
        {
            Controller = controller;

            InitializeComponent();
            Icon = Resources.icon;

            SuspendDrawingControl.SuspendDrawing(this);

            settingsFormControllerBindingSource.Add(Controller);

            DpiFix();
            ControlFixes();

            InitControlValues();
            SuspendDrawingControl.SuspendDrawing(this);
        }
Beispiel #2
0
        public SettingsForm(SettingsFormController controller)
        {
            Controller = controller;

            InitializeComponent();
            Icon = Resources.icon;

            SuspendDrawingControl.SuspendDrawing(this);

            settingsFormControllerBindingSource.Add(Controller);

            DpiFix();
            ControlFixes();

            InitControlValues();
            SuspendDrawingControl.SuspendDrawing(this);
        }
Beispiel #3
0
 private static void ShowSettings()
 {
     if (settingsFormController != null)
     {
         settingsFormController.BringToFront();
         return;
     }
     using (settingsFormController = new SettingsFormController(config, gestureParser,
         (Win32MousePathTracker2)gestureParser.PathTracker, intentStore, gestureView))
     {
         //进程如果优先为Hight,设置窗口上执行手势会响应非常迟钝(原因不明)
        //using (var proc = Process.GetCurrentProcess()) proc.PriorityClass = ProcessPriorityClass.Normal;
         settingsFormController.ShowDialog();
         //using (var proc = Process.GetCurrentProcess()) proc.PriorityClass = ProcessPriorityClass.High;
     }
     settingsFormController = null;
 }