private void ReadCMF_btn_Click(object sender, RoutedEventArgs e)
        {
            ReadCMF_btn.IsEnabled         = false;
            UnpackCMF_btn.IsEnabled       = true;
            UnpackCMFRecord_btn.IsEnabled = true;
            OpenFileDialog ReadCMF = new OpenFileDialog();

            ReadCMF.Title            = "Select a file to open";
            ReadCMF.RestoreDirectory = true;
            ReadCMF.DefaultExt       = "cmf";
            ReadCMF.CheckPathExists  = true;
            ReadCMF.CheckFileExists  = true;
            ReadCMF.Filter           = "Closers CMF|*.cmf";
            ReadCMF.Multiselect      = true;
            if (ReadCMF.ShowDialog() == true)
            {
                ShowOutputWin OutputWindows = new ShowOutputWin(motion, CMF_files, ReadCMF.FileNames.Count());
                OutputWindows.Show();
                foreach (string strFilename in ReadCMF.FileNames)
                {
                    CMF_files.Add(strFilename);
                    Unpacking_file = strFilename;
                    OpenArchive(strFilename);
                    System.Threading.Thread.Sleep(10);
                    OutputWindows.processbar_processing();
                }
                OutputWindows.Close();
            }
        }
 private void UnpackCMF_btn_Click(object sender, RoutedEventArgs e)
 {
     archive = null;
     if (CMFListView.SelectedItems.Count > 0)
     {
         motion = "UnpackingSelect";
         for (int i = 0; i < CMFListView.SelectedItems.Count; i++)
         {
             UnpackList SelectCMF = (UnpackList)CMFListView.SelectedItems[i];
             SelectCMF_file.Add(SelectCMF.File + "," + SelectCMF.Name);
         }
         ShowOutputWin OutputWindows = new ShowOutputWin(motion, SelectCMF_file, SelectCMF_file.Count);
         OutputWindows.Show();
     }
     else
     {
         motion = "Unpacking";
         ShowOutputWin OutputWindows = new ShowOutputWin(motion, CMF_files, items.Count);
         OutputWindows.Show();
     }
 }