Exemplo n.º 1
0
        private void ToolStripMenuItem_add_Click(object sender, EventArgs e)
        {
            ServerList        _tmpData = null;
            Add_Modify_Server tmpAdd_Modify_Computer = new Add_Modify_Server(_tmpData);

            tmpAdd_Modify_Computer.ShowDialog();
            if (tmpAdd_Modify_Computer.result == DialogResult.OK)
            {
                GetServerList();
            }
        }
Exemplo n.º 2
0
        private void ToolStripMenuItem_edittype_Click(object sender, EventArgs e)
        {
            ServerList _tmpData = new ServerList();

            for (int i = 0; i < tmpListServer.Count; i++)
            {
                if (_tmpServerList.DeviceID == tmpListServer[i].DeviceID)
                {
                    _tmpData = tmpListServer[i];
                    break;
                }
            }
            Add_Modify_Server tmpAdd_Modify_Server = new Add_Modify_Server(_tmpData);

            tmpAdd_Modify_Server.ShowDialog();
            if (tmpAdd_Modify_Server.result == DialogResult.OK)
            {
                GetServerList();
            }
        }