public MainWindow() { Topmost = true; InitializeComponent(); InitializeGeneralSettingsUI(); var version = Assembly.GetExecutingAssembly().GetName().Version; mainWindow.Title += $" v{version}"; AppHeaderLabel.Content += $" v{version}"; Log.Information($"Current version: {version}"); ironworksContext = IronworksContext.Instance(); ironworksSettings = IronworksSettings.Instance; Welcome(); LoadSettings(); ShowDialogueWindow(); const int period = 500; chatboxTimer = new Timer(UpdateChatbox, null, 0, period); Log.Debug($"New RefreshChatbox timer with period {period}ms"); }
private void Application_Exit(object sender, ExitEventArgs e) { if (IronworksContext.Instance().Attached) { IronworksContext.driver.Dispose(); } Log.Debug("Closing program"); }
public DialogueWindow(MainWindow mainWindow) { Topmost = true; InitializeComponent(); ironworksContext = mainWindow.ironworksContext; ironworksSettings = mainWindow.ironworksSettings; LoadUISettings(); const int period = 500; chatboxTimer = new Timer(RefreshDialogueTextBox, null, 0, period); Log.Debug($"New RefreshChatbox timer with period {period}ms"); }