public void intoShow(vechType one)
 {
     m_status = Status.showStatus;
     this.Top = m_form.getSubTop();
     name_textBox.ReadOnly = true;
     vol_textBox.ReadOnly  = true;
     jour_textBox.ReadOnly = true;
     ok_button.Visible     = false;
     cal_button.Visible    = false;
     name_textBox.Text     = one.name;
     vol_textBox.Text      = one.volume.ToString();
     jour_textBox.Text     = one.journey.ToString();
     this.Visible          = true;
 }
예제 #2
0
        public void intoShow(vech one)
        {
            m_status             = Status.showStatus;
            this.Top             = m_form.getSubTop();
            num_textBox.ReadOnly = true;
            ok_button.Visible    = false;
            cal_button.Visible   = false;
            type_comBox.Items.Clear();
            type_comBox.Items.Add(one.typeName);
            type_comBox.SelectedIndex = 0;
            type_comBox.Enabled       = false;
            status_comBox.Enabled     = false;
            num_textBox.Text          = one.number;

            for (int i = 0; i < status_comBox.Items.Count; ++i)
            {
                if (status_comBox.Items[i].ToString() == one.status)
                {
                    status_comBox.SelectedIndex = i;
                    break;
                }
            }
            this.Visible = true;
        }