示例#1
0
        private void SearchControl_Load(object sender, EventArgs e)
        {
            _dgvFileSearchResults.Rows.Clear();

            _cboFileName     = new MetroTextCombo();
            _cboFileContents = new MetroTextCombo();
            _cboSearchPaths  = new MetroTextCombo();
            Globals.SwapControl(_txtFileName_Dummy, _cboFileName);
            Globals.SwapControl(_txtFileContents_Dummy, _cboFileContents);
            Globals.SwapControl(_cboSearchPaths_Dummy, _cboSearchPaths);

            static_sha = SHA256.Create();
            foreach (Control c in _txtSearchResultsDetails.Controls)
            {
                int n = 0;
                n++;
                if (c is System.Windows.Forms.TextBox)
                {
                    (c as System.Windows.Forms.TextBox).WordWrap = false;
                }
            }

            MakeSettings();

            ResetPrefs();
            LoadPrefs();
        }
示例#2
0
        public static void LoadCombo(string PipeDelimitedValue, MetroTextCombo cbo)
        {
            string[] vals = PipeDelimitedValue.Split(new string[] { "*&*" }, StringSplitOptions.None);
            cbo.Items.Clear();

            foreach (string v in vals)
            {
                string v2 = v.Trim();
                cbo.Items.Add(v);
            }
        }
示例#3
0
        private string CboValue(MetroTextCombo c)
        {
            string ret   = "";
            string delim = "";

            foreach (string x in c.Items)
            {
                ret  += delim + x;
                delim = "*&*";
            }
            return(ret);
        }