public object GetRealObject(object parent) { // We create the view firstly without controller to have the creation finished // before the controler is set // otherwise we will have callbacks to not initialized variables GraphView frm = new GraphView(); frm.Location = m_Location; frm.Size = m_Size; ((IGraphController)m_Controller).View = frm; if(m_Controller is System.Runtime.Serialization.IDeserializationCallback) { DeserializationFinisher finisher = new DeserializationFinisher(frm); ((System.Runtime.Serialization.IDeserializationCallback)m_Controller).OnDeserialization(finisher); } return frm; }
public void CreateView() { if(View==null) { View = new GraphView(); } }
public WinFormsGraphController(GraphView view) { _view = view; SetMemberVariablesToDefault(); }