public MainWindow() { var kernel = KernelConstructor.GetKernel(); _main = kernel.Get <Main.Main>(); _main.Output += Main_Output; _main.ExposureTimeCalculated += _main_ExposureTimeCalculated; Arguments = new ApplicationArguments { MeasurementsNrOfRows = 7, MeasurementsNrOfColumns = 12, High = byte.MaxValue, Low = 175, LcdWidth = 2560, LcdHeight = 1440, DesiredResistance = 8820, FileType = ImageFileType.Png.ToString(), OriginalExposureTime = 8000 }; InitializeComponent(); var releaseManager = kernel.Get <IReleaseManager>(); CheckForUpdateComponent = new CheckForUpdate(releaseManager, this); CheckForUpdateComponent.PropertyChanged += CheckForUpdateComponent_PropertyChanged; Loaded += (sender, args) => CheckForUpdateComponent.Check(); }
public void CheckUpdate() { StartCoroutine(CheckForUpdate.Check(updateText, updateButton)); }