ResetText() 공개 메소드

public ResetText ( ) : void
리턴 void
예제 #1
0
        // Spawn Area combobox management

        void InitSpawnAreaComboBox()
        {
            comboBoxSpawnArea.Items.Clear();
            StringCollection strc = CaTypeArea.GetAreaNames();

            for (int i = CaTypeArea.VirtualAreaCount; i < strc.Count; i++)
            {
                comboBoxSpawnArea.Items.Add(strc[i]);
            }

            if (m_ugSelected != null)
            {
                int i = -1;
                if (m_ugSelected.SpawnArea != null)
                {
                    i = comboBoxSpawnArea.Items.IndexOf(m_ugSelected.SpawnArea);
                }
                if (i == -1)
                {
                    comboBoxSpawnArea.ResetText();
                }
                else
                {
                    comboBoxSpawnArea.SelectedIndex = i;
                }
            }
        }
예제 #2
0
 public void ResetParameters()
 {
     txtIdVariable.Text = string.Empty;
     mzComboProceso.ResetText();
     mzComboTarea.ResetText();
     _uiController.ResetTareas();
     cboContextoDeBusqueda.ResetText();
     chkHabilitarProceso.Checked = false;
     chkHabilitarTarea.Checked   = false;
     gridEx.SetDataBinding(null, null);
 }
예제 #3
0
 private void Limpiar()
 {
     groupBoxdatos.Visible = true;
     txt_DineroActual.Clear();
     txt_DineroCaja.Clear();
     txt_Movimiento.Clear();
     combo_Concepto.ResetText();
     Ultimo_Fondo();
     dateTime_Fecha.Enabled = false;
     combo_Concepto.Enabled = false;
     errorProvider1.Clear();
 }
예제 #4
0
		public void ResetTextTest ()
		{
			ComboBox cmbbox = new ComboBox ();
			Assert.AreEqual ("", cmbbox.Text, "#01");
			cmbbox.Text = "abc";
			Assert.AreEqual ("abc", cmbbox.Text, "#02");
			cmbbox.ResetText ();
			Assert.AreEqual ("", cmbbox.Text, "#03");
		}
예제 #5
0
 private void resetComboBox(ComboBox comboBox)
 {
     comboBox.ResetText();
     comboBox.Items.Clear();
 }