private void ContextMenuOnCreateNewNodeClicked(object sender, CreateNewNodeClickedEventArgs e) { if (CreateNewNodeClicked != null) { CreateNewNodeClicked(sender, e); } }
private void ContextMenuContainerOnCreateNewNodeClicked(object sender, CreateNewNodeClickedEventArgs e) { Focus(); switch (e.NodeType) { case "Map": IoC.GetInstance<ISuperGraphNodeFactory>().AddMap(e.Location); break; case "Pro": IoC.GetInstance<ISuperGraphNodeFactory>().AddPro(e.Location); break; case "Question": IoC.GetInstance<ISuperGraphNodeFactory>().AddQuestion(e.Location); break; case "Con": IoC.GetInstance<ISuperGraphNodeFactory>().AddCon(e.Location); break; case "Note": IoC.GetInstance<ISuperGraphNodeFactory>().AddNote(e.Location); break; case "Decision": IoC.GetInstance<ISuperGraphNodeFactory>().AddDecision(e.Location); break; case "Idea": IoC.GetInstance<ISuperGraphNodeFactory>().AddIdea(e.Location); break; } }