private void btnOpen_Click(object sender, RoutedEventArgs e) { selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }
private void btnLoadS2I3_Click(object sender, RoutedEventArgs e) { selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_S2I3ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }
private void SelectPressedImage_Click(object sender, RoutedEventArgs e) { selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage siPressed = new ctrlSelectImage(); siPressed.ImagePicked += siPressed_ImagePicked; dlgSelectImage.Width = siPressed.Width + 80; dlgSelectImage.Height = siPressed.Height + 80; dlgSelectImage.Content = siPressed; dlgSelectImage.Show(); }
private void SelectNormalImage_Click(object sender, RoutedEventArgs e) { selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage siNormal = new ctrlSelectImage(); siNormal.ImagePicked += siNormal_ImagePicked; dlgSelectImage.Width = siNormal.Width + 80; dlgSelectImage.Height = siNormal.Height + 80; dlgSelectImage.Content = siNormal; dlgSelectImage.Show(); }
private void btnLoadS2I4_Click(object sender, RoutedEventArgs e) { imgState2Img4.Source = null; imgState2Img4.ToolTip = ""; selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_S2I4ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }
private void btnLoadS1I3_Click(object sender, RoutedEventArgs e) { imgState1Img3.Source = null; imgState1Img3.ToolTip = ""; btnLoadS1I4.IsEnabled = false; imgState1Img4.IsEnabled = false; selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_S1I3ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }
private void btnLoadS2I2_Click(object sender, RoutedEventArgs e) { imgState2Img2.Source = null; imgState2Img2.ToolTip = ""; btnLoadS2I3.IsEnabled = false; imgState2Img3.IsEnabled = false; if (imgState1Img2.Source == null) { lblAnimationDelay.IsEnabled = false; txtDelay.IsEnabled = false; chkRepeat.IsEnabled = false; } selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_S2I2ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }
private void btnLoadS2I1_Click(object sender, RoutedEventArgs e) { imgState2Img1.Source = null; imgState2Img1.ToolTip = ""; btnLoadS2I2.IsEnabled = false; imgState2Img2.IsEnabled = false; lblState2X.IsEnabled = false; lblState2Y.IsEnabled = false; txtState2X.IsEnabled = false; txtState2Y.IsEnabled = false; txtDelay.IsEnabled = false; selectImageWindow dlgSelectImage = new selectImageWindow(); ctrlSelectImage si = new ctrlSelectImage(); si.ImagePicked += si_S2I1ImagePicked; dlgSelectImage.Width = si.Width + 80; dlgSelectImage.Height = si.Height + 80; dlgSelectImage.Content = si; dlgSelectImage.Show(); }