Here are the examples of the csharp api class CloudNotes.DesktopClient.FrmMain.IsMarkedAsDeletedNoteNode(System.Windows.Forms.TreeNode) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: CloudNotes
Source File: FrmMain.cs
Source File: FrmMain.cs
private void tvNotes_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { switch (e.Button) { case MouseButtons.Right: if (e.Node == this.notesNode) { this.ctxMnuNotesNode.Show(this.tvNotes, e.X, e.Y); } else if (e.Node == this.trashNode) { this.ctxMnuTrashNode.Show(this.tvNotes, e.X, e.Y); } else { this.cmnuRestore.Visible = IsMarkedAsDeletedNoteNode(e.Node); this.ctxMnuNoteNode.Show(this.tvNotes, e.X, e.Y); } break; } this.tvNotes.SelectedNode = e.Node; }
0
2. Example
Project: CloudNotes
Source File: FrmMain.cs
Source File: FrmMain.cs
private void tvNotes_AfterSelect(object sender, TreeViewEventArgs e) { if (e.Node != null && !ReferenceEquals(e.Node, this.notesNode) && !ReferenceEquals(e.Node, this.trashNode)) { this.mnuOpen.Enabled = true; this.tbtnOpen.Enabled = true; this.mnuDelete.Enabled = true; this.tbtnDelete.Enabled = true; this.mnuPermanentDelete.Enabled = true; this.mnuRename.Enabled = true; this.tbtnRename.Enabled = true; this.mnuRestore.Enabled = IsMarkedAsDeletedNoteNode(e.Node); this.tbtnRestore.Enabled = IsMarkedAsDeletedNoteNode(e.Node); } else { this.mnuOpen.Enabled = false; this.tbtnOpen.Enabled = false; this.mnuDelete.Enabled = false; this.tbtnDelete.Enabled = false; this.mnuPermanentDelete.Enabled = false; this.mnuRestore.Enabled = false; this.tbtnRestore.Enabled = false; this.mnuRename.Enabled = false; this.tbtnRename.Enabled = false; } }
0
3. Example
Project: CloudNotes
Source File: FrmMain.cs
Source File: FrmMain.cs
private async void Action_Delete(object sender, EventArgs e) { var treeNode = this.tvNotes.SelectedNode; if (treeNode != null) { if (IsMarkedAsDeletedNoteNode(treeNode)) { await this.DoDeleteAsync(); } else { await this.DoMarkDeleteAsync(); } } }