Exemple #1
0
        private void MenuOpen_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();;

            dialog.FileName         = "";
            dialog.Filter           = "DBPF Packages|*.package|All Files|*.*";
            dialog.FilterIndex      = 1;
            dialog.InitialDirectory = PathStore.GetPath("", "package");
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            Filename = dialog.FileName;

            PathStore.SetPath("", "package", Path.GetDirectoryName(dialog.FileName));
        }
Exemple #2
0
 private void MenuResetPaths_Click(object sender, EventArgs e)
 {
     PathStore.Reset(PackageName);
 }