public DPattern(DPatternType patternType, string title, Bitmap image, int color) { PatternType = patternType; Title = title; Image = image; Color = color; }
private void StartDownloadingPatternsUntilFillup(DPatternType patternType) { if (patternType == DPatternType.Color) { if (!isImageThreadRunning) { Thread thread = new Thread(new ThreadStart(downloadingPatterns)); thread.Start(); } } else { if (!isColorThreadRunning) { Thread thread = new Thread(new ThreadStart(downloadingColors)); thread.Start(); } } }
private void StartDownloadingPatternsUntilFillup(DPatternType patternType) { if (patternType == DPatternType.Image) { if (!isImageThreadRunning) downloadingPatterns(); } else { if (!isColorThreadRunning) downloadingColors(); } }
public bool IsCacheFill(DPatternType patternType) { return true; }