public NoteUserControl(NoteProxy note) { 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; } }
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 void GetProxy() { NoteProxy proxy = new NoteProxy(this); }