V8i and C# InitApp examples ?

Hi,

I get a very minimal c# initapp working well. 

But .. I don't know how to open Microstation MainForm or to avoid Microstation exiting at the end of mi initapp....

Where can i find examples  or  documentation?

BTW, is there C# Microstation developing tutorials or articles?

Thanks to everybody,

Marco

My simple initapps follows:

 

namespace UstnInitApp

{

  [Bentley.MicroStation.AddInAttribute( ApplicationType = MdlApplicationType.InitApp, 

                                        KeyinTree = "Commands.xml",

                                        MdlTaskID = "UstnInitApp")]

  public sealed class UstnInitApp : Bentley.MicroStation.AddIn

  {

    static UstnInitApp m_App = null;


    private UstnInitApp(System.IntPtr mdlDesc)

      : base(mdlDesc) {

      m_App = this;

    }

    protected override int Run(System.String[] commandLine) {

      MessageBox.Show("Hello from inside Microstation", "Debug", MessageBoxButtons.OK, MessageBoxIcon.Information);

      return 0;

    }

  }

}

Parents Reply Children
No Data