Example #1
0
        private void OnSampleCodeReceived(int error, object result, string title)
        {
            if (error == (int)ErrorCodes.Success && result != null)
            {
                IDictionary <string, string> Item = (IDictionary <string, string>)result;

                SampleCode SampleCode = (SampleCode)_AllSampleCodes[title];
                SampleCode.UpdateContent(Item["feature"], Encoding.UTF8.GetString(Convert.FromBase64String(Item["text"])), Item["title_enu"], Item["title_fra"]);
            }
        }
Example #2
0
        public void On_SelectSample(PageNames pageName, IObjectBase senderContext, string sourceName, string sourceContent, out PageNames destinationPageName)
        {
            SampleCode Sample = (SampleCode)senderContext;

            destinationPageName = Sample.PageName;
        }