public RatingBarView()
        {
            InitializeComponent();

            var close = new TapGestureRecognizer();

            close.Tapped += async(s, e) =>
            {
                DialogNotifier.Cancel();
            };
            switch (Device.RuntimePlatform)
            {
            case Device.iOS:
                RatingBar.Margin        = new Thickness(0, 0, 0, 0);
                RatingBar.FillColor     = (Color)Application.Current.Resources["MainColor"];
                RatingBar.HeightRequest = 35;
                break;

            case Device.Android:
                break;

            default:
                break;
            }
            IconViewClose.GestureRecognizers.Add(close);
        }
예제 #2
0
 protected override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     if (GetTemplateChild("CloseButton") is Button b)
     {
         b.Clicked += (_, __) => DialogNotifier.Cancel();
     }
 }
예제 #3
0
 /// <summary>
 /// 通知ダイアログを表示します。
 /// </summary>
 public void ShowDialog()
 {
     if (ShowsDialog)
     {
         var dialog = new DialogNotifier(DialogData);
         dialog.FormClosing += dialog_FormClosing;
         NotifierManager.Instance.ShowNotifier(dialog);
     }
 }
예제 #4
0
        public async void GetRid()
        {
            Instance  = null;
            prevIndex = CarouselView.Position;
            prevUID   = (BindingContext as ProjectCardViewModel)?.UID ?? string.Empty;
            RunAnimation(true);
            await Task.Delay(700);

            DialogNotifier.Complete();
        }
 /// <summary>
 /// 通知ダイアログを表示します。
 /// </summary>
 public void ShowDialog(System.Windows.Forms.FormClosingEventHandler customClosingHandler = null)
 {
     if (ShowsDialog)
     {
         var dialog = new DialogNotifier(DialogData);
         dialog.FormClosing += dialog_FormClosing;
         if (customClosingHandler != null)
         {
             dialog.FormClosing += customClosingHandler;
         }
         NotifierManager.Instance.ShowNotifier(dialog);
     }
 }
예제 #6
0
        private async void ConfirmButton_Clicked(object sender, EventArgs e)
        {
            MainSL.InputTransparent = true;
            await Task.WhenAll(new[]
            {
                MainSL.FadeTo(0, easing: Easing.CubicInOut),
                ThankSL.ScaleTo(1, 500, Easing.SpringOut),
                ThankSL.FadeTo(1, easing: Easing.CubicInOut),
            });

            await Task.Delay(800);

            DialogNotifier.Complete();
        }
예제 #7
0
 void OK_Clicked(System.Object sender, System.EventArgs e)
 {
     DialogNotifier.Complete();
 }
 private void AcceptAndClose_Tapped(object sender, EventArgs e)
 {
     DialogNotifier.Complete();
 }
예제 #9
0
 private void CloseButton_Clicked(object sender, EventArgs e) => DialogNotifier.Cancel();
 void Handle_Cancel_Clicked(object sender, System.EventArgs e)
 {
     DialogNotifier.Cancel();
 }
예제 #11
0
 private void SettingsButton_Clicked(object sender, EventArgs e)
 {
     DialogNotifier.Cancel();
 }
예제 #12
0
 private void ConfirmButton_Clicked(object sender, EventArgs e)
 {
     DialogNotifier.Complete();
 }
 void Handle_Cancel_Clicked(object sender, System.EventArgs e)
 {
     // send cancel notification to the dialog.
     DialogNotifier.Cancel();
 }
 void Handle_OK_Clicked(object sender, System.EventArgs e)
 {
     // send complete notification to the dialog.
     DialogNotifier.Complete();
 }
예제 #15
0
 void Cancel_Clicked(System.Object sender, System.EventArgs e)
 {
     DialogNotifier.Cancel();
 }
 void Handle_OK_Clicked(object sender, System.EventArgs e)
 {
     DialogNotifier.Complete();
 }
예제 #17
0
 async void CloseDialog(object sender, EventArgs args)
 {
     DialogNotifier.Cancel();
 }
예제 #18
0
 private void SubmitButton_Clicked(object sender, EventArgs e)
 {
     completed = true;
     DialogNotifier.Complete();
 }
 private void CancelAndClose_Tapped(object sender, EventArgs e)
 {
     DialogNotifier.Cancel();
 }
예제 #20
0
 private void SaveButton_Clicked(object sender, EventArgs e) => DialogNotifier.Complete();
예제 #21
0
 public void CloseDialog()
 {
     DialogNotifier.Cancel();
 }