Exemplo n.º 1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public FormMain()
 {
     InitializeComponent();
     MainPath      = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
     ObjMkvinfo    = new Mkvinfo(GetMkvinfoDoneCallback);
     ObjMkvExtract = new Mkvextract(MkvExtractCallback);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 获取MKV信息回调函数
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GetMkvinfoDoneCallback(object sender, EventArgs e)
        {
            Mkvinfo mkvinfo = (Mkvinfo)sender;

            Invoke(new Action(() =>
            {
                btnOpenFile.Enabled = true;
                btnOpenFile.Text    = "打开文件";
                InitTrackListView(listViewTrack);
                ListMkvinfoTrack.AddRange(mkvinfo.Tracks);
                UpdataTrackListView(listViewTrack, mkvinfo.Tracks);
            }));
        }