private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (args != null)
     {
         FillDgv(FileIo.ReadXml(args[0]));
     }
 }
        private void BtnLoad_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog
            {
                InitialDirectory = System.AppDomain.CurrentDomain.BaseDirectory,
                Filter           = "tlm files (*.tlm)|*.tlm|All files (*.*)|*.*"
            };

            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FillDgv(FileIo.ReadXml(openFileDialog.FileName));
            }
        }
 private void BtnSave_Click(object sender, RoutedEventArgs e)
 {
     Dgv_Selection();
     FileIo.SaveXml(_tskwin);
 }