Beispiel #1
0
        void Temizle()
        {
            for (int ix = 0; ix < tabControl1.TabCount; ix++)
            {
                foreach (Control _control in tabControl1.TabPages[ix].Controls)
                {
                    if (_control is TextBox)
                    {
                        _control.Text = "";
                    }
                    if (_control is ComboBox)
                    {
                        ((ComboBox)_control).SelectedIndex = -1;
                        ((ComboBox)_control).Text = "";
                    }
                }
            }
            #region HastaID
            txtHastaID.Text = _n.HastaID();
            txtHastaIdDemo.Text = _n.HastaID();
            txtHastaIdOper.Text = _n.HastaID();
            txtHastaIdPatol.Text = _n.HastaID();
            txtHastaIdPosOP.Text = _n.HastaID();
            txtHastaIdTakipVer.Text = _n.HastaID();
            #endregion

            dtpOPTarihi.Text = DateTime.Now.ToShortDateString();
            edit = false;
        }