Beispiel #1
0
        public void PrioridadeSelectAction(object sender, EventArgs args)
        {
            var stacks = SLPrioridades.Children;

            foreach (var linha in stacks)
            {
                Label label = ((StackLayout)linha).Children[1] as Label;
                label.TextColor = Color.Gray;
            }

            ((Label)((StackLayout)sender).Children[1]).TextColor = Color.Black;
            FileImageSource source     = ((Image)((StackLayout)sender).Children[0]).Source as FileImageSource;
            string          prioridade = source.ToString().Replace("File: Resources/", "").Replace(".png", "");

            Prioridade = prioridade;
        }
Beispiel #2
0
        private void PrioridadeSelectAction(object sender, EventArgs e)
        {
            var Stacks = SLPrioridades.Children;

            foreach (var Linha in Stacks)
            {
                Label LblPrioridade = ((StackLayout)Linha).Children[1] as Label;
                LblPrioridade.TextColor = Color.Gray;
                ((Label)((StackLayout)sender).Children[1]).TextColor = Color.Black;

                FileImageSource Source = ((Image)((StackLayout)sender).Children[0]).Source as FileImageSource;

                String Prioridade = Source.ToString().Replace("Resources/", "").Replace(".png", "").Replace("File: ", "").Replace("Prioridade", "");
                Prioridade2 = byte.Parse(Prioridade);
            }
        }