コード例 #1
0
 private void LoadCreate2ndLevelProfile()
 {
     _ucProfileSearch = null;
     if (IsMinSize)
     {
         this.Width  = MaxWidth;
         this.Height = MaxHeight;
         this.CenterToScreen();
         IsMinSize = false;
     }
     LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SECOND_LEVEL_PROFILES);
     _ucProfileSearch = null;
 }
コード例 #2
0
 /// <summary>
 /// Carga user control para la busqueda avanzada de perfil
 /// </summary>
 private void LoadSearchProfileDetailed()
 {
     if (!IsMinSize)
     {
         this.Width  = this.MinWidth;
         this.Height = this.MinHeight;
         //this.CenterForm();
         IsMinSize = true;
         frmPreloading frm2 = new frmPreloading(this);
         frm2.Show();
     }
     _ucProfileSearch = null;
     LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_SEARCH_PROFILE_DETAILED);
 }
コード例 #3
0
        /// <summary>
        /// Muestra los valores resultantes de la busqueda deacuerdo al texto de busqueda
        /// de perfil ingresado
        /// </summary>
        /// <param name="sender">Item Seleccionado</param>
        private void LoadProfileSearchResult(object sender)
        {
            string strToSearch = ((ToolStripTextBox)sender).Text;

            if (strToSearch.Length > 4)
            {
                sTextoActual = strToSearch;
                InitTimer();
            }
            else
            {
                _ucProfileSearch    = null;
                this.Width          = MinWidth;
                this.Height         = MinHeight;
                timerBusqueda.Tick -= new EventHandler(timerBusqueda_Tick);
                LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES);
                TxtContadorRegistros.Visible = true;
                TxtContadorRegistros.Text    = "";
            }
        }
コード例 #4
0
        private void toolStripTextDK_TextChanged(object sender, EventArgs e)
        {
            if (!IsMinSize)
            {
                this.Width  = this.MinWidth;
                this.Height = this.MinHeight;
                //this.CenterForm();
                IsMinSize = true;
            }

            if (toolStripTextDK.Text.Length >= 5)
            {
                sTipoBusqueda = "DK";
                LoadProfileSearchResult(sender);
            }
            else
            {
                LoaderProfiles.AddToPanel(LoaderProfiles.Zone.Modal_Profile, this, Resources.Profiles.Constants.UC_WELCOME_PROFILES);
                _ucProfileSearch = null;
            }
        }
コード例 #5
0
        private void frmProfiles_FormClosed(object sender, FormClosedEventArgs e)
        {
            IsTicket = false;

            _ucProfileSearch = null;
        }