public MainWindow() { _IsShutDown = false; if (Utils.TataruSingleInstance.IsOnlyInstance == false) { ShutDown(); return; } try { _LogWriter = new LogWriter(); _LogWriter.StartWriting(); } catch (Exception ex) { Logger.WriteLog(ex); } InitializeComponent(); UiWindow.Window = this; try { _LanguagueWrapper = new LanguagueWrapper(this); _Updater = new Updater(); } catch (Exception e) { Logger.WriteLog(e); } }
public MainWindow() { _IsShutDown = false; if (Utils.TataruSingleInstance.IsOnlyInstance == false) { ShutDown(); return; } try { _LogWriter = new LogWriter(); _LogWriter.StartWriting(); Logger.WriteLog("TataruHelper v" + Convert.ToString(System.Reflection.Assembly.GetEntryAssembly().GetName().Version)); } catch (Exception ex) { Logger.WriteLog(ex); } try { InitializeComponent(); UiWindow.Window = this; } catch (Exception ex) { Logger.WriteLog(ex); return; } try { _LanguagueWrapper = new LanguagueWrapper(this); _Updater = new SquirrelUpdater(new Utils.LoggerWrapper()); } catch (Exception e) { Logger.WriteLog(e); } }