コード例 #1
0
ファイル: GraphView.cs プロジェクト: xuchuansheng/GenXSource
      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
ファイル: GraphController.cs プロジェクト: Altaxo/Altaxo
		public WinFormsGraphController(GraphView view)
		{
			_view = view;
			SetMemberVariablesToDefault();
		}