public MainWindow() { InitializeComponent(); window = this; MainProgramWork.Start(); DispatcherTimer t = new DispatcherTimer(); t.Tick += new EventHandler(MainProgramWork.IterationOfProgramCycle); t.Interval = TimeSpan.FromMilliseconds(50); t.Start(); }
public void MainKeyDown(object sender, KeyEventArgs eventArgs) { MainProgramWork.ProgramKeyDown(sender, eventArgs); }