예제 #1
0
        public void QueryGetTemplateSetting(int ThemeID)
        {
            string           getThemeSettings = @"SELECT * FROM PortalSetting WHERE TableName = ""PortalTheme"" AND TableID = " + ThemeID;
            StarRezApiClient sourceClient     = new StarRezApiClient(textBoxRestAdd1.Text, textBoxUser1.Text, textBoxPass1.Text);
            var SourceSettings = sourceClient.Query(getThemeSettings);

            // String test = SourceSettings.ElementAt(2).Description.ToString();
            Console.WriteLine("test");
            int newThemeID = createTheme(ThemeID);

            addSettings(SourceSettings, newThemeID);
        }
예제 #2
0
        public void QuerySourceTemplates()
        {
            StarRezApiClient sourceClient = new StarRezApiClient(textBoxRestAdd1.Text, textBoxUser1.Text, textBoxPass1.Text);

            try
            {
                var SourceTemplates = sourceClient.Query("SELECT * FROM PortalTheme");



                String test = SourceTemplates.ElementAt(2).Description.ToString();

                globalclass.ThemeType = UpdateDropDown(SourceTemplates);
                Console.WriteLine("test");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Error");
            }
        }