예제 #1
0
 /// <summary>
 /// Конструктор создания типа, который производит вервоначальную инициализацию
 /// </summary>
 /// <param name="simulatorModel">Модель симулятора</param>
 public SimulatorForm(SimulatorModel simulatorModel)
 {
     InitializeComponent();
     _simulatorService = new SimulatorService(simulatorModel);
     _simulatorService.GenerateSimulatorMap();
     InitUI();
 }
예제 #2
0
 public CallOrSMSModel()
 {
     simulatorService = new SimulatorService();
     Call             = new Call();
     CommandInvoke();
     Clients = new ObservableCollection <string>(simulatorService.GetClientsIds());
 }
예제 #3
0
파일: Program.cs 프로젝트: hozuki/piyopiyo
        private static void TestPlay([NotNull] Uri uri)
        {
            var client = new SimulatorService(uri);

            client.Play();

            Console.WriteLine("play() called");
        }
예제 #4
0
파일: Program.cs 프로젝트: hozuki/piyopiyo
        private static void TestTestAdd([NotNull] Uri uri)
        {
            var client = new SimulatorService(uri);

            var c = client.TestAdd(20, 45);

            Console.WriteLine("testAdd() result: {0}", c.ToString());
        }
예제 #5
0
        // GET: Admin/Clients
        public ActionResult Index()
        {
            string result = SimulatorService.GetUser();

            return(View(db.Clients.ToList()));
        }