Exemple #1
0
        public MainWindow(MainUiService uiService, EmoteDrawer emoteDrawer)
        {
            InitializeComponent();

            // Initialize services
            _uiService   = uiService;
            _emoteDrawer = emoteDrawer;
        }
Exemple #2
0
        private static void Main()
        {
            // Initialize services
            var uiService   = new MainUiService();
            var emoteDrawer = new EmoteDrawer();

            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainWindow(uiService, emoteDrawer));
        }