Ejemplo n.º 1
0
        /******************************/
        /*       Button Events        */
        /******************************/
        #region Button Events

        /// <summary>
        /// Button_1_Click
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_1_Click(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine("Button_1_Click");

            // Reload the default list
            ReFillList(LST.PopulateData());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;

            Datas = LST.PopulateData();

            // Set Button ToolTips
            Button_1.ToolTip = "Button #1: reload the default list";
            Button_2.ToolTip = "Button #2: clear the list";
            Button_3.ToolTip = "Button #3: save the list/classes to Xml";
            Button_4.ToolTip = "Button #4: save the list/classes to Jason";
            Button_5.ToolTip = "Button #5: load the list from Xml";
            Button_6.ToolTip = "Button #6: load the list from Jason";
            Button_7.ToolTip = "Button #7: save just one single class to CDatas.json/CDatas.xml";
        }