예제 #1
0
      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;
      }
예제 #2
0
 public void CreateView()
 {
   if(View==null)
   {
     View = new GraphView();
   }
 }
예제 #3
0
		public WinFormsGraphController(GraphView view)
		{
			_view = view;
			SetMemberVariablesToDefault();
		}