示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = folderBrowserDialog1.ShowDialog();

            if (result == DialogResult.OK)
            {
                MSD_File_Watcher.Path = _path = folderBrowserDialog1.SelectedPath + "\\";
                msd_text_box.Items.Clear();
                msd_details.Items.Clear();
                mapUserControl.Map.Children.Clear();
                _prev_focus_key = null;
                _msd            = new MSD_structure();
                LoadFiles();
                path_label.Text = _path;
            }
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();
            SetupBingMap();

            folderBrowserDialog1.ShowNewFolderButton = false;
            folderBrowserDialog1.Description         = "Locate MSD folder (*.vroom files)";

            try
            {
                _path = Settings.Default.LastPath;
                folderBrowserDialog1.SelectedPath = _path;
                path_label.Text       = _path;
                MSD_File_Watcher.Path = _path;
                _msd = new MSD_structure();
                LoadFiles();
            }
            catch
            {
                path_label.Text = "Last path not found...";
            }

            alarm_sound = new SoundPlayer(Path.GetFullPath("alert.wav"));
        }
        public MainForm()
        {
            InitializeComponent();
            SetupBingMap();

            folderBrowserDialog1.ShowNewFolderButton = false;
            folderBrowserDialog1.Description = "Locate MSD folder (*.vroom files)";

            try
            {
                _path = Settings.Default.LastPath;
                folderBrowserDialog1.SelectedPath = _path;
                path_label.Text = _path;
                MSD_File_Watcher.Path = _path;
                _msd = new MSD_structure();
                LoadFiles();
            }
            catch
            {
                path_label.Text = "Last path not found...";
            }

            alarm_sound = new SoundPlayer(Path.GetFullPath("alert.wav"));
        }
 private void button1_Click(object sender, EventArgs e)
 {            
     DialogResult result = folderBrowserDialog1.ShowDialog();
     if (result == DialogResult.OK) 
     {
         MSD_File_Watcher.Path = _path = folderBrowserDialog1.SelectedPath + "\\";
         msd_text_box.Items.Clear();
         msd_details.Items.Clear();
         mapUserControl.Map.Children.Clear();
         _prev_focus_key = null;
         _msd = new MSD_structure();
         LoadFiles();
         path_label.Text = _path;
     } 
 }