public MainWindow() { InitializeComponent(); methodChecked = new MethodChecked(METHOD.GET); dataFields = new ObservableCollection<HTTPDataField>(); dataFields.Add(new HTTPDataField("", "")); }
public AddWindow(MethodChecked methodChecked, ObservableCollection<HTTPDataField> dataFields) { this.dataFields = dataFields; this.methodChecked = methodChecked; oldDataFields = new ObservableCollection<HTTPDataField>(); foreach (HTTPDataField field in dataFields) { oldDataFields.Add(new HTTPDataField(field.Name,field.Value)); } oldMethodChecked = new MethodChecked(methodChecked.Value); InitializeComponent(); }