private void DeserializationCallback(object s, DeserializationCallbackEventArgs e) { if (e.Name != "EditorDocument") { return; } e.Content = new Editor(); }
public void DeserializationCallbackTest() { DockingService_Accessor target = new DockingService_Accessor(); // TODO: Initialize to an appropriate value object s = null; // TODO: Initialize to an appropriate value DeserializationCallbackEventArgs e = null; // TODO: Initialize to an appropriate value target.DeserializationCallback(s, e); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
private void DeserializationCallback(object _sender, DeserializationCallbackEventArgs _deserializationCallbackEventArgs) { var rootToolDescriptor = UiManager.GetRootToolDescriptor(_deserializationCallbackEventArgs.Name); if (rootToolDescriptor != null) { _deserializationCallbackEventArgs.Content = new AlphaRootTool(rootToolDescriptor); } else { EAlphaToolKind kind; if (Enum.TryParse(_deserializationCallbackEventArgs.Name, out kind)) { var descriptor = UiManager.GetDescriptor(kind); _deserializationCallbackEventArgs.Content = new AlphaTool(descriptor); } } }