private void MenuItem_Click_1(object sender, RoutedEventArgs e) { if (DeleteRequested != null) { DeleteRequested.Invoke(this, null); } }
public void Draw() { var enable = Enable.Value; ImGui.Checkbox($"{Name?.Value}{UniqueName}", ref enable); Enable.Value = enable; ImGui.SameLine(); ImGui.Indent(344); if (ImGui.Button("Delete")) { DeleteRequested?.Invoke(this, EventArgs.Empty); } ImGui.Unindent(344); ImGui.Indent(20); string sourceUrl = SourceUrl.Value; ImGui.InputText(UniqueName + "SourceUrl", ref sourceUrl, 200); ChangeSourceUrlValue(sourceUrl); ImGui.Unindent(20); ImGui.Spacing(); ImGui.Spacing(); ImGui.Spacing(); }
public void Draw() { ImGui.TextColored(Color.Green.ToImguiVec4(), Name); ImGui.Indent(30); var enable = Enable.Value; ImGui.Checkbox($"Autoupdate{UniqueName}", ref enable); Enable.Value = enable; ImGui.SameLine(); ImGui.Indent(160); if (!Enable && CommitShaCurrent != CommitShaLatest && CommitShaLatest != "") { if (ImGui.Button($"Update{UniqueName}")) { CommitShaCurrent.Value = CommitShaLatest; } } ImGui.SameLine(); ImGui.Indent(160); if (ImGui.Button($"Delete{UniqueName}")) { DeleteRequested?.Invoke(this, EventArgs.Empty); } ImGui.Unindent(320); string sourceUrl = SourceUrl?.Value ?? ""; ImGui.InputText(UniqueName + "SourceUrl", ref sourceUrl, 200); ChangeSourceUrlValue(sourceUrl); string commitId = CommitShaCurrent?.Value ?? ""; if (Enable) { ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.3f); ImGui.InputText(UniqueName + "CommitId", ref commitId, 40, ImGuiInputTextFlags.ReadOnly); ImGui.PopStyleVar(); } else { ImGui.InputText(UniqueName + "CommitId", ref commitId, 100); } CommitShaCurrent.Value = commitId; ImGui.Unindent(30); ImGui.Spacing(); ImGui.Spacing(); ImGui.Spacing(); }
private void DeleteButton_Click(object sender, RoutedEventArgs args) { DeleteRequested?.Invoke(DataContext); Microsoft.AppCenter.Analytics.Analytics.TrackEvent("Proj: Delete", new Dictionary <string, string> { { "DataContext", DataContext.ToString() }, } ); }
private async void ExecuteDeleteEntryCommand() { ConfirmationServiceArgs args = new ConfirmationServiceArgs(Strings.Confirm, Strings.DoYouReallyWantToDeleteThisEntry, Strings.Yes, Strings.No); if (!await ViewServices.Execute <IConfirmationService, bool>(args)) { return; } DeleteRequested?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Handles when the <see cref="MessageBox"/> has been closed from an option button being clicked. /// This is called immediately before <see cref="CheckBox.TickedOverSpriteChanged"/>. /// Override this method instead of using an event hook on <see cref="CheckBox.TickedOverSpriteChanged"/> when possible. /// </summary> /// <param name="button">The button that was used to close the <see cref="MessageBox"/>.</param> protected override void OnOptionSelected(MessageBoxButton button) { if (button == MessageBoxButton.Ok) { if (DeleteRequested != null) { DeleteRequested.Raise(this, EventArgsHelper.Create(CharacterSlot)); } } base.OnOptionSelected(button); }
public WorkspaceInstallerModulesView() : base() { ToolBoxAvailable = true; Order = 0; Title = "Installer Modules"; Icon = null; designer.DuplicateToolStripButton.Click += (s_, e_) => DuplicateRequested?.Invoke(this, EventArgs.Empty); designer.DeleteToolStripButton.Click += (s_, e_) => DeleteRequested?.Invoke(this, EventArgs.Empty); designer.MoveUpToolStripButton.Click += (s_, e_) => MoveUpRequested?.Invoke(this, EventArgs.Empty); designer.MoveDownToolStripButton.Click += (s_, e_) => MoveDownRequested?.Invoke(this, EventArgs.Empty); designer.RefreshToolStripButton.Click += (s_, e_) => RefreshRequested?.Invoke(this, EventArgs.Empty); designer.InstallAllToolStripButton.Click += (s_, e_) => ProceedRequested?.Invoke(this, EventArgs.Empty); designer.DataGridView1.SelectionChanged += DataGridView_SelectionChanged; designer.DataGridView1.CellPainting += DataGridView_CellPainting; designer.DataGridView1.CellContentClick += DataGridView_CellContentClick; designer.SingleClickInstallButtonTimer.Tick += SingleClickInstallButtonTimer_Tick; designer.DataGridView1.CellContentDoubleClick += DataGridView_CellContentDoubleClick; }
public void Draw() { var enable = Enable.Value; ImGui.Checkbox($"Auto Update{UniqueName}", ref enable); Enable.Value = enable; ImGui.SameLine(); ImGui.Indent(110); ImGui.PushItemWidth(200); string name = Name.Value; ImGui.InputText(UniqueName + "Name", ref name, 50); Name.Value = name; ImGui.PopItemWidth(); ImGui.Unindent(110); ImGui.SameLine(); ImGui.Indent(344); if (ImGui.Button("Delete")) { DeleteRequested?.Invoke(this, EventArgs.Empty); } ImGui.Unindent(344); ImGui.Indent(20); string sourceUrl = SourceUrl.Value; ImGui.InputText(UniqueName + "SourceUrl", ref sourceUrl, 200); SourceUrl.Value = sourceUrl; ImGui.Unindent(20); ImGui.Spacing(); ImGui.Spacing(); ImGui.Spacing(); }
private void MenuItem_DeleteRoom_Click(object sender, RoutedEventArgs e) { DeleteRequested?.Invoke(DataContext, EventArgs.Empty); }
void IViewEvents.OnDeletePressed() { DeleteRequested?.Invoke(this, EventArgs.Empty); }
private void FireDeleteRequested() { DeleteRequested?.Invoke(this, EventArgs.Empty); }
private void DeleteButton_Clicked(ReactiveButtonUI sender) { DeleteRequested?.Invoke(this); }
private void DeleteButton_Click(object sender, RoutedEventArgs args) { DeleteRequested?.Invoke(DataContext); }
protected virtual void OnDeleteRequested(RoutedEventArgs e) { DeleteRequested?.Invoke(this, e); }
private void DeleteCommandExecute(object param) { DeleteRequested?.Invoke(this, new EventArgs()); }
void IViewModel.OnDeleteButtonPressed() { DeleteRequested?.Invoke(this, EventArgs.Empty); }
public void Delete() { DeleteRequested?.Invoke(this); }