void baseGRF_GRFSaveComplete(object sender) { this.Dispatcher.Invoke(new ThreadStart(() => { UpdateWindowTitle(); grfopd = new GRFOpenProgressDialog(); grfopd.SetFileCount(baseGRF.FileCount); grfopd.Show(); })); }
private void BackstageTabItem_MouseUp(object sender, MouseButtonEventArgs e) { OpenFileDialog ofdGRF = new OpenFileDialog(); ofdGRF.Filter = "GRF Files (*.grf)|*.grf"; ofdGRF.RestoreDirectory = true; if ((bool)ofdGRF.ShowDialog()) { mainRibbon.SelectedTabItem = mainTab; if (baseGRF.IsOpen) { baseGRF.Close(); } FileName = ofdGRF.SafeFileName; grfopd = new GRFOpenProgressDialog(); openGRFThread = new Thread(new ThreadStart(() => { baseGRF.Open(ofdGRF.FileName); })); openGRFThread.Start(); //baseGRF.Open(ofdGRF.FileName); grfopd.ShowDialog(); } }