Exemplo n.º 1
0
        private void listView_CellClick(object sender, CellClickEventArgs e)
        {
            if (e.Column == null || e.Item == null)
            {
                return;
            }

            if (e.ClickCount == 2)
            {
                if (e.Model is CR2WEmbeddedWrapper embedded)
                {
                    RequestFileOpen?.Invoke(this, new RequestEmbeddedFileOpenArgs(embedded));
                }
            }
        }
Exemplo n.º 2
0
 private void modFileList_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     RequestFileOpen?.Invoke(this, new RequestFileArgs {
         File = e.Node.FullPath
     });
 }