Esempio n. 1
0
        private void mnuOthIP_Click(object sender, EventArgs e)
        {
            if (IsFormOpen("frmInputIP"))
            {
                return;
            }

            frmInputIP fInpIP = new frmInputIP();

            fInpIP.ShowDialog();
            if (fInpIP.IPAddress != "")
            {
                frmIPInfo fII           = new frmIPInfo();
                Informer  inf           = new Informer();
                object    tmpDataSource = inf.GetIPInfo(fInpIP.IPAddress);
                if (tmpDataSource != null)
                {
                    fII.TableDataSource = tmpDataSource;
                    fII.Show();
                }
                else
                {
                    CommonFunctions.ErrMessage(inf.ErrorMessage);
                }
            }
        }
Esempio n. 2
0
        private void mnuMyIP_Click(object sender, EventArgs e)
        {
            if (IsFormOpen("frmIPInfo"))
            {
                return;
            }

            frmIPInfo fII           = new frmIPInfo();
            Informer  inf           = new Informer();
            object    tmpDataSource = inf.GetIPInfo();

            if (tmpDataSource != null)
            {
                fII.TableDataSource = tmpDataSource;
                fII.Show();
            }
            else
            {
                CommonFunctions.ErrMessage(inf.ErrorMessage);
            }
        }