public ElectronService(DialogModule dialogModule, MainWindowModule mainWindowModule, ClipboardModule clipBoardModule, AppModule appModule, ShellModule shellModule, MenuModule menuModule) { Menu = menuModule; Dialog = dialogModule; ClipBoard = clipBoardModule; MainWindow = mainWindowModule; App = appModule; Shell = shellModule; }
public MainWindow() { InitializeComponent(); this.ViewModule = new MainWindowModule(); InitializeCapture(); DrawPanel.Resize += DrawPanelResize; DrawPanel.Paint += RenderPanel; Timer timer = new Timer(); timer.Interval = 15; timer.Tick += ProcessFrame; //timer.Tick += RefreshPanel; timer.Tick += RenderPanel; timer.Tick += RefreshOffset; timer.Tick += RefreshUIElement; timer.Start(); this.FormClosed += (sender, e) => Application.Exit(); }