Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public NotePage(MainWindow MW)
 {
     MainW = MW;
     this.InitializeComponent();
 }
Ejemplo n.º 4
0
 public DateRange(MainWindow mw)
 {
     MW = mw;
     InitializeComponent();
 }