Exemplo n.º 1
0
        private void EditGlobals_Click(object sender, EventArgs e)
        {
            EditSrv editSrvDialog = new EditSrv();

            editSrvDialog.PopulateBoxes(connectedHost.GetGlobals());
            if (editSrvDialog.ShowDialog() == DialogResult.OK)
            {
                JsonUtilities.SendJsonMsg <List <Property> >(editSrvDialog.workingProps, NetworkMessageDestination.Service, NetworkMessageTypes.PropUpdate);
                connectedHost.SetGlobals(editSrvDialog.workingProps);
                editSrvDialog.Close();
                editSrvDialog.Dispose();
                RestartSrv_Click(null, null);
            }
        }
Exemplo n.º 2
0
        private void EditCfg_Click(object sender, EventArgs e)
        {
            EditSrv editSrvDialog = new EditSrv();

            editSrvDialog.PopulateBoxes(selectedServer.ServerPropList);
            if (editSrvDialog.ShowDialog() == DialogResult.OK)
            {
                JsonUtilities.SendJsonMsg <List <Property> >(editSrvDialog.workingProps, NetworkMessageDestination.Service, NetworkMessageTypes.PropUpdate);
                selectedServer.ServerPropList = editSrvDialog.workingProps;
                editSrvDialog.Close();
                editSrvDialog.Dispose();
                RestartSrv_Click(null, null);
            }
        }