public UpdateQuery(MapinfoSession session, string tableName)
        {
            Guard.AgainstNull(session, "session");

            this.mapinfo   = session;
            this.TableName = tableName;
        }
Exemple #2
0
 internal TableCollection(MapinfoSession MISession)
 {
     this.miSession    = MISession;
     this.tableinfo    = new TableInfoWrapper(MISession);
     this.mapbasic     = new MapbasicWrapper(MISession);
     this.tablefactory = new TableFactory(miSession);
 }
        internal Table(MapinfoSession MISession, string tableName)
        {
            Guard.AgainstNull(MISession, "MISession");
            Guard.AgainstNullOrEmpty(tableName, "tableName");

            this.mapinfo     = MISession;
            this.name        = tableName;
            this.tableinfo   = new TableInfoWrapper(MISession);
            this.TableManger = new TableChangeManger();
        }
Exemple #4
0
 internal Table(MapinfoSession MISession, string tableName)
     : base(MISession, tableName)
 {
 }
Exemple #5
0
 public MaterializerFactory(MapinfoSession MISession)
 {
     this.misession = MISession;
 }
 public VariableFactory(MapinfoSession mapinfoSession)
 {
     this.misession = mapinfoSession;
 }
 public DataReader(MapinfoSession MISession, string tableName)
 {
     this.MapinfoSession  = MISession;
     this.TableName       = tableName;
     this.geometryfactory = new GeometryFactory(MISession);
 }
 public MapinfoProvider(MapinfoSession MISession, MaterializerFactory factory)
 {
     this.misession     = MISession;
     this.entityfactory = factory;
     this.readerfactory = new DataReaderFactory(MISession);
 }
 public GeometryFactory(MapinfoSession MISession)
 {
     this.misession       = MISession;
     this.variablefactory = new VariableFactory(MISession);
 }
 /// <summary>
 /// Sets the control as the parent for any dialog boxs that are created in the specifed Mapinfo instance.
 /// If you need to re-parent a document window use <see cref="SetAsNextDocumentParent"/> instead.
 /// </summary>
 /// <param name="value">The control to which will be the parent.</param>
 public static void SetAsMapinfoApplicationWindow(this Control value, MapinfoSession MISession)
 {
     MISession.Do("Set Application Window {0}".FormatWith(value.Handle.ToString()));
 }
Exemple #11
0
 public ButtonPadCollection(MapinfoSession MISession)
 {
     this.misession = MISession;
     this.innerlist = new List <ButtonPad>();
 }
Exemple #12
0
 public ColumnFactory(MapinfoSession MISession, ITable table)
 {
     this.MapinfoSession = MISession;
     this.Table          = table;
     this.ColumnInfo     = new ColumnInfoWrapper(MISession, table.Name);
 }
Exemple #13
0
 public ColumnInfoWrapper(MapinfoSession MISession, string tableName)
 {
     this.MapinfoSession = MISession;
     this.TableName      = tableName;
 }
 public DataReaderFactory(MapinfoSession MISession)
 {
     this.MapinfoSession = MISession;
 }
Exemple #15
0
 internal Variable(string name, VariableType declareAs, MapinfoSession MISession)
 {
     this.Name      = name;
     this.type      = declareAs;
     this.misession = MISession;
 }
 public Mapper(MapinfoSession MISession)
 {
     miSession = MISession;
 }
Exemple #17
0
 public GeometryBuilder(string tableName, MapinfoSession MISession)
 {
     this.TableName      = tableName;
     this.MapinfoSession = MISession;
 }
 public Layer(MapinfoSession mapinfoInstance, int layerNumber, MapWindow mapwindow)
 {
     this.layernumber = layerNumber;
     this.wrapper     = mapinfoInstance;
     this.map         = mapwindow;
 }
 /// <summary>
 /// Sets the control as the parent for the next document window that is opened in Mapinfo.
 /// </summary>
 /// <param name="value">The control to which the next document will be the parent.</param>
 /// <param name="windowStyle">The style of window when opened.</param>
 public static void SetAsNextDocumentParent(this Control value, MapinfoSession MISession, NextDocumentEnum windowStyle)
 {
     MISession.Do("Set Next Document Parent {0} Style {1}".FormatWith(value.Handle.ToString(),
                                                                      (int)windowStyle));
 }
 public WindowCollection(MapinfoSession session)
 {
     this.mapinfo = session;
     this.windows = new List <Window>();
 }
 internal GeometryFactory(MapinfoSession MISession, IVariableFactory variableFactory)
 {
     this.misession       = MISession;
     this.variablefactory = variableFactory;
 }
Exemple #22
0
 /// <summary>
 /// Creates a new SystemInfo object used to retive information
 /// about the current instace of mapinfo.
 /// </summary>
 /// <param name="mapinfoWrapper">A wrapper object containing the running instace of mapinfo.</param>
 public SystemInfo(MapinfoSession MISession)
 {
     this.misession = MISession;
 }
 public EntityMaterializer(MapinfoSession miSession, string tableName, IDataReader dataReader)
 {
     this.MapifoSession = miSession;
     this.datareader    = dataReader;
     this.table_name    = tableName;
 }
Exemple #24
0
 public TableFactory(MapinfoSession MISession)
 {
     this.misession = MISession;
 }
 internal ObjectVariable(MapinfoSession MISession, IVariable variable)
 {
     this.innervariable = variable;
     this.misession     = MISession;
 }
 public LayoutWindow(int windowID, MapinfoSession mapinfo)
     : base(windowID, mapinfo)
 {
 }
 public Window(int windowID, MapinfoSession mapinfo)
 {
     this.ID      = windowID;
     this.mapinfo = mapinfo;
 }
 public void Given_a_new_table()
 {
     fakesession = new MapinfoSession(mockmapinfo.Object);
     table       = new Table(fakesession, TableName);
 }
 public SqlStringGenerator(MapinfoSession session)
 {
     this.mapinfo = session;
 }
        public TableInfoWrapper(MapinfoSession MISession)
        {
            Guard.AgainstNull(MISession, "MISession");

            miSession = MISession;
        }