public ReadConfiguationFile ( string configFile, string &statusMessage ) : bool | ||
configFile | string | |
statusMessage | string | |
리턴 | bool |
public MainWindow() { InitializeComponent(); if (License.ShowWindow() != true) { Application.Current.Shutdown(); } else if (!IsNet45OrNewer()) { MessageBox.Show((string)Application.Current.FindResource("strDotNetVersionError"), (string)Application.Current.FindResource("strTitle")); Application.Current.Shutdown(); } else { string statusMessage; _xmlConfiguation = new Configuration(); if (!_xmlConfiguation.ReadConfiguationFile("DeedDrafterConfiguration.xml", out statusMessage)) { MessageBox.Show((string)Application.Current.FindResource("strConfigReadError") + "\n\n" + statusMessage, (string)Application.Current.FindResource("strTitle")); Application.Current.Shutdown(); } else { ConfigureApplication(ref _xmlConfiguation); ResetGrid(); _defaultMapZoomFactor = ParcelMap.ZoomFactor; } } }
public MainWindow() { InitializeComponent(); if (License.ShowWindow() != true) { Application.Current.Shutdown(); } else if (!IsNet45OrNewer()) { MessageBox.Show((string)Application.Current.FindResource("strDotNetVersionError"), (string)Application.Current.FindResource("strTitle")); Application.Current.Shutdown(); } else { string statusMessage; _xmlConfiguation = new Configuration(); if (!_xmlConfiguation.ReadConfiguationFile("DeedDrafterConfiguration.xml", out statusMessage)) { MessageBox.Show((string)Application.Current.FindResource("strConfigReadError") + "\n\n" + statusMessage, (string)Application.Current.FindResource("strTitle")); Application.Current.Shutdown(); } else { ConfigureApplication(ref _xmlConfiguation); ResetGrid(); _defaultMapZoomFactor = ParcelMap.ZoomFactor; } } }