private void b_Move_Click(object sender, RoutedEventArgs e)
        {
            if (String.IsNullOrEmpty(tb_GPS.Text) && !IsDumpCoords)
            {
                MessageBox.Show("Fill GPS coords");
                return;
            }

            if (String.IsNullOrEmpty(Settings.Settings.DumpGPS) && IsDumpCoords)
            {
                MessageBox.Show("Fill Dump GPS coords");
                return;
            }

            Tuple <string, string>[] _params = new Tuple <string, string> [3];
            _params[0] = new Tuple <string, string>("EntityId", grid.EntityId.ToString());
            _params[1] = new Tuple <string, string>("clearOwner", "false");

            if (!IsDumpCoords)
            {
                _params[2] = new Tuple <string, string>("GPS", tb_GPS.Text);
            }
            else
            {
                _params[2] = new Tuple <string, string>("GPS", Settings.Settings.DumpGPS);
            }

            MyStatic.CustomApiRequest("moveGridTo", _params);
        }
Ejemplo n.º 2
0
        private void UpdateVrageRemoteAPI()
        {
            string response = MyStatic.VrageRemoteApiRequest("session/grids", Method.GET);

            if (!string.IsNullOrEmpty(response))
            {
                grids = new JavaScriptSerializer().Deserialize <GridInformationFormat>(response);
            }
        }
Ejemplo n.º 3
0
        private void UpdateCustomAPI()
        {
            string response = MyStatic.CustomApiRequest("GetLastPlayersLoginTime");

            if (!string.IsNullOrEmpty(response))
            {
                players = new JavaScriptSerializer().Deserialize <PlayersInformationFormat[]>(response);
            }
        }
Ejemplo n.º 4
0
    void Start()
    {
        MyStatic.ciaoString = "MUORI";
        MyStatic.SayCiao();

        MyClass.Count++;
        Debug.Log(MyClass.Count);

        MyClass.SayNum(this);
    }
Ejemplo n.º 5
0
 public void MyStaticTestFunc()
 {
     MyStatic.TestFunc();
 }
Ejemplo n.º 6
0
 public static string SomeToolMethod()
 {
     return(MyStatic.SomeToolMethod());
 }
 private void b_Delete_Click(object sender, RoutedEventArgs e)
 {
     Tuple <string, string>[] _params = new Tuple <string, string> [1];
     _params[0] = new Tuple <string, string>("entityId", grid.EntityId.ToString());
     MyStatic.VrageRemoteApiRequest("session/grids/" + grid.EntityId.ToString(), RestSharp.Method.DELETE);
 }