Exemplo n.º 1
0
        public SettingsForm(SettingsFormController controller)
        {
            Controller = controller;

            InitializeComponent();
            Icon = Resources.icon;

            SuspendDrawingControl.SuspendDrawing(this);

            settingsFormControllerBindingSource.Add(Controller);

            DpiFix();
            ControlFixes();

            InitControlValues();
            SuspendDrawingControl.SuspendDrawing(this);
        }
Exemplo n.º 2
0
        public SettingsForm(SettingsFormController controller)
        {
            Controller = controller;

            InitializeComponent();
            Icon = Resources.icon;

            SuspendDrawingControl.SuspendDrawing(this);

            settingsFormControllerBindingSource.Add(Controller);

            DpiFix();
            ControlFixes();

            InitControlValues();
            SuspendDrawingControl.SuspendDrawing(this);
        }
Exemplo n.º 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;
 }