public void SaveConfig(Config config) { CtlTask.SetConfig(config); Task.SetConfig(config); CtlTask.SaveConfig(); Task.SaveConfig(); config.FlushToDrive(); }
public void LoadConfig(Config config, INetworkTaskChanged taskChanged) { NetworkTask.Helper.FillComboBox(CtlTask, config, null); Task = NetworkTask.Helper.GetInstance(CtlTask.SelectedItem.ToString()); PointsRearrangeSnap = Task.GetPointsRearrangeSnap(); CtlHolder.Children.Clear(); CtlHolder.Children.Add(Task.GetVisualControl()); Task.SetConfig(config); Task.LoadConfig(); Task.SetChangeEvent(TaskParameterChanged); TaskChanged = taskChanged; TaskParameterChanged(); }