private void LoadingScreen_Load(object sender, EventArgs e) { Main = new Form1(); BackgroundWorker.Interval = 2000; BackgroundWorker.Tick += BackgroundWorker_Tick; this.BackColor = Color.FromArgb(17, 18, 20); label1.ForeColor = Color.FromArgb(88, 88, 88); slidingLines1.Scale(0, 1, 0.7f); slidingLines1.changeLocation(0, 0, 10); slidingLines1.changeLocation(1, 0, -20); slidingLines1.changeLocation(2, 0, -40); slidingLines1.changeLocation(3, 0, -30); slidingLines1.Slide(5, 1, 50); TextTimer.Interval = 80; TextTimer.Start(); BackgroundWorker.Start(); }
public MainForm(Affdex.Detector detector) { InitializeComponent(); affSurface = new AffectivaSurface(detector); this.panel1.Controls.Add(affSurface); this.EmotionsTextBox.SelectAll(); this.EmotionsTextBox.SelectionAlignment = HorizontalAlignment.Right; this.EmotionsTextBox.Select(0, 0); affSurface.ResultsChanged += new System.EventHandler(this.affSurf_ResultsChanged); this.textResults_sorted_values = new float[5]; // Start Timers TextTimer.Start(); secondsTimer.Start(); }