Example #1
0
 private void RefreshPresence_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     RefreshPresenceContents();
     DiscordRpc.UpdatePresence(ref presence);
 }
Example #2
0
 private void button1_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     client.SendMessage(this.FindControl <TextBox>("textBox1"), this.FindControl <ListBox>("list1"), this.FindControl <TextBlock>("block1"));
 }
 private void Save_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     SaveFileAsync();
 }
Example #4
0
 private void NextPage_btn_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     pagesvw.Next();
 }
 private void OpenWindow1(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     new Window1().Show();
 }
Example #6
0
        private void BtnCreateCircle_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            var circle = new Models.Circle(this.drawingCanvas, Colors.Red);

            this.DrawShape(circle);
        }
Example #7
0
        private void CloseWindow(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            Window hostWindow = (Window)this.VisualRoot;

            hostWindow.Close();
        }
 /// <summary>
 /// キャンセルボタンのクリックハンドラ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CancelButton_Click(object?sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     Close();
 }
Example #9
0
 private void refresh_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     refreshMessage();
 }
Example #10
0
 protected void B1_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     this.OnClickInButton1();
 }
 /// <summary>
 /// OKボタンのクリックハンドラ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OkButton_Click(object?sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     ((AddOrClonePlaylistItemsDialogViewModel)DataContext !).Result = true;
     Close();
 }
Example #12
0
        private void Editor_LostFocus(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            CloseIntellisense();

            completionAssistant?.Close();
        }
Example #13
0
        private async void Button_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            var result = await Modal.Show("Do you want to continue?", _modalContent, ModalButtons.YesNo);

            this.FindControl <TextBlock>("result").Text = $"Modal Result: {result}";
        }
Example #14
0
 private void NewDocument_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     AppData.NewDocumentOnWorkSpace(this);
 }
Example #15
0
        private void BtnCreateTriangle_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            var triangle = new Models.Triangle(this.drawingCanvas, Colors.Blue);

            this.DrawShape(triangle);
        }
Example #16
0
 private void TitleBar_DoubleTapped(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     this.WindowState = WindowState.Maximized;
 }
Example #17
0
        private void BtnCreateSquare_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            var square = new Models.Square(this.drawingCanvas, Colors.Green);

            this.DrawShape(square);
        }
Example #18
0
 private void scrollToLast_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     ScrollTo(_viewModel.Items.Count - 1);
 }
 private void OkButton_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     Dispatcher.UIThread.InvokeAsync(new Action(() =>
                                                { this.Parent.IsVisible = false; }));
     OnClosed?.Invoke(this, new ByteEventArgs(activeIndex, Convert.ToByte(colorValueNumeric.Value)));
 }
Example #20
0
 private void scrollToRandom_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     ScrollTo(_random.Next(_viewModel.Items.Count - 1));
 }
Example #21
0
        private void MinimizeWindow(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            Window hostWindow = (Window)this.VisualRoot;

            hostWindow.WindowState = WindowState.Minimized;
        }
Example #22
0
 private void scrollToSelected_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     ScrollTo(_selectedIndex);
 }
Example #23
0
 private void PreviousPage_btn_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     pagesvw.Previous();
 }
Example #24
0
 private void BtnExit_Click(object?sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     this.Close();
 }
Example #25
0
        private void ShowDialog_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            Dialog dialog = new Dialog();

            dialog.ShowDialog();
        }
Example #26
0
 void _clearControlBtn_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     //TODO: delete elements using back key
     _generator.controls.Clear();
     _textEditor.TextArea.TextView.Redraw();
 }
 private void ToggleFormatting_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     formatted            = !formatted;
     tbxText.Text         = formatted ? originalText : originalText.Replace(Environment.NewLine, "").Replace(" ", "");
     tbxText.TextWrapping = formatted ? Avalonia.Media.TextWrapping.NoWrap : Avalonia.Media.TextWrapping.Wrap;
 }
Example #28
0
 /// <summary>
 /// Closes the dialog when the OK button is pressed.
 /// </summary>
 /// <param name="sender">Not used</param>
 /// <param name="e">Not used</param>
 public void OkButton_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     Close();
 }
Example #29
0
 private void SplashTextBlock_Tapped(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
     GetSplashTextAsync().ConfigureAwait(false);
 }
Example #30
0
 /// <summary>
 /// Do something when the Cancel Button is  Clicked
 /// </summary>
 /// <param name="sender">The sender object</param>
 /// <param name="e">The Information of the event</param>
 protected virtual void OnAgreeButtonClick(object sender, Avalonia.Interactivity.RoutedEventArgs e)
 {
 }