public NotePage(MainWindow MW, Note NP) { note = NP; component = NP.NoteComponent; foreach (NoteProxy item in NoteProxy.NotesPr) { if (item.Currentnote == this.note) { NoteProxy.NotesPr.Remove(item); break; } } MainW = MW; this.InitializeComponent(); FieldPanel.Children.Clear(); foreach (NotePart item in this.note.NoteComponent.Children) { FieldPanel.Children.Add(item.RestoreData()); } IsNew = false; }
public NoteUserControl(NoteProxy note, MainWindow MW) { this.InitializeComponent(); if (!note.IsAudio) { AudioEl.Opacity = 0; } else { AudioEl.Opacity = 1; } if (!note.IsPicture) { PictureEl.Opacity = 0; } else { PictureEl.Opacity = 1; } if (!note.IsVideo) { VideoEl.Opacity = 0; } else { VideoEl.Opacity = 1; } Main.Background = note.Scb; Main.BorderBrush = note.BorderColor; Note = note; MainW = MW; Theme.Content = note.Currentnote.NoteTheme; }
public NotePage(MainWindow MW) { MainW = MW; this.InitializeComponent(); }
public DateRange(MainWindow mw) { MW = mw; InitializeComponent(); }