Beispiel #1
0
        //Handles txtInteger.Enter
        private void txtInteger_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txt = new TextBox();

            txt = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txt, ref txtInteger);

            modUtilities.MyGotFocusNumeric(ref txtInteger[Index]);
        }
//UPGRADE_WARNING: Event txtFields.TextChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
        private void txtFields_TextChanged(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txtBox = new TextBox();

            txtBox = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txtBox, ref txtFields);

            CheckFields();
        }
        private void txtFields_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     Index  = 0;
            TextBox txtBox = new TextBox();

            txtBox = (TextBox)eventSender;
            Index  = GetIndex.GetIndexer(ref txtBox, ref txtFields);
            modUtilities.MyGotFocus(ref txtFields[Index]);
        }
Beispiel #4
0
        //Handles txtInteger.Leave
        private void txtInteger_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txt = new TextBox();

            txt = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txt, ref txtInteger);

            modUtilities.MyLostFocus(ref txtInteger[Index], ref 0);
        }
Beispiel #5
0
        private void txtFloatNegative_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txtbox = new TextBox();

            txtbox = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txtbox, ref txtFloatNegative);

            modUtilities.MyGotFocusNumeric(ref txtFloatNegative[Index]);
        }
        private void txtFloat_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     Index = 0;
            TextBox txtBx = new TextBox();

            txtBx = (TextBox)eventSender;
            Index = GetIndex.GetIndexer(ref txtBx, ref txtFloat);
            modUtilities.MyGotFocusNumeric(ref txtFloat[Index]);
        }
        private void txtFloat_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     Index  = 0;
            TextBox txtbox = new TextBox();

            txtbox = (TextBox)eventSender;
            Index  = GetIndex.GetIndexer(ref txtbox, ref txtFloat);
            modUtilities.MyLostFocus(ref txtFloat[Index], ref 2);
        }
Beispiel #8
0
 //Handles optPrint.CheckedChanged
 private void optPrint_CheckedChanged(System.Object eventSender, System.EventArgs eventArgs)
 {
     if (eventSender.Checked)
     {
         RadioButton rb = new RadioButton();
         rb = (RadioButton)eventSender;
         int Index = GetIndex.GetIndexer(ref rb, ref optPrint);
         _txtFields_5.Text = Convert.ToString(Index);
     }
 }
Beispiel #9
0
 //Handles optDeposits.CheckedChanged
 private void optDeposits_CheckedChanged(System.Object eventSender, System.EventArgs eventArgs)
 {
     if (eventSender.Checked)
     {
         RadioButton rb = new RadioButton();
         rb = (RadioButton)eventSender;
         int Index = GetIndex.GetIndexer(ref rb, ref optDeposits);
         updateBit();
     }
 }
//UPGRADE_WARNING: Event optType.CheckedChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
        private void optType_CheckedChanged(System.Object eventSender, System.EventArgs eventArgs)
        {
            if (eventSender.Checked)
            {
                RadioButton opt = new RadioButton();
                opt = (RadioButton)eventSender;
                int Index = GetIndex.GetIndexer(ref opt, ref optType);
                this._txtFields_0.Text = Convert.ToString(Index);
            }
        }
 //Handles OprBarcode.CheckedChanged
 private void OprBarcode_CheckedChanged(System.Object eventSender, System.EventArgs eventArgs)
 {
     if (eventSender.Checked)
     {
         RadioButton rb = new RadioButton();
         rb = (RadioButton)eventSender;
         int Index = GetIndex.GetIndexer(ref rb, ref OprBarcode);
         c_Barcode = true;
     }
 }
Beispiel #12
0
        private void txtFloat_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = txtFloat.GetIndex(eventSender)
            int     t = 0;
            TextBox n = new TextBox();

            n = (TextBox)eventSender;
            t = GetIndex.GetIndexer(ref n, ref txtFloat);
            modUtilities.MyLostFocus(ref txtFloat[t], ref 2);
        }
Beispiel #13
0
        private void txtFloat_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = txtFloat.GetIndex(eventSender)
            int     t = 0;
            TextBox n = new TextBox();

            n = (TextBox)eventSender;
            t = GetIndex.GetIndexer(ref n, ref txtFloat);
            modUtilities.MyGotFocusNumeric(ref txtFloat[t]);
        }
Beispiel #14
0
        //Handles txtFields.Leave
        private void txtFields_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txtbox = new TextBox();

            txtbox = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txtbox, ref txtFields);

            modUtilities.MyGotFocus(ref txtFields[Index]);
            //_txtFields_6.Text = FormatNumber(adoPrimaryRS("Company_POSExcess"), 2)
        }
        private void cmdInformation_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = cmdInformation.GetIndex(eventSender)
            int    Index = 0;
            Button n     = new Button();

            n     = (Button)eventSender;
            Index = GetIndex.GetIndexer(ref n, ref cmdInformation);
            InformationReport(ref Convert.ToBoolean(Index));
        }
        private void cmdClick_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            int    Index = 0;
            Button btn   = new Button();

            btn   = (Button)eventSender;
            Index = GetIndex.GetIndexer(ref btn, ref cmdClick);
            tbStockItem_ButtonClick(this.tbStockItem.Items[Index], new System.EventArgs());
            lstStockItem.Focus();
        }
        private void txtInteger_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = txtInteger.GetIndex(eventSender)
            int     Index = 0;
            TextBox m     = new TextBox();
            TextBox n     = new TextBox();

            n     = (TextBox)eventSender;
            Index = GetIndex.GetIndexer(ref n, ref txtInteger);
            modUtilities.MyLostFocus(ref txtInteger[Index], ref 0);
        }
        private void txtFields_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = txtFields.GetIndex(eventSender)
            int     Index = 0;
            TextBox m     = new TextBox();
            TextBox n     = new TextBox();

            n     = (TextBox)eventSender;
            Index = GetIndex.GetIndexer(ref n, ref txtFields);
            modUtilities.MyGotFocus(ref txtFields[Index]);
        }
        private void cmdClick_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            //Dim Index As Short = cmdClick.GetIndex(eventSender)
            int    Index = 0;
            Button n     = new Button();

            n     = (Button)eventSender;
            Index = GetIndex.GetIndexer(ref n, ref cmdClick);
            tbStockItem_ButtonClick(this.tbStockItem.Items[Index], new System.EventArgs());
            lstStockItem.Focus();
        }
Beispiel #20
0
        //Handles txtPrice.Enter
        private void txtPrice_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txtbox = new TextBox();

            txtbox = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txtbox, ref txtPrice);

            if (!string.IsNullOrEmpty(txtPrice[Index].Text))
            {
                modUtilities.MyGotFocusNumeric(ref txtPrice[Index]);
            }
        }
        private void txtFloat_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     index = 0;
            TextBox n     = null;

            n     = (TextBox)eventSender;
            index = GetIndex.GetIndexer(ref n, ref txtFloat);
            if (index == 1 | index == 3)
            {
                modUtilities.MyGotFocusNumeric(ref txtFloat[index]);
            }
        }
        private void txtFields_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     Index  = 0;
            TextBox txtBox = new TextBox();

            txtBox = (TextBox)eventSender;
            Index  = GetIndex.GetIndexer(ref txtBox, ref txtFields);
            if (Index == 7)
            {
                modUtilities.MyLostFocus(ref txtFields[Index], ref 0);
            }
        }
Beispiel #23
0
        //Handles cmdClear.Click
        private void cmdClear_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            Button btn = new Button();

            btn = (Button)eventSender;
            int Index = GetIndex.GetIndexer(ref btn, ref cmdClear);

            modReport.cnnDBreport.Execute("UPDATE Link SET Link.Link_Name = '', Link.Link_SQL = '' WHERE (((Link.LinkID)=" + Index + ") AND ((Link.Link_SectionID)=3) AND ((Link.Link_PersonID)=" + modRecordSet.gPersonID + "));");
            modReport.cnnDBreport.Execute("DELETE LinkDataItem.* From LinkDataItem WHERE (((LinkDataItem.LinkDataItem_LinkID)=" + Index + ") AND ((LinkDataItem.LinkDataItem_SectionID)=3) AND ((LinkDataItem.LinkDataItem_PersonID)=" + modRecordSet.gPersonID + "));");
            modReport.cnnDBreport.Execute("DELETE LinkData.LinkData_LinkID, LinkData.LinkData_SectionID, LinkData.LinkData_PersonID, LinkData.* From LinkData WHERE (((LinkData.LinkData_LinkID)=" + Index + ") AND ((LinkData.LinkData_SectionID)=3) AND ((LinkData.LinkData_PersonID)=" + modRecordSet.gPersonID + "));");
            lblItem[Index].Text = "";
        }
        private void txtFloat_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            int     index = 0;
            TextBox n     = null;

            n     = (TextBox)eventSender;
            index = GetIndex.GetIndexer(ref n, ref txtFloat);
            string g_Defailt = null;

            if (index == 1)
            {
                if (string.IsNullOrEmpty(_txtFloat_1.Text))
                {
                    _txtFloat_1.Text = Convert.ToString(g_Defailt2);
                }

                if (!string.IsNullOrEmpty(_txtFloat_1.Text))
                {
                    if (Convert.ToDouble(Strings.FormatNumber(_txtFloat_1.Text)) == 0)
                    {
                        _txtFloat_1.Text = Convert.ToString(g_Defailt2);
                    }
                    else if (Convert.ToInt32(Convert.ToDouble(Strings.FormatNumber(_txtFloat_1.Text)) / 100) == 0)
                    {
                        _txtFloat_1.Text = Convert.ToString(g_Defailt2);
                    }
                }
                LostFocus1(ref _txtFloat_1, ref 2);
            }

            if (index == 3)
            {
                if (string.IsNullOrEmpty(txtFloat[3].Text))
                {
                    txtFloat[3].Text = Convert.ToString(g_Default);
                }

                if (!string.IsNullOrEmpty(txtFloat[3].Text))
                {
                    if (Convert.ToDouble(Strings.FormatNumber(txtFloat[3].Text)) == 0)
                    {
                        txtFloat[3].Text = Convert.ToString(g_Default);
                    }
                    else if (Convert.ToInt32(Convert.ToDouble(Strings.FormatNumber(txtFloat[3].Text)) / 100) == 0)
                    {
                        //UPGRADE_WARNING: Couldn't resolve default property of object g_Defailt. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
                        txtFloat[3].Text = g_Defailt;
                    }
                }
                LostFocus1(ref txtFloat[3], ref 2);
            }
        }
Beispiel #25
0
        // Handles txtFields.Leave
        private void txtFields_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            TextBox txt = null;

            txt = (TextBox)eventSender;
            int Index = GetIndex.GetIndexer(ref txt, ref txtFields);

            //*Code that put the Display Name text in the Receipt Name Textbox when Display Name Loses Focus
            if (string.IsNullOrEmpty(_txtFields_3.Text))
            {
                _txtFields_3.Text = _txtFields_28.Text;
            }
        }
Beispiel #26
0
        private void MonthView1_Leave(System.Object eventSender, System.EventArgs eventArgs)
        {
            MonthCalendar mv = new MonthCalendar();

            mv = (MonthCalendar)eventSender;
            int Index = GetIndex.GetIndexer(ref mv, ref MonthView);

            //    If Index Then
            _MonthView1_1.BackColor = System.Drawing.ColorTranslator.FromOle(Information.RGB(255, 255, 255));
            //        MonthView1(0).MonthBackColor = -2147483624
            //    Else
            _MonthView1_0.BackColor = System.Drawing.ColorTranslator.FromOle(Information.RGB(255, 255, 255));
            //        MonthView1(1).MonthBackColor = -2147483624
            //    End If
        }
Beispiel #27
0
        private void txtFloatNegative_KeyPress(System.Object eventSender, System.Windows.Forms.KeyPressEventArgs eventArgs)
        {
            short   KeyAscii = Strings.Asc(eventArgs.KeyChar);
            int     Index    = 0;
            TextBox txtBox   = new TextBox();

            txtBox = (TextBox)eventSender;
            Index  = GetIndex.GetIndexer(ref txtBox, ref txtFloatNegative);
            modUtilities.MyKeyPressNegative(ref txtFloatNegative[Index], ref KeyAscii);
            eventArgs.KeyChar = Strings.Chr(KeyAscii);
            if (KeyAscii == 0)
            {
                eventArgs.Handled = true;
            }
        }
Beispiel #28
0
        private void MonthView1_Enter(System.Object eventSender, System.EventArgs eventArgs)
        {
            MonthCalendar mv = new MonthCalendar();

            mv = (MonthCalendar)eventSender;
            int Index = GetIndex.GetIndexer(ref mv, ref MonthView);

            if (Index)
            {
                //        MonthView1(1).MonthBackColor = RGB(255, 255, 255)
                _MonthView1_1.BackColor = System.Drawing.ColorTranslator.FromOle(-2147483624);
            }
            else
            {
                //        MonthView1(0).MonthBackColor = RGB(255, 255, 255)
                _MonthView1_0.BackColor = System.Drawing.ColorTranslator.FromOle(-2147483624);
            }
        }
        private void txtFloat_KeyPress(System.Object eventSender, System.Windows.Forms.KeyPressEventArgs eventArgs)
        {
            short   KeyAscii = Strings.Asc(eventArgs.KeyChar);
            int     index    = 0;
            TextBox n        = null;

            n     = (TextBox)eventSender;
            index = GetIndex.GetIndexer(ref n, ref txtFloat);
            if (index == 1 | index == 3)
            {
                modUtilities.MyKeyPress(ref KeyAscii);
            }
            eventArgs.KeyChar = Strings.Chr(KeyAscii);
            if (KeyAscii == 0)
            {
                eventArgs.Handled = true;
            }
        }
Beispiel #30
0
 //Handles optType.CheckedChanged
 private void optType_CheckedChanged(System.Object eventSender, System.EventArgs eventArgs)
 {
     if (eventSender.Checked)
     {
         RadioButton opt = new RadioButton();
         opt = (RadioButton)eventSender;
         int Index = GetIndex.GetIndexer(ref opt, ref optType);
         if (Index)
         {
             cmbGroup.Enabled = true;
         }
         else
         {
             cmbGroup.Enabled = false;
         }
         this.chkPageBreak.Enabled = (Index == 1);
     }
 }