Пример #1
0
        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;
            }
        }
Пример #2
0
        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;
        }
Пример #3
0
 public void GetProxy()
 {
     NoteProxy proxy = new NoteProxy(this);
 }