Пример #1
0
 void baseGRF_GRFSaveComplete(object sender)
 {
     this.Dispatcher.Invoke(new ThreadStart(() =>
     {
         UpdateWindowTitle();
         grfopd = new GRFOpenProgressDialog();
         grfopd.SetFileCount(baseGRF.FileCount);
         grfopd.Show();
     }));
 }
Пример #2
0
        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();
            }
        }