public ConfiGenForm() { InitializeComponent(); Conf = new SNAP.Engine.Conf( //new ConfEditor.Util.IndexedSortedList <string, SNAP.Engine.Conf.Section> () ); _suppressChecks = false; panelProjectionWildcards.ContentOverrideChanged += new EventHandler(panelProjectionWildcards_ContentOverrideChanged); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); dialog.CheckFileExists = true; dialog.CheckPathExists = true; //dialog.InitialDirectory = dialog.Multiselect = false; dialog.Filter = "conf files (*.conf)|*.conf|All files (*.*)|*.*"; if (dialog.ShowDialog(this) == DialogResult.OK) { SNAP.Engine.Conf conf = SNAP.Engine.Conf.LoadFile( // new Util.IndexedSortedList <string, SNAP.Engine.Conf.Section> (), dialog.FileName); this.Conf = conf; } }
static void Main(string [] argv) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //SNAP.Engine.Settings parser = new SNAP.Engine.Settings (argv); SNAP.Engine.Setup.ProgramName = System.Windows.Forms.Application.ProductName; if (argv.Length > 0) { SNAP.Engine.Conf conf = SNAP.Engine.Conf.LoadFile(argv [0]); Application.Run(new ConfiGenForm(conf)); } else { Application.Run(new ConfiGenForm()); } }
public ConfiGenForm(SNAP.Engine.Conf conf) { InitializeComponent(); Conf = conf; _suppressChecks = false; }