Exemple #1
0
    public void Delete_Data()
    {
        if (MyDataBase.Search_For_Service(Service.text, All_Services.Services_Names))
        {
            if (Contains_(Login.text) || Contains_(Password.text))
            {
                System_Text.text  = "No spaces between words!";
                System_Text.color = Color.red;
            }
            else
            {
                MyDataBase.Delete_Data(Service.text);

                System_Text.text  = "You deleted service.";
                System_Text.color = Color.red;
                Old_Login.text    = "";
                Old_Password.text = "";
            }
        }
        else
        {
            Change_Button.SetActive(false);
            Delete_Button.SetActive(false);
            New_Button.SetActive(false);

            Login_Box.SetActive(false);
            Password_Box.SetActive(false);
            System_Text.text  = "Write service name.";
            System_Text.color = Color.black;
        }
    }