Beispiel #1
0
 private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     if (winColor != null)
     {
         winColor.Close();
         winColor = null;
     }
 }
Beispiel #2
0
 private void btnSelColor_Click(object sender, RoutedEventArgs e)
 {
     if (winColor == null)
     {
         winColor = new WinSelectColor();
     }
     winColor.ShowDialog();
     if (!winColor.isCancel)
     {
         selitem.value = winColor.color.ToString();
         selitem.refreshDispaly();
     }
 }
Beispiel #3
0
 private void btnSelColor_Click(object sender, RoutedEventArgs e)
 {
     if (winColor == null)
     {
         winColor = new WinSelectColor();
     }
     winColor.ShowDialog();
     if (!winColor.isCancel)
     {
         txtValue.Text  = winColor.color.ToString();
         rectColor.Fill = new SolidColorBrush(winColor.color);
     }
 }