예제 #1
0
        private void menuTableSearchPath_Click(object sender, System.EventArgs e)
        {
            TableSearchPathDialog dlg = new TableSearchPathDialog();

            dlg.Path = Session.Current.TableSearchPath.Path;
            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                Session.Current.TableSearchPath.Path = dlg.Path;
                Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\MapInfo\MapXtreme\6.6");
                key.SetValue("SampleDataSearchPath", Session.Current.TableSearchPath.Path);
                key.Close();
            }
            dlg.Dispose();
        }
예제 #2
0
 private void menuTableSearchPath_Click(object sender, System.EventArgs e)
 {
     TableSearchPathDialog dlg = new TableSearchPathDialog();
     dlg.Path = Session.Current.TableSearchPath.Path;
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         Session.Current.TableSearchPath.Path = dlg.Path;
         Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\MapInfo\MapXtreme\6.6");
         key.SetValue("SampleDataSearchPath", Session.Current.TableSearchPath.Path);
         key.Close();
     }
     dlg.Dispose();
 }