Exemplo n.º 1
0
        private void DestoryTimePicker()
        {
            if (popup != null)
            {
                if (timePicker != null)
                {
                    popup.ContentView.Remove(timePicker);
                    timePicker.Dispose();
                    timePicker = null;
                }

                root.Remove(popup);
                popup.Dispose();
                popup = null;
            }
        }
Exemplo n.º 2
0
        private void CreateRepeatTimePicker()
        {
            DestoryTimePicker();
            popup             = new Tizen.NUI.CommonUI.Popup("Popup");
            popup.Size2D      = new Size2D(1032, 1064);
            popup.Position2D  = new Position2D(24, 50);
            popup.TitleText   = "Timer 02";
            popup.ButtonCount = 2;
            popup.SetButtonText(0, "Cancel");
            popup.SetButtonText(1, "OK");
            popup.PopupButtonClickedEvent += PopupButtonClickedEvent;
            root.Add(popup);

            timePicker            = new Tizen.FH.NUI.Controls.TimePicker("DATimePickerRepeat");
            timePicker.Size2D     = new Size2D(1032, 812);
            timePicker.Position2D = new Position2D(0, 0);
            popup.ContentView.Add(timePicker);
        }