private void optimizer_OptimizeCharacterProgressChanged(object sender, OptimizeCharacterProgressChangedEventArgs e) { MaxScoreLabel.Text = e.BestValue.ToString(); AltProgress.Value = e.ProgressPercentage; MainProgress.Value = Math.Max(e.ProgressPercentage, MainProgress.Value); Title = string.Format("Optimizer - {0}% Complete", MainProgress.Value); }
void _optimizer_OptimizeCharacterProgressChanged(object sender, OptimizeCharacterProgressChangedEventArgs e) { labelMax.Text = e.BestValue.ToString(); progressBarAlt.Value = e.ProgressPercentage; progressBarMain.Value = Math.Max(e.ProgressPercentage, progressBarMain.Value); Text = string.Format("{0}% Complete - Rawr Optimizer", progressBarMain.Value); }
void _optimizer_OptimizeCharacterProgressChanged(object sender, OptimizeCharacterProgressChangedEventArgs e) { switch (currentOperation) { case AsyncOperation.Optimize: statusLabel.Text = string.Format("[{2}/{3}] {0}: {1}", CurrentBatchCharacter.Name, e.BestValue, batchIndex + 1, BatchCharacterList.Count); statusProgressBar.Value = e.ProgressPercentage; break; } }
void _optimizer_OptimizeCharacterProgressChanged(object sender, OptimizeCharacterProgressChangedEventArgs e) { switch (currentOperation) { case AsyncOperation.Optimize: case AsyncOperation.ProgressiveOptimize: Status = string.Format("[{2}/{3}] {0}: {1}", CurrentBatchCharacter.Name, e.BestValue, batchIndex + 1, BatchCharacterList.Count); Progress = e.ProgressPercentage; if (StatusUpdated != null) { StatusUpdated(this, EventArgs.Empty); } break; case AsyncOperation.BuildProgressiveUpgradeList: Status = string.Format("[{4}/{5}] {1}: [{2}/{3}] {0}", CurrentBatchCharacter.Name, itemList[itemIndex].Name, batchIndex + 1, BatchCharacterList.Count, itemIndex + 1, itemList.Length); Progress = e.ProgressPercentage; if (StatusUpdated != null) { StatusUpdated(this, EventArgs.Empty); } break; } }
void batchOptimizer_OptimizeBatchProgressChanged(object sender, OptimizeCharacterProgressChangedEventArgs e) { Status = string.Format("{0} / {1}", BatchCharacterList.Score, e.BestValue); Progress = e.ProgressPercentage; if (StatusUpdated != null) { StatusUpdated(this, EventArgs.Empty); } }