Add() public method

public Add ( string key, string value ) : void
key string
value string
return void
 /// <summary>
 /// Initializes a new instance of the <see cref="T:VsAddCodeFileStringConverter"/> class 
 /// and load the properties for the <see cref="OverwriteItemConverter"/> converter.
 /// </summary>
 /// <remarks>This constructor is likely to be used from code rather than from a recipe.</remarks>
 /// <param name="projectArgument">The project argument.</param>
 /// <param name="itemPostfix">The item postfix.</param>
 public VsAddValidFileStringConverter(string projectArgument, string itemPostfix)
 {
     StringDictionary attributes = new StringDictionary();
     attributes.Add(OverwriteItemConverter.ProjectArgument, projectArgument);
     attributes.Add(OverwriteItemConverter.ItemPostfixArgument, itemPostfix);
     base.Configure(attributes);
 }
        public override void ItemAdded(SPItemEventProperties properties)
        {
            base.ItemAdded(properties);
            SPWeb web = properties.OpenWeb();
            string _listName = "Resource_Allocation";
            if (properties.ListTitle == "Resource_Allocation")
            {
                try
                {
                    if (SPUtility.IsEmailServerSet(web))
                    {
                        string body = GetParameter("UserContent", properties);
                        StringDictionary headers = new StringDictionary();
                        headers.Add("To", GetSPUserEmailID(_listName, properties, "Owner"));
                        headers.Add("Subject", GetParameter("UserSubject", properties));
                        headers.Add("Content-Type", "text/html; charset=\"UTF-8\"");
                        SPUtility.SendEmail(web, headers, body);

                    }

                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
示例#3
0
        public Args(string[] args)
        {
            argDict = new StringDictionary();
            Regex regEx = new Regex(@"^-", RegexOptions.IgnoreCase | RegexOptions.Compiled);
            Regex regTrim = new Regex(@"^['""]?(.*?)['""]?$", RegexOptions.IgnoreCase | RegexOptions.Compiled);

            string arg = "";
            string[] chunks;

            foreach (string s in args)
            {
                chunks = regEx.Split(s, 3);

                if (regEx.IsMatch(s))
                {
                    arg = chunks[1];
                    argDict.Add(arg, "true");
                }
                else
                {
                if (argDict.ContainsKey(arg))
                {
                    chunks[0] = regTrim.Replace(chunks[0], "$1");
                    argDict.Remove(arg);
                    argDict.Add(arg, chunks[0]);
                    arg = "";
                }
                }
              }
        }
示例#4
0
        void StartWorkflowButton1_Executed(object sender, EventArgs e)
        {
            List<string> mailList = new List<string>();
            List<SPUser> users = WorkFlowUtil.GetSPUsersInGroup("wf_EquApp");
            List<SPUser> usersReception = WorkFlowUtil.GetSPUsersInGroup("wf_Reception");
            foreach (SPUser user in users)
            {
                mailList.Add(user.Email);
            }
            foreach (SPUser user in usersReception)
            {
                string sMai=user.Email;
                if (!mailList.Contains(sMai))
                {
                    mailList.Add(sMai);
                }
            }
            string EmployeeName=((TextBox)DataForm1.FindControl("txtEmployeeName")).Text;
            StringDictionary dict = new StringDictionary();
            dict.Add("to", string.Join(";", mailList.ToArray()));
            dict.Add("subject",EmployeeName+"'s new employee equipment request" );

            string mcontent = EmployeeName + "'s new employee equipment request has been submitted. Workflow number is "
                + SPContext.Current.ListItem["WorkflowNumber"] + ".<br/><br/>" + @" Please view the detail by clicking <a href='"
                + SPContext.Current.Web.Url
                + "/_layouts/CA/WorkFlows/Equipment2/DisplayForm.aspx?List="
                + SPContext.Current.ListId.ToString()
                + "&ID="
                + SPContext.Current.ListItem.ID
                + "'>here</a>.";

            SPUtility.SendEmail(SPContext.Current.Web, dict, mcontent);
        }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.resellers.getSubaccounts
    /// </summary>
    public Data.SubaccountList GetSubaccounts(int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Resellers.GetSubAccounts, Data.SubaccountList>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.encoding.encode
    /// </summary>
    public Data.VideoFileEncoding Encode(string videoId, int profileId)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("video_id", videoId);
      parameters.Add("profile_id", profileId.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Encoding.Encode, Data.VideoFileEncoding>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.encoding.setOptions
    /// </summary>
    public Data.EncodingOptions SetOptions(int profileId, bool? profileEnabled, int? profileBitrate)
    {
      StringDictionary parameters = new StringDictionary();
      if (profileEnabled.HasValue) parameters.Add(string.Concat("profile_", profileId, "_enabled"), profileEnabled.Value ? "1" : "0");
      if (profileBitrate.HasValue) parameters.Add(string.Concat("profile_", profileId, "_bitrate"), profileBitrate.Value.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Encoding.SetOptions, Data.EncodingOptions>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.encoding.setOptions
    /// </summary>
    public Data.EncodingOptions SetOptions(bool? respectSourceDimensions, bool? preserveSourceFlvFiles)
    {
      StringDictionary parameters = new StringDictionary();
      if (respectSourceDimensions.HasValue) parameters.Add("respect_source_dimensions", respectSourceDimensions.Value ? "1" : "0");
      if (preserveSourceFlvFiles.HasValue) parameters.Add("preserve_source_flv_files", preserveSourceFlvFiles.Value ? "1" : "0");

      return this.Service.ExecuteHttpRequest<Encoding.SetOptions, Data.EncodingOptions>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.moderation.setCommentStatus
    /// </summary>
    public Data.Comment SetCommentStatus(string commentId, Data.CommentsModerationStatus status)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("comment_id", commentId);
      parameters.Add("status", ViddlerHelper.GetEnumName(status.GetType().GetField(status.ToString())));

      return this.Service.ExecuteHttpRequest<Moderation.SetCommentStatus, Data.Comment>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.playlists.list
    /// </summary>
    public Data.PlaylistList List(int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Playlists.List, Data.PlaylistList>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.videos.comments.add
    /// </summary>
    public Data.Video Add(string videoId, string text, int? timepoint)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("video_id", videoId);
      parameters.Add("text", text);
      if (timepoint.HasValue) parameters.Add("timepoint", timepoint.Value.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Videos.Comments.Add, Data.Video>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.playlists.getDetails
    /// </summary>
    public Data.PlaylistVideoList GetDetails(string playlistId, int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));
      parameters.Add("playlist_id", playlistId);

      return this.Service.ExecuteHttpRequest<Playlists.GetDetails, Data.PlaylistVideoList>(parameters);
    }
        public Arguments(string[] args)
        {
            _params = new StringDictionary();
            Regex spliter = new Regex(@"^-{1,2}|^/|=|:", RegexOptions.IgnoreCase | RegexOptions.Compiled);
            Regex remover = new Regex(@"^['""]?(.*?)['""]?$", RegexOptions.IgnoreCase | RegexOptions.Compiled);

            string parm = null;
            string[] parts;

            foreach (var a in args)
            {
                parts = spliter.Split(a, 3);
                switch (parts.Length)
                {
                    case 1:
                        if (parm != null)
                        {
                            if (!_params.ContainsKey(parm))
                            {
                                parts[0] = remover.Replace(parts[0], "$1");
                                _params.Add(parm, parts[0]);
                            }
                            parm = null;
                        }
                        break;
                    case 2:
                        if (parm != null)
                        {
                            if (!_params.ContainsKey(parm))
                                _params.Add(parm, "true");
                        }
                        parm = parts[1];
                        break;
                    case 3:
                        if (parm != null)
                        {
                            if (!_params.ContainsKey(parm))
                                _params.Add(parm, "true");
                        }
                        parm = parts[1];
                        if (!_params.ContainsKey(parm))
                        {
                            parts[2] = remover.Replace(parts[2], "$1");
                            _params.Add(parm, parts[2]);
                        }

                        parm = null;
                        break;
                }
            }

            if (parm != null)
            {
                if (!_params.ContainsKey(parm))
                    _params.Add(parm, "true");
            }
        }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.groups.getByTag
    /// </summary>
    public Data.GroupList GetByTag(string tag, int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));
      parameters.Add("tag", tag);

      return this.Service.ExecuteHttpRequest<Groups.GetByTag, Data.GroupList>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.moderation.getComments
    /// </summary>
    public Data.CommentsModerationList GetComments(int? page, int? perPage, Data.CommentListSortType? sort)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));
      if (sort.HasValue) parameters.Add("sort", ViddlerHelper.GetEnumName(sort.Value.GetType().GetField(sort.Value.ToString())));

      return this.Service.ExecuteHttpRequest<Moderation.GetComments, Data.CommentsModerationList>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.users.search
    /// </summary>
    public Data.UserList Search(string query, Data.UserListType? type, int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("query", query ?? string.Empty);
      if (type.HasValue) parameters.Add("type", ViddlerHelper.GetEnumName(type.Value.GetType().GetField(type.Value.ToString())));
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));

      return this.Service.ExecuteHttpRequest<Users.Search, Data.UserList>(parameters);
    }
示例#17
0
         public static StringDictionary GetABCRank()
         {
             StringDictionary result = new StringDictionary();
             result.Add("A", "1");
             result.Add("B", "2");
             result.Add("C", "3");
             result.Add("D", "4");

             return result;
         }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.videos.addClosedCaptioning
    /// </summary>
    public Data.Video AddClosedCaptioning(string videoId, string language, string closedCaptioningUrl, bool? isDefault)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("video_id", videoId);
      parameters.Add("language", language);
      parameters.Add("closed_captioning_url", closedCaptioningUrl);
      if (isDefault.HasValue) parameters.Add("default", isDefault.Value ? "1" : "0");

      return this.Service.ExecuteHttpRequest<Videos.AddClosedCaptioning, Data.Video>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.videos.setClosedCaptioning
    /// </summary>
    public Data.Video SetClosedCaptioning(string closedCaptioningId, string language, bool? enabled, bool? isDefault)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("closed_captioning_id", closedCaptioningId);
      if (!string.IsNullOrEmpty(language)) parameters.Add("language", language);
      if (isDefault.HasValue) parameters.Add("default", isDefault.Value ? "1" : "0");
      if (enabled.HasValue) parameters.Add("enabled", enabled.Value ? "1" : "0");

      return this.Service.ExecuteHttpRequest<Videos.SetClosedCaptioning, Data.Video>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.playlists.getByUser
    /// </summary>
    public Data.PlaylistList GetByUser(string userName, int? page, int? perPage)
    {
      StringDictionary parameters = new StringDictionary();
      if (page.HasValue) parameters.Add("page", page.Value.ToString(CultureInfo.InvariantCulture));
      if (perPage.HasValue) parameters.Add("per_page", perPage.Value.ToString(CultureInfo.InvariantCulture));
      if (this.Service.IsAuthenticated) parameters.Add("sessionid", this.Service.SessionId);
      if (!string.IsNullOrEmpty(userName)) parameters.Add("user", userName);

      return this.Service.ExecuteHttpRequest<Playlists.GetByUser, Data.PlaylistList>(parameters);
    }
示例#21
0
        // Constructor
        public Arguments(string[] Args)
        {
            Parameters=new StringDictionary();
            Regex Spliter=new Regex(@"^-{1,2}|^/|=|:",RegexOptions.IgnoreCase|RegexOptions.Compiled);
            Regex Remover= new Regex(@"^['""]?(.*?)['""]?$",RegexOptions.IgnoreCase|RegexOptions.Compiled);
            string Parameter=null;
            string[] Parts;

            // Valid parameters forms:
            // {-,/,--}param{ ,=,:}((",')value(",'))
            // Examples: -param1 value1 --param2 /param3:"Test-:-work" /param4=happy -param5 '--=nice=--'
            foreach(string Txt in Args){
                // Look for new parameters (-,/ or --) and a possible enclosed value (=,:)
                Parts=Spliter.Split(Txt,3);
                switch(Parts.Length){
                    // Found a value (for the last parameter found (space separator))
                    case 1:
                        if(Parameter!=null){
                            if(!Parameters.ContainsKey(Parameter)){
                                Parts[0]=Remover.Replace(Parts[0],"$1");
                                Parameters.Add(Parameter,Parts[0]);
                                }
                            Parameter=null;
                            }
                        // else Error: no parameter waiting for a value (skipped)
                        break;
                    // Found just a parameter
                    case 2:
                        // The last parameter is still waiting. With no value, set it to true.
                        if(Parameter!=null){
                            if(!Parameters.ContainsKey(Parameter)) Parameters.Add(Parameter,"true");
                            }
                        Parameter=Parts[1];
                        break;
                    // Parameter with enclosed value
                    case 3:
                        // The last parameter is still waiting. With no value, set it to true.
                        if(Parameter!=null){
                            if(!Parameters.ContainsKey(Parameter)) Parameters.Add(Parameter,"true");
                            }
                        Parameter=Parts[1];
                        // Remove possible enclosing characters (",')
                        if(!Parameters.ContainsKey(Parameter)){
                            Parts[2]=Remover.Replace(Parts[2],"$1");
                            Parameters.Add(Parameter,Parts[2]);
                            }
                        Parameter=null;
                        break;
                    }
                }
            // In case a parameter is still waiting
            if(Parameter!=null){
                if(!Parameters.ContainsKey(Parameter)) Parameters.Add(Parameter,"true");
                }
        }
        /// <summary>
        /// Called when <see cref="IAttributesConfigurable.Configure"/> method is called.
        /// </summary>
        /// <param name="attributes">The attributes.</param>
        /// <remarks>
        /// Override this method if you inherit from this class and want to add some converters to
        /// the attributes collection.
        /// </remarks>
        public override void OnConfigure(StringDictionary attributes)
        {
            string prefix = AgregatorStringConverter.AddConverterPrefixAttribute;

            attributes.Add(prefix + "ValidLanguageIndependentIdentifierConverter",
                ReflectionHelper.GetSimpleTypeName(typeof(ValidLanguageIndependentIdentifierConverter)));
            attributes.Add(prefix + "ValidFileNameConverter",
                ReflectionHelper.GetSimpleTypeName(typeof(ValidFileNameConverter)));

            base.OnConfigure(attributes);
        }
示例#23
0
        public static StringDictionary GetNumOperator()
        {
            StringDictionary result = new StringDictionary();
            result.Add("Equal", " = _val");
            result.Add("GreatherThan", " > _val");
            result.Add("LowerThan", " < _val");
            result.Add("GreatOrEq", " >= _val");
            result.Add("LowerOrEq", " <= _val");
            //result.Add("None", "");

            return result;
        }
示例#24
0
    public static StringDictionary GetAggregation()
   {
       StringDictionary result = new StringDictionary();
       result.Add("Sum", " Sum(_val) ");
       result.Add("Average", " Avg(_val) ");
       result.Add("Min", " Min(_val) ");
       result.Add("Max", " Max(_val) ");
       result.Add("Count", " Count(_val) ");
       //result.Add("None", "");
 
       return result;
   }
示例#25
0
        public void OnRename(Series series, CustomScriptSettings settings)
        {
            var environmentVariables = new StringDictionary();

            environmentVariables.Add("Sonarr_EventType", "Rename");
            environmentVariables.Add("Sonarr_Series_Id", series.Id.ToString());
            environmentVariables.Add("Sonarr_Series_Title", series.Title);
            environmentVariables.Add("Sonarr_Series_Path", series.Path);
            environmentVariables.Add("Sonarr_Series_TvdbId", series.TvdbId.ToString());

            ExecuteScript(environmentVariables, settings);
        }
示例#26
0
        /// <summary>
        /// Liest alle im Album-Verzeichnis enthaltenen Dateien, die dem Suchmuster entsprechen,
        /// ein und liest Dateiname aus.
        /// </summary>
        /// <param name="search">Suchpattern für die Dateinamen.</param>
        private void ReadAlbum(String search)
        {
            FileInfo[] allFiles = base.m_objectdirectory.GetFiles(search);

            for (int i = 0; i < allFiles.Length; i++)
            {
                var sd = new StringDictionary();

                sd.Add("M4VFileName", allFiles[i].Name);
                sd.Add("title", allFiles[i].Name);
                base.m_elementarray.Add(sd);
            }
        }
示例#27
0
        public static void LearnStringDictionary()
        {
            Console.WriteLine("From LearnStringDictionary Method");
            System.Collections.Specialized.StringDictionary strDict = new System.Collections.Specialized.StringDictionary();
            strDict.Add("Title Case", "Atul");
            strDict.Add("Lower Case", "atul");
            strDict.Add(string.Empty, "ATUL");

            foreach (System.Collections.DictionaryEntry item in strDict)
            {
                Console.WriteLine("   {0,-25} {1}", item.Key, item.Value);
            }
        }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.users.auth
    /// </summary>
    public Data.UserSession Auth(string userName, string password)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("user", userName);
      parameters.Add("password", password);

      Data.UserSession session = this.Service.ExecuteHttpRequest<Users.Auth, Data.UserSession>(parameters);
      if (session != null)
      {
        this.Service.SessionId = session.SessionId;
      }

      return session;
    }
        public static void Main()
        {
            // Creates and initializes a new StringDictionary.
            StringDictionary myCol = new StringDictionary();
            myCol.Add("red", "rojo");
            myCol.Add("green", "verde");
            myCol.Add("blue", "azul");
            Console.WriteLine("Count:    {0}", myCol.Count);

            // Display the contents of the collection using foreach. This is the preferred method.
            Console.WriteLine("Displays the elements using foreach:");
            PrintKeysAndValues1(myCol);

            // Display the contents of the collection using the enumerator.
            Console.WriteLine("Displays the elements using the IEnumerator:");
            PrintKeysAndValues2(myCol);

            // Display the contents of the collection using the Keys, Values, Count, and Item properties.
            Console.WriteLine("Displays the elements using the Keys, Values, Count, and Item properties:");
            PrintKeysAndValues3(myCol);

            // Copies the StringDictionary to an array with DictionaryEntry elements.
            DictionaryEntry[] myArr = new DictionaryEntry[myCol.Count];
            myCol.CopyTo(myArr, 0);

            // Displays the values in the array.
            Console.WriteLine("Displays the elements in the array:");
            Console.WriteLine("   KEY        VALUE");
            for (int i = 0; i < myArr.Length; i++)
                Console.WriteLine("   {0,-10} {1}", myArr[i].Key, myArr[i].Value);
            Console.WriteLine();

            // Searches for a value.
            if (myCol.ContainsValue("amarillo"))
                Console.WriteLine("The collection contains the value \"amarillo\".");
            else
                Console.WriteLine("The collection does not contain the value \"amarillo\".");
            Console.WriteLine();

            // Searches for a key and deletes it.
            if (myCol.ContainsKey("green"))
                myCol.Remove("green");
            Console.WriteLine("The collection contains the following elements after removing \"green\":");
            PrintKeysAndValues1(myCol);

            // Clears the entire collection.
            myCol.Clear();
            Console.WriteLine("The collection contains the following elements after it is cleared:");
            PrintKeysAndValues1(myCol);
        }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.encoding.setSettings
    /// </summary>
    public Data.EncodingSettings SetSettings(bool useSourceForPlayback)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("use_source_for_playback", useSourceForPlayback ? "1" : "0");

      return this.Service.ExecuteHttpRequest<Encoding.SetSettings, Data.EncodingSettings>(parameters);
    }
    /// <summary>
    /// Calls the remote Viddler API method: viddler.users.getProfile
    /// </summary>
    public Data.User GetProfile(string userName)
    {
      StringDictionary parameters = new StringDictionary();
      parameters.Add("user", userName);

      return this.Service.ExecuteHttpRequest<Users.GetProfile, Data.User>(parameters);
    }
示例#32
0
        static void Main(string[] args)
        {
            System.Collections.Specialized.StringDictionary stringDictionary = new System.Collections.Specialized.StringDictionary();
            stringDictionary.Add("Test1", "Test@123");
            stringDictionary.Add("Admin", "Admin@123");
            stringDictionary.Add("Temp", "Temp@123");
            stringDictionary.Add("Demo", "Demo@123");
            stringDictionary.Add("Test2", "Test2@123");
            stringDictionary.Remove("Admin");
            if (stringDictionary.ContainsKey("Admin"))
            {
                Console.WriteLine("UserName already Esists");
            }
            else
            {
                stringDictionary.Add("Admin", "Admin@123");
                Console.WriteLine("User added succesfully.");
            }

            // Get a collection of the keys.
            Console.WriteLine("UserName" + ": " + "Password");
            foreach (DictionaryEntry entry in stringDictionary)
            {
                Console.WriteLine(entry.Key + ": " + entry.Value);
            }
            Console.ReadKey();
        }
示例#33
0
 public override string PutIdentifierIntoBrackets(string identifier)
 {
     if (identifier.IndexOf(".") >= 0 || identifier.Length > 32)
     {
         if (identDict.ContainsKey(identifier))
         {
             return(identDict[identifier]);
         }
         else
         {
             string ni = "gi" + Guid.NewGuid().ToString("N").Substring(4) + "";
             identDict.Add(identifier, ni);
             return(ni);
         }
     }
     else
     {
         return(TranslitRu(identifier));
     }
 }
示例#34
0
 private void addDisplayServer(string displayText, string serverAddress)
 {
     m_dctDisplayServers.Add(displayText, serverAddress);
     cmbLoginAddress.Items.Add(displayText);
 }