RefreshImages() 공개 메소드

public RefreshImages ( ) : void
리턴 void
예제 #1
0
        private void definitionLocationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog d = new FolderBrowserDialog();

            if (sharpTuner.activeImage != null)
            {
                string path = sharpTuner.activeImage.ToString();
                d.SelectedPath = path;
            }
            DialogResult ret = Utils.STAShowFDialog(d);

            if (ret == DialogResult.OK)
            {
                Settings.Default.SubaruDefsRepoPath = d.SelectedPath.ToString();
                Settings.Default.Save();
                Trace.WriteLine("Definition Repo Path Changed to: " + Settings.Default.SubaruDefsRepoPath);
                sharpTuner.Init();
                sharpTuner.RefreshImages();
            }
        }
예제 #2
0
        private void manuallySelectPatchToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            //Open dialog to change patch file location
            //Then refresh patches

            FolderBrowserDialog d = new FolderBrowserDialog();
            //d.RootFolder = Environment.SpecialFolder.MyComputer;
            string path = Settings.Default.PatchPath;

            d.SelectedPath = path;

            //d.ShowDialog();
            DialogResult ret = Utils.STAShowFDialog(d);

            if (ret == DialogResult.OK)
            {
                Settings.Default.PatchPath = d.SelectedPath;
                SharpTuner.LoadMods();
                SharpTuner.InitSettings();
                SharpTuner.RefreshImages();
            }
        }