public void OpenUserInterface() { IAgUiPluginWindowSite windows = _pluginSite as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters winParams = windows.CreateParameters(); winParams.AllowMultiple = false; winParams.AssemblyPath = this.GetType().Assembly.Location; winParams.UserControlFullName = typeof(SampleUiControl).FullName; winParams.Caption = "My First User Interface"; winParams.DockStyle = AgEDockStyle.eDockStyleDockedBottom; winParams.Height = 200; object obj = windows.CreateNetToolWindowParam(this, winParams); } }
public void OpenUserInterface() { IAgUiPluginWindowSite windows = site as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters winParams = windows.CreateParameters(); winParams.AllowMultiple = false; winParams.AssemblyPath = this.GetType().Assembly.Location; winParams.UserControlFullName = typeof(CustomUserInterface).FullName; winParams.Caption = "Astrodynamics UI Plugin"; winParams.DockStyle = AgEDockStyle.eDockStyleDockedRight; winParams.Height = 400; winParams.Width = 550; object obj = windows.CreateNetToolWindowParam(this, winParams); } }
private void OpenUserInterface() { //Open a User Interface IAgUiPluginWindowSite windows = m_pSite as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters @params = windows.CreateParameters(); @params.AllowMultiple = false; @params.AssemblyPath = this.GetType().Assembly.Location; @params.UserControlFullName = typeof(CustomUserInterface).FullName; @params.Caption = m_pluginTitle; @params.DockStyle = AgEDockStyle.eDockStyleDockedLeft; @params.Height = 200; object obj = windows.CreateNetToolWindowParam(this, @params); } }
private void OpenUserInterface() { // Open a User Interface IAgUiPluginWindowSite windows = m_pSite as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters parameters = windows.CreateParameters(); parameters.AllowMultiple = false; parameters.AssemblyPath = this.GetType().Assembly.Location; parameters.UserControlFullName = typeof(CustomUserInterface).FullName; parameters.Caption = m_pluginTitle; parameters.DockStyle = AgEDockStyle.eDockStyleFloating; parameters.Width = 375; parameters.Height = 350; IAgUiWindow window = windows.CreateNetToolWindowParam(this, parameters); } }
private void OpenLoginUI() { IAgUiPluginWindowSite windows = m_psite as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters winParams = windows.CreateParameters(); winParams.AllowMultiple = false; winParams.AssemblyPath = this.GetType().Assembly.Location; winParams.UserControlFullName = typeof(LoginUserControl).FullName; winParams.Caption = "Valispace Integration Plugin"; winParams.DockStyle = AgEDockStyle.eDockStyleFloating; winParams.Height = 360; winParams.Width = 360; object obj = windows.CreateNetToolWindowParam(this, winParams); } }
public void OpenUserInterface() { IAgUiPluginWindowSite windows = m_psite as IAgUiPluginWindowSite; if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters winParams = windows.CreateParameters(); winParams.AllowMultiple = false; winParams.AssemblyPath = this.GetType().Assembly.Location; winParams.UserControlFullName = typeof(ImporterGUI).FullName; winParams.Caption = "Horizons Ephemeris Importer"; winParams.DockStyle = AgEDockStyle.eDockStyleIntegrated; winParams.Width = 335; winParams.Height = 390; winParams.X = 0; winParams.Y = 0; object obj = windows.CreateNetToolWindowParam(this, winParams); } }
public void OpenUserInterface() { IAgUiPluginWindowSite windows = m_psite as IAgUiPluginWindowSite; // 1536x864 //1920x1080 Console.WriteLine(System.Windows.SystemParameters.PrimaryScreenWidth.ToString() + "," + System.Windows.SystemParameters.PrimaryScreenHeight.ToString()); if (windows == null) { MessageBox.Show("Host application is unable to open windows."); } else { IAgUiPluginWindowCreateParameters winParams = windows.CreateParameters(); winParams.AllowMultiple = false; winParams.AssemblyPath = this.GetType().Assembly.Location; winParams.UserControlFullName = typeof(CustomUserControl).FullName; winParams.Caption = "Valispace Integration Plugin"; winParams.DockStyle = AgEDockStyle.eDockStyleFloating; winParams.Height = 672; winParams.Width = 1113; object obj = windows.CreateNetToolWindowParam(this, winParams); } }