Пример #1
0
        private static void Main(string[] args)
        {
            #region Main,,,

            // myMessage group
            var myMessage1 = "this is message 1";
            Console.WriteLine(myMessage1);

            // write and int
            var anInt = 61;
            Console.WriteLine(anInt);

            // use static MySimpleMath.Add funtion
            double simpleMath = MySimpleMath.Add(anInt, anInt);

            // use static MySimpleMath.Add override for an arrayee
            double[] numbers       = new double[] { 1, 2, 3, 42, 42154 };
            var      myAddOverRide = MySimpleMath.Add(numbers);
            Console.WriteLine(myAddOverRide);

            ChildBankAccount childBankAccount = new ChildBankAccount();
            childBankAccount.AddToBalance(100);
            var simpleMathMessage = Information(childBankAccount) + simpleMath;
            Console.WriteLine(simpleMathMessage);

            BankAccount bankAccount = new BankAccount();
            bankAccount.AddToBalance(100);
            Console.WriteLine(Information(bankAccount));

            MyInformation myInformation = new MyInformation();

            Console.WriteLine("Hello World!");

            #endregion Main,,,
        }
Пример #2
0
 public void ReceivedClientInfo(MyInformation _client)
 {
     recievedInfo = new ReceivedClient(_client.Myobject, _client.Mymessage);
     print("(Server)From : " + recievedInfo.RecOb);
     print("(Server)Said : " + recievedInfo.RecMes);
     SendInfoToClient(recievedInfo);
 }
Пример #3
0
 private void ColliderOther(MyInformation hitObject)
 {
     if (hitObject.locationOK)
     {
         if (Information.activeSelf == false)
         {
             Information.SetActive(true);
         }
         hitObject.InformationSetting(Information.GetComponent <InformationPanel>());
     }
 }
Пример #4
0
        public ActionResult EmployeeInformation()
        {
            var           model       = online.UserTB.Find(1);
            MyInformation information = new MyInformation();

            information.Email    = model.Email;
            information.UserName = model.UserName;
            information.PassWord = model.Password;
            information.UserID   = model.UserID;
            return(View(information));
        }
Пример #5
0
    private static async Task RunAsync()
    {
        var config    = SampleConfiguration.ReadFromJsonFile("app-settings.json");
        var appConfig = config.PublicClientApplicationOptions;

        // var clientId = ConfigurationManager.AppSettings["clientId"].ToString();

        var app = PublicClientApplicationBuilder.CreateWithApplicationOptions(appConfig)
                  .Build();
        var httpClient = new HttpClient();

        var myInformation = new MyInformation(app, httpClient, config.MicrosoftGraphBaseEndpoint);
        await myInformation.DisplayMeAndMyManagerAsync();
    }
        public void SaveQuestionnaire()
        {
            QuestionnaireManager qm          = new QuestionnaireManager(DataUtil.TESTDB);
            SqlTransaction       transaction = ConnectionManager.GetInstance().GetSqlTransaction(User.CurrentUser.Md5);

            SqlCommand cmdDelete = new SqlCommand("DELETE FROM Questionnaire", transaction.Connection, transaction);

            cmdDelete.ExecuteNonQuery();

            qm.SaveQuestionnaire("Test", "UK", "*****@*****.**", "1", "", "yes", " ", "test", "test", "test", "test", transaction, false);
            transaction.Commit();
            MyInformation myInformation = qm.GetQuestionnaire();

            Assert.AreEqual("Test", myInformation.MfiName);
        }
Пример #7
0
    private void ClickObjectControl()
    {
        if (Input.GetMouseButtonDown(0))
        {
            RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);

            if (hit.collider != null)
            {
                if (hit.transform.tag == "Other")
                {
                    MyInformation hitObject = hit.transform.GetComponent <MyInformation>();
                    ColliderOther(hitObject);
                }
            }
        }
    }
Пример #8
0
 private void FollowOk()
 {
     if (transform.name == "barrack")
     {
         GetComponent <MyInformation>().locationOK = true;
     }
     else if (transform.name == "powerplant")
     {
         GetComponent <MyInformation>().locationOK = true;
     }
     else if (transform.name == "flag")
     {
         MyInformation _parent = transform.parent.GetComponent <MyInformation>();
         _parent.TargetPosition(transform.position);
         _parent.InformationOpen(GameManager.instance.Information.GetComponent <InformationPanel>());
     }
 }
        public MyInformation GetQuestionnaire()
        {
            const string sqlText = @"SELECT   Name
                                            , Country
                                            , Email
                                            , NumberOfClients
                                            , GrossPortfolio
                                            , PositionInCompony
                                            , PersonName
                                            , Phone
                                            , Skype
                                            , PurposeOfUsage
                                            , OtherMessages 
                                            , is_sent
                                            FROM Questionnaire";

            MyInformation myInformation = new MyInformation();

            myInformation.MfiName = null;
            using (SqlConnection conn = GetConnection())
                using (var cmd = new OpenCbsCommand(sqlText, conn))
                {
                    using (OpenCbsReader reader = cmd.ExecuteReader())
                    {
                        if (!reader.Empty)
                        {
                            reader.Read();
                            myInformation.MfiName           = reader.GetString("Name");
                            myInformation.Country           = reader.GetString("Country");
                            myInformation.Email             = reader.GetString("Email");
                            myInformation.NumberOfClients   = reader.GetString("NumberOfClients");
                            myInformation.GrossPortfolio    = reader.GetString("GrossPortfolio");
                            myInformation.PositionInCompany = reader.GetString("PositionInCompony");
                            myInformation.PersonName        = reader.GetString("PersonName");
                            myInformation.Phone             = reader.GetString("Phone");
                            myInformation.Skype             = reader.GetString("Skype");
                            myInformation.PurposeOfUsage    = reader.GetString("PurposeOfUsage");
                            myInformation.Comment           = reader.GetString("OtherMessages");
                            myInformation.IsSent            = reader.GetBool("is_sent");
                            return(myInformation);
                        }
                        return(null);
                    }
                }
        }
Пример #10
0
    }                                                             // Update

    public void MakeInfo(GameObject _gameObject, string _message) // 내 정보 생성
    {
        print("(Client)From : " + _gameObject);
        print("(Client)Said : " + _message);
        Myinfo = new MyInformation(_gameObject, _message);
    }