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(); } }
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); } }