//used to edit private void deleteMethodBtn_Click(object sender, RoutedEventArgs e) { methodPop = new PopupInterface(Color.FromArgb(255, 153, 207, 126), etrMethodName, 8, -90, "METHOD"); methodGrid.Children.Add(methodPop); Grid.SetColumn(methodPop, 2); if (draggedItem != null) { methodPalette.ItemsSource = methodPop.DeletePopup(methodList, methodList[methodList.IndexOf(draggedItem)]); //remove from methodList } else { methodGrid.Children.Remove(methodPop); } }
//used to edit private void deleteVariableBtn_Click(object sender, RoutedEventArgs e) { varPop = new PopupInterface(Color.FromArgb(255, 255, 174, 201), etrVarName, 8, -90, "VARIABLE"); variableGrid.Children.Add(varPop); Grid.SetColumn(varPop, 2); if (draggedItem != null) { variablePalette.ItemsSource = varPop.DeletePopup(variableList, variableList[variableList.IndexOf(draggedItem)]); } else { variableGrid.Children.Remove(varPop); } }
private void deleteParamBtn_Click(object sender, RoutedEventArgs e) { pop = new PopupInterface(Color.FromArgb(255, 153, 207, 126), etrParaName, 8, 70, "PARAMETER"); LayoutRoot.Children.Add(pop); Grid.SetColumn(pop, 0); Grid.SetRow(pop, 1); //need to add catch for no value selected if (selected != null && parameterList.IndexOf(selected) < parameterList.Count) { parameterBox.ItemsSource = pop.DeletePopup(parameterList, parameterList[parameterList.IndexOf(selected)]); } else { LayoutRoot.Children.Remove(pop); } }
//used to edit private void deleteMethodBtn_Click(object sender, RoutedEventArgs e) { methodPop = new PopupInterface(Color.FromArgb(255, 153, 207, 126), etrMethodName, 8, -90, "METHOD"); methodGrid.Children.Add(methodPop); Grid.SetColumn(methodPop, 2); if (draggedItem != null) { methodPalette.ItemsSource = methodPop.DeletePopup(methodList, methodList[methodList.IndexOf(draggedItem)]); //remove from methodList } else methodGrid.Children.Remove(methodPop); }
//used to edit private void deleteVariableBtn_Click(object sender, RoutedEventArgs e) { varPop = new PopupInterface(Color.FromArgb(255, 255, 174, 201), etrVarName, 8, -90, "VARIABLE"); variableGrid.Children.Add(varPop); Grid.SetColumn(varPop, 2); if (draggedItem != null) variablePalette.ItemsSource = varPop.DeletePopup(variableList, variableList[variableList.IndexOf(draggedItem)]); else variableGrid.Children.Remove(varPop); }
private void deleteParamBtn_Click(object sender, RoutedEventArgs e) { pop = new PopupInterface(Color.FromArgb(255, 153, 207, 126), etrParaName, 8, 70, "PARAMETER"); LayoutRoot.Children.Add(pop); Grid.SetColumn(pop, 0); Grid.SetRow(pop, 1); //need to add catch for no value selected if (selected != null && parameterList.IndexOf(selected) < parameterList.Count) { parameterBox.ItemsSource = pop.DeletePopup(parameterList, parameterList[parameterList.IndexOf(selected)]); } else LayoutRoot.Children.Remove(pop); }