public MainWindow() { InitializeComponent(); GistogramColor.mainWindow = this; ActionImage.mainWindow = this; image = showImage(); //Отображаем картинку ActionImage.bmpImg = ActionImage.BitmapImage2Bitmap(image); ActionImage.Standard = image; ActionImage.loadPanel("Стандарт"); }
private void listAction_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (flagInit == true) { ActionImage.loadPanel((listAction.SelectedItem as TextBlock).Text); } else { flagInit = true; } }