Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            methodChecked = new MethodChecked(METHOD.GET);

            dataFields = new ObservableCollection<HTTPDataField>();
            dataFields.Add(new HTTPDataField("", ""));
        }
Пример #2
0
 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();
 }