コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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()));
 }