Exemplo n.º 1
0
        private void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();

            if (dialog.ShowDialog() == true)
            {
                EventAccessor accessor = new EventAccessor();
                accessor.WriteEventFile(dialog.FileName, clickEventList);
            }
        }
Exemplo n.º 2
0
        private void LoadButton_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            if (dialog.ShowDialog() == true)
            {
                EventAccessor     accessor = new EventAccessor();
                List <ClickEvent> events   = accessor.ReadEventFile(dialog.FileName);
                clickEventList = events;
                clickEventDataGrid.ItemsSource = clickEventList;
                clickEventDataGrid.Items.Refresh();
            }
        }