示例#1
0
        static void Main()
        {
            //Application.SetHighDpiMode(HighDpiMode.SystemAware); // initial project is for .netcore 3.1, but not for net4.6.1
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Configuration    configuration    = Configuration.GetInstance();
            HookManager      hookManager      = new HookManager(configuration);
            KeyboardManager  keyboardManager  = new KeyboardManager();
            WindowManager    windowManager    = new WindowManager(configuration);
            ClipboardManager clipboardManager = new ClipboardManager();
            EditorModel      model            = new EditorModel(configuration, windowManager, keyboardManager, clipboardManager, hookManager);

            Application.Run(new EditorWindow(model, configuration));
        }
示例#2
0
 public EditorModel(Configuration configuration, WindowManager windowManager, KeyboardManager keyboardManager, ClipboardManager clipboardManager, HookManager hookManager)
 {
     m_configuration    = configuration;
     m_windowManager    = windowManager;
     m_keyboardManager  = keyboardManager;
     m_clipboardManager = clipboardManager;
     m_hookManager      = hookManager;
 }