Exemplo n.º 1
0
        public void m_mthShowWarning(System.Windows.Forms.ComboBox txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 2
0
        public void m_mthShowWarning(SourceLibrary.Windows.Forms.TextBoxTypedNumeric txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 3
0
        public void m_mthShowWarning(com.digitalwave.controls.ctlTextBoxFind txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 4
0
        public void m_mthShowWarning(com.digitalwave.iCare.gui.HIS.exComboBox txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 5
0
        public void m_mthShowWarning(exDataGridSour.exComboBox txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 6
0
        public void m_mthShowWarning(com.digitalwave.controls.datagrid.ctlDataGrid txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.X += (txtBox.Width / 2);
            p.Y += (txtBox.Height / 2);
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 7
0
        public void m_mthShowWarning(System.Windows.Forms.ListView txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.X += (txtBox.Width / 2);
            p.Y += (txtBox.Height / 2);
            ShowWarning.Location = p;
            ShowWarning.Show();
        }
Exemplo n.º 8
0
        public void m_mthShowWarning(TextBox txtBox, string strWaring)
        {
            frmShowWarning ShowWarning = new frmShowWarning();

            ShowWarning.TopMost     = false;
            ShowWarning.m_GetWaring = strWaring;
            Point p = txtBox.Parent.PointToScreen(txtBox.Location);

            p.Offset(-50, -(ShowWarning.Height - txtBox.Height / 2));
            ShowWarning.Location = p;
            //ShowWarning.Show();
            m_mthShowForm(ShowWarning);
        }
Exemplo n.º 9
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     btnUpdate.Enabled = false;
     if (m_lblName.Tag != null)
     {
         long lngRes = objSvc.m_lngGetApplyOPInfoUpdateDate(m_lblName.Tag.ToString(), dtAlterDate.Value.ToString("yyyy-MM-dd HH:mm"));
         if (lngRes > 0)
         {
             btnFind_Click(null, e);
         }
         frmShowWarning obj = new  frmShowWarning();
         obj.Location    = this.PointToScreen(btnUpdate.Location);
         obj.m_GetWaring = "更新成功";
         obj.Show();
     }
     btnUpdate.Enabled = true;
 }