private void SetColor(POSButtonTableStatusColor status) { switch (status) { case POSButtonTableStatusColor.None: Background = null; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Ordered: Background = Brushes.Blue; this.Foreground = Brushes.White; break; case POSButtonTableStatusColor.Bill: Background = Brushes.Green; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Taxinvoice: Background = Brushes.Orange; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Compledted: Background = null; this.Foreground = Brushes.Black; break; default: break; } }
private void SetColor(POSButtonTableStatusColor status) { switch (status) { case POSButtonTableStatusColor.None: Background = null; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Ordered: Background = Brushes.Blue; this.Foreground = Brushes.White; break; case POSButtonTableStatusColor.Bill: Background = Brushes.Green; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Taxinvoice: Background = Brushes.Orange; this.Foreground = Brushes.Black; break; case POSButtonTableStatusColor.Compledted: Background = null; this.Foreground = Brushes.Black; break; default: break; } }