Interaction logic for ChangeScreen.xaml
Inheritance: System.Windows.Controls.UserControl
        private void btnLoadS1I1_Click(object sender, RoutedEventArgs e)
        {
            imgState1Img1.Source    = null;
            imgState1Img1.ToolTip   = "";
            btnLoadS1I2.IsEnabled   = false;
            imgState1Img2.IsEnabled = false;
            lblState1X.IsEnabled    = false;
            lblState1Y.IsEnabled    = false;
            txtState1X.IsEnabled    = false;
            txtState1Y.IsEnabled    = false;
            lblZOrder.IsEnabled     = false;
            txtZOrder.IsEnabled     = false;

            chkRepeat.IsEnabled         = false;
            lblAnimationDelay.IsEnabled = false;
            txtDelay.IsEnabled          = false;
            chkRepeat.IsEnabled         = false;

            selectImageWindow dlgSelectImage = new selectImageWindow();
            ctrlSelectImage   si             = new ctrlSelectImage();

            si.ImagePicked        += si_S1I1ImagePicked;
            dlgSelectImage.Width   = si.Width + 80;
            dlgSelectImage.Height  = si.Height + 80;
            dlgSelectImage.Content = si;
            dlgSelectImage.Show();
        }
 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 btnLoadS2I4_Click(object sender, RoutedEventArgs e)
        {
            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();
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        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 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 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();
        }
        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();
        }