Exemplo n.º 1
0
		private void Redraw(object sender, FormRedrawEventArgs e) {
			try {
				richTextBox1.Rtf = formStatus.NotesList[formStatus.CurrentPage - 1];
			} catch (ArgumentException) {
				richTextBox1.Text = formStatus.NotesList[formStatus.CurrentPage - 1];
			}
			currentPageLabel.Text = formStatus.CurrentPage.ToString();
			maxPageNumberLabel.Text = formStatus.MaxPages.ToString();
			Left = formStatus.Position[0];
			Top = formStatus.Position[1];
			if (richTextBox1.Text.Length > 0) {
				richTextBox1.Select(richTextBox1.Text.Length - 1, 0);
			}
		}
Exemplo n.º 2
0
		protected void OnFormRedraw(FormRedrawEventArgs e) {
			//if (FormRedraw != null) {
			//	FormRedraw(this, e);
			//} Die unten stehende Methode entspricht der im Kommentar
			RedrawEvent?.Invoke(this, e);
		}