/// <summary> /// /// </summary> /// <returns></returns> public Form NewMainWindow() { XWindow form = new XWindow(); ImageHolder holder = new ImageHolder (); //noticed that we only have one size of image, so we are sticking it in both the small and the large lists form.AddLargeImageList(holder.miscImages, new string[]{"chat", "wheelchair", "food", "basinet", "submit"}); form.AddLargeImageList(holder.airportImages, new string[]{"defaultLocation","USA", "Italy"}); form.AddSmallImageList(holder.miscImages, new string[]{"chat", "wheelchair", "food", "basinet", "submit"}); form.AddSmallImageList(holder.airportImages, new string[]{"defaultLocation","USA", "Italy"}); form.LoadUI(ConfigurationPath);//Argument("x")); form.Show(); return form; }
protected void ReopenWindow() { m_window.Close(); m_window.Dispose(); m_window = new XWindow(); m_window.PropertyTable.UserSettingDirectory = m_settingsPath; //m_window.PropertyTable.SetProperty("PreferredUILibrary", "FlexUIAdapter.dll"); m_window.LoadUI(ConfigurationFilePath); m_window.SuspendWindowSizePersistence(); m_window.Show(); m_window.ResumeWindowSizePersistence(); }