Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            this.richtextBox1.AddHandler(RichTextBox.DragOverEvent, new DragEventHandler(this.DragItem), true);
            this.richtextBox1.AddHandler(RichTextBox.DropEvent, new DragEventHandler(this.DropItem), true);

            List <string> styles = new List <string> {
                "pink", "dark"
            };

            styleBox.SelectionChanged += ThemeChange;
            styleBox.ItemsSource       = styles;
            styleBox.SelectedItem      = "pink";
            listPaths.ItemsSource      = paths;

            paths = JsonWorker.deserializeProducts <List <String> >();
            if (paths == null)
            {
                paths = new List <String>();
            }
        }
Ejemplo n.º 2
0
 private static void AddUri(List <String> list, String path)
 {
     list.Add(path);
     JsonWorker.serializeProduct <List <String> >(list);
 }