public void InitializeParameter(MainWindow mainWindow) { XGrid.OpacityMask = this.Resources["OpenBrush"] as LinearGradientBrush; CB_Size.ItemsSource = Constant.Sizes; CB_Region.ItemsSource = Constant.Regions; SettingInstant = new Setting(); XGrid.DataContext = SettingInstant; _mainWindow = mainWindow; }
public void InitializeParameter(Setting s, MainWindow mainWindow) { _maxCount = 7; _clickCount = 0; _current = -1; _imagePathList = new List<string>(); _crawler = new Crawler(s); _autoSet = s.AutoSet; _mainWindow = mainWindow; }
void App_Startup(object sender, StartupEventArgs e) { MainWindow win = new MainWindow(); MainWindow = win; win.Show(); }