public RgbView() { InitializeComponent(); Loaded += (s, e) => { ErrorMonitor.Register(this); }; DataContextChanged += RgbView_DataContextChanged; }
public EquipmentListView() { InitializeComponent(); Loaded += (s, e) => { ErrorMonitor.Register(EquipmentGrid); }; }
/// <summary> /// Initializes a new instance of the <see cref="App" /> class. /// </summary> public App() { var initialConfigFilePath = Path.Combine(Path.GetDirectoryName(typeof(App).Assembly.Location), "ApiInspector.json"); if (File.Exists(initialConfigFilePath)) { _.InitialConfiguration = JsonConvert.DeserializeObject <InitialConfiguration>(File.ReadAllText(initialConfigFilePath)); } AttachBoaSystemAssemblyResolverToCurrentDomain(); errorMonitor = new ErrorMonitor(this); Mouse.OverrideCursor = DefaultCursor; }
public MainWindow() { Loaded += (s, e) => { if (!ConfigurationService.HasDarklandsPath(ConfigType.DarklandsSaveGameEditor) && !StaticDataService.SetDarklandsPath( ConfigurationService.GetDarklandsPath(ConfigType.DarklandsSaveGameEditor))) { var dialog = new SelectFolderDialog { RequiredFiles = StaticDataService.RequiredFiles, Owner = this }; if (dialog.ShowDialog() == true) { ConfigurationService.SetDarklandsPath(dialog.SelectedPath); if (!StaticDataService.SetDarklandsPath(dialog.SelectedPath)) { Close(); } } else { Close(); } } StaticDataService.SetDarklandsPath( ConfigurationService.GetDarklandsPath(ConfigType.DarklandsSaveGameEditor)); var model = new MainWindowViewModel(); DataContext = model; }; Closing += (s, e) => { ErrorMonitor.ShutDown(); }; }
public AttributeView() { InitializeComponent(); Loaded += (s, e) => { ErrorMonitor.Register(this); }; }
public PartyTab() { InitializeComponent(); Loaded += (s, e) => { ErrorMonitor.Register(PartyGrid); }; }
public CharacterDetailsView() { InitializeComponent(); Loaded += (s, e) => { ErrorMonitor.Register(this); }; }