Esempio n. 1
0
        // PUT: api/employee/5
        public void Put(int id, Employee value)
        {
            display        db      = new display();
            emp_repository emprepo = new emp_repository();

            emprepo.Edit(value, id);
        }
        public void CreateTask(Task task)
        {
            display d = new display();

            d.tasks.Add(task);
            d.SaveChanges();
        }
Esempio n. 3
0
        // POST: api/employee
        public void Post(Employee value)
        {
            display db = new display();

            db.employees.Add(value);
            db.SaveChanges();
        }
Esempio n. 4
0
        public void CreateEmployee(Employee employee)
        {
            display d = new display();

            d.employees.Add(employee);
            d.SaveChanges();
        }
        public void CreateProject(Project project)
        {
            display d = new display();

            d.projects.Add(project);
            d.SaveChanges();
        }
Esempio n. 6
0
        public static void Main(string[] args)
        {
            display DisplayObject = new display();

            DisplayObject.displayNumber();
            DisplayObject.displayWord();
        }
Esempio n. 7
0
        public void CreateUstories(UserStories user)
        {
            display d = new display();

            d.userstories.Add(user);
            d.SaveChanges();
        }
 public Binding(string description, KeyCode primary, KeyCode secondary, display display)
 {
     bindingDescription   = description;
     primaryBindingCode   = primary;
     secondaryBindingCode = secondary;
     toDisplay            = display;
 }
Esempio n. 9
0
        public void CreateComment(Managercomment comment)
        {
            display d = new display();

            d.comments.Add(comment);
            d.SaveChanges();
        }
Esempio n. 10
0
 void drawWindow(int id)
 {
     selector = (display)GUILayout.SelectionGrid((int)selector, selectorLabels, 2);
     if (selector == display.Asst)
     {
         drawLabelsInRow("Reduce Target Heading", GameSettings.YAW_LEFT.primary);
         drawLabelsInRow("Increase Target Heading", GameSettings.YAW_RIGHT.primary);
         drawLabelsInRow("Reduce Vert Target", GameSettings.PITCH_DOWN.primary);
         drawLabelsInRow("Increase Vert Target", GameSettings.PITCH_UP.primary);
         drawLabelsInRow("Reduce Target Speed", GameSettings.THROTTLE_DOWN.primary);
         drawLabelsInRow("Increase Target Speed", GameSettings.THROTTLE_UP.primary);
         drawLabelsInRow("Toggle Fine Mode", GameSettings.PRECISION_CTRL.primary);
         drawLabelsInRow("Rate x10", GameSettings.MODIFIER_KEY.primary);
         GUILayout.Space(20);
         foreach (Binding b in bindings)
         {
             if (b.toDisplay != display.Asst)
             {
                 continue;
             }
             drawSetKey(b);
         }
     }
     else if (selector == display.SSAS)
     {
         drawSetKey(bindings[(int)bindingIndex.ArmSSAS]);
         drawLabelsInRow("Toggle SSAS", GameSettings.SAS_TOGGLE.primary);
     }
     GUI.DragWindow();
 }
Esempio n. 11
0
        public void Delete(int id)
        {
            display        d  = new display();
            Managercomment mn = SearchById(id, d);

            d.comments.Remove(mn);
            d.SaveChanges();
        }
Esempio n. 12
0
        public void Delete(int id)
        {
            display  d  = new display();
            Employee em = SearchById(id, d);

            d.employees.Remove(em);
            d.SaveChanges();
        }
Esempio n. 13
0
        public void Delete(int id)
        {
            display d  = new display();
            Project pr = SearchById(id, d);

            d.projects.Remove(pr);
            d.SaveChanges();
        }
Esempio n. 14
0
        public void Delete(int id)
        {
            display     d  = new display();
            UserStories us = SearchById(id, d);

            d.userstories.Remove(us);
            d.SaveChanges();
        }
Esempio n. 15
0
        public void Delete(int id)
        {
            display d  = new display();
            Task    tk = SearchById(id, d);

            d.tasks.Remove(tk);
            d.SaveChanges();
        }
Esempio n. 16
0
 public MobilePhone(string model, string manufacture, int price, string owner, Energy batt, display screen)
 {
     this.model       = model;
     this.manufacture = manufacture;
     this.price       = price;
     this.owner       = owner;
     this.battery     = batt;
     this.screen      = screen;
 }
Esempio n. 17
0
        public void Edit(Managercomment m, int id)
        {
            display        d   = new display();
            Managercomment man = SearchById(id, d);

            man.comment   = m.comment;
            man.protaskId = m.protaskId;
            d.SaveChanges();
        }
Esempio n. 18
0
        public void Edit(UserStories ua, int id)
        {
            display     d  = new display();
            UserStories us = SearchById(id, d);

            us.Story = ua.Story;
            us.ProId = ua.ProId;
            d.SaveChanges();
        }
Esempio n. 19
0
        public void Edit(Project p, int id)
        {
            display d  = new display();
            Project pr = SearchById(id, d);

            pr.Pname     = p.Pname;
            pr.StartDate = p.StartDate;
            pr.EndDate   = p.EndDate;
            pr.Cname     = p.Cname;
            d.SaveChanges();
        }
Esempio n. 20
0
        public void Edit(Task t, int id)
        {
            display d  = new display();
            Task    ta = SearchById(id, d);

            ta.AssignedTo  = t.AssignedTo;
            ta.EndDate     = t.EndDate;
            ta.StartDate   = t.StartDate;
            ta.Completion  = t.Completion;
            ta.UserStoryId = t.UserStoryId;
            d.SaveChanges();
        }
Esempio n. 21
0
        private void button6_Click(object sender, EventArgs e)
        {
            display f1 = new display();

            this.Hide();
            f1.ShowDialog();
            this.Close();
            //variable.IPHONE.Display();
            //variable.IPAD.Display();
            //variable.MAC.Display();
            //variable.APPLE_WATCH.Display();
        }
Esempio n. 22
0
        public void Edit(Employee e, int id)
        {
            display  d   = new display();
            Employee emp = SearchById(id, d);

            emp.Ename       = e.Ename;
            emp.Designation = e.Designation;
            emp.Mid         = e.Mid;
            emp.Contactno   = e.Contactno;
            emp.EmailId     = e.EmailId;
            emp.Skillsets   = e.Skillsets;
            d.SaveChanges();
        }
    private void Start()
    {
        display = FindObjectOfType <display>() as display;

        mSettings = display.meshSettings;
        hSettings = display.hightMapSettings;
        material  = display.terrainMateial;


        maxViveDst    = detail[detail.Length - 1].visibleDistance;
        meshWorldSize = mSettings.mechWorldSize;
        chunksVisible = Mathf.RoundToInt(maxViveDst / meshWorldSize);
        if (display.IsEndlessMode)
        {
            UpdateVisbleChunk();
        }
    }
    public override void OnInspectorGUI()
    {
        display d = (display)target;

        if (DrawDefaultInspector())
        {
            if (d.autoUpdate)
            {
                d.IniGenerate();
            }
        }

        if (GUILayout.Button("Generuj"))
        {
            d.IniGenerate();
        }
    }
Esempio n. 25
0
 void Start()
 {
     for (int i = 0; i < 3; i++)
     {
         displays[i] = new display();
         displays[i].negationIndex  = rnd.Range(0, 4);
         displays[i].statementIndex = rnd.Range(0, 16);
         displayTexts[i].text       = "";
         var toDisplay = negations[displays[i].negationIndex] + statements[displays[i].statementIndex];
         StartCoroutine(TypeText(displayTexts[i], toDisplay));
         Debug.LogFormat("[Negation #{0}] Display {1} is {2}", moduleId, i + 1, toDisplay);
     }
     foreach (display display in displays)
     {
         handleDisplay(display);
     }
     Debug.LogFormat("[Negation #{0}] The expected truth values are {1}, {2}, and {3}", moduleId, displays[0].truth, displays[1].truth, displays[2].truth);
 }
Esempio n. 26
0
 void Start()
 {
     for (int i = 0; i < 3; i++)
     {
         displays[i] = new display();
         displays[i].negationIndex  = rnd.Range(0, 4);
         displays[i].statementIndex = rnd.Range(0, 16);
         if (buttonTexts[0].text == "TRUE")
         {
             displayTexts[i].text = (negations[displays[i].negationIndex] + statements[displays[i].statementIndex]);
         }
         Debug.LogFormat("[Negation #{0}] Display {1} is {2}", moduleId, i + 1, displayTexts[i].text);
     }
     foreach (display display in displays)
     {
         handleDisplay(display);
     }
     Debug.LogFormat("[Negation #{0}] The expected truth values are {1}, {2}, and {3}", moduleId, displays[0].truth, displays[1].truth, displays[2].truth);
 }
Esempio n. 27
0
    IEnumerator TwitchHandleForcedSolve()
    {
        yield return(null);

        for (int i1 = stageCounter; i1 < displays.Length; i1++) // Only press based on what current stage it is on.
        {
            display i = displays[i1];
            if (i.truth)
            {
                yield return(null);

                butTrue.OnInteract();
            }
            else
            {
                yield return(null);

                butFalse.OnInteract();
            }
        }
    }
Esempio n. 28
0
 public static void Main(string[] args)
 {
     display DisplayObject = new display ();
     DisplayObject.displayNumber ();
     DisplayObject.displayWord ();
 }
Esempio n. 29
0
 public static void initialize(IMyGridTerminalSystem GridTerminalSystem)
 {
     _GridTerminalSystem = GridTerminalSystem;
     LCD = new display();
     ship = new state();
 }
Esempio n. 30
0
    void handleDisplay(display display)
    {
        switch (display.statementIndex)
        {
        case 0:
            if (bomb.GetBatteryCount() > 2)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 1:
            if (bomb.IsIndicatorPresent("FRQ") || bomb.IsIndicatorPresent("TRN"))
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 2:
            if (bomb.GetSerialNumberLetters().Any(x => x == 'A' || x == 'E' || x == 'I' || x == 'O' || x == 'U'))
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 3:
            if (bomb.GetPortCount(Port.RJ45) >= 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 4:
            if (bomb.GetSerialNumberNumbers().Last() % 2 == 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 5:
            if (bomb.GetOnIndicators().Count() > bomb.GetOffIndicators().Count())
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 6:
            if (bomb.GetPortCount(Port.Parallel) >= 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 7:
            if (bomb.GetPortCount(Port.StereoRCA) >= 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 8:
            if (bomb.IsIndicatorOn("BOB"))
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 9:
            if (bomb.GetBatteryCount(Battery.D) >= 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 10:
            if (bomb.IsIndicatorOff("FRK"))
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 11:
            if (bomb.GetBatteryCount() % 2 == 0)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 12:
            if (bomb.GetSerialNumberNumbers().Last() > 5)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 13:
            if (bomb.GetPortCount() > 2)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 14:
            if (bomb.IsIndicatorPresent("SIG"))
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;

        case 15:
            if (bomb.GetPortCount(Port.DVI) >= 1)
            {
                display.truth = true;
            }
            else
            {
                display.truth = false;
            }
            break;
        }
        if ((display.negationIndex % 2) == 0)
        {
            display.truth = !display.truth;
        }
    }
Esempio n. 31
0
        public List <display> dalcrud3(string dl, string status)
        {
            int            i          = 5;
            List <display> li         = new List <display>();
            SqlConnection  connection = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());

            try
            {
                connection.Open();
                if (dl.Equals("Test Status"))
                {
                    if (status.Equals("Pending"))
                    {
                        i = 5;
                    }
                    else if (status.Equals("Approved"))
                    {
                        i = 6;
                    }
                    else if (status.Equals("Rejected"))
                    {
                        i = 7;
                    }
                    SqlCommand    cmd1 = new SqlCommand("select can_candidateID, can_vacancyID, Can_TestStatus from E_Data_Candidate_Profile    where Can_VacancyID is not null and Can_TestStatus= " + i, connection);
                    SqlDataReader dr   = cmd1.ExecuteReader();
                    while (dr.Read())
                    {
                        display ds = new display();
                        ds.candidateid = dr.GetInt32(0);
                        ds.vacancyid   = dr.GetInt32(1);
                        int j = dr.GetInt32(2);
                        if (j == 5)
                        {
                            ds.status = "BGC Test Pending";
                        }
                        else if (j == 6)
                        {
                            ds.status = "BGC Test Cleared";
                        }
                        else if (j == 7)
                        {
                            ds.status = "BGC Test Failed";
                        }
                        else
                        {
                            ds.status = "NA";
                        }
                        li.Add(ds);
                    }
                }
                else if (dl.Equals("BGC Status"))
                {
                    SqlCommand cmd1;
                    if (status.Equals("Pending"))
                    {
                        i = 0;
                    }
                    else if (status.Equals("Approved"))
                    {
                        i = 1;
                    }
                    else if (status.Equals("Rejected"))
                    {
                        i = 2;
                    }
                    if (i == 2)
                    {
                        cmd1 = new SqlCommand("select can_candidateID,can_vacancyID, Can_BCGTestStatus, Can_TestStatus  from E_Data_Candidate_Profile    where Can_TestStatus>4 and can_vacancyID is not null and Can_BCGTestStatus=0 and Can_Remarks is not null", connection);
                    }
                    else
                    {
                        cmd1 = new SqlCommand("select can_candidateID,can_vacancyID, Can_BCGTestStatus, Can_TestStatus  from E_Data_Candidate_Profile    where Can_TestStatus>4 and can_vacancyID is not null and Can_BCGTestStatus=" + i, connection);
                    }
                    SqlDataReader dr = cmd1.ExecuteReader();
                    while (dr.Read())
                    {
                        int     j;
                        display ds = new display();
                        ds.candidateid = dr.GetInt32(0);
                        ds.vacancyid   = dr.GetInt32(1);
                        bool j1 = dr.GetBoolean(2);
                        if (j1 == true)
                        {
                            j = 1;
                        }
                        else
                        {
                            j = 0;
                        }
                        int k = dr.GetInt32(3);
                        if (k == 6)
                        {
                            ds.status = "BGC Test Cleared";
                        }
                        else if (k == 5 && j == 0)
                        {
                            ds.status = "BGC Test Pending";
                        }
                        else if (k == 7 && j == 0)
                        {
                            ds.status = "BGC Test Failed";
                        }
                        else
                        {
                            ds.status = "Status Unknown";
                        }

                        li.Add(ds);
                    }
                }
                else if (dl.Equals("Vacancy ID"))
                {
                    SqlCommand    cmd1 = new SqlCommand("select can_candidateID, can_vacancyID from E_Data_Candidate_Profile    where Can_VacancyID is  not null  order by (Can_VacancyID)", connection);
                    SqlDataReader dr   = cmd1.ExecuteReader();
                    while (dr.Read())
                    {
                        display ds = new display();
                        ds.candidateid = dr.GetInt32(0);
                        ds.vacancyid   = dr.GetInt32(1);
                        ds.status      = "NA";
                        li.Add(ds);
                    }
                }
                connection.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
            return(li);
        }
Esempio n. 32
0
        // GET: api/user/5
        public UserStories Get(int id)
        {
            display db = new display();

            return(db.userstories.Where(user => user.UserId == id).FirstOrDefault());
        }
 public Binding(string description, KeyCode primary, KeyCode secondary, display display)
 {
     bindingDescription = description;
     primaryBindingCode = primary;
     secondaryBindingCode = secondary;
     toDisplay = display;
 }
 void drawWindow(int id)
 {
     selector = (display)GUILayout.SelectionGrid((int)selector, selectorLabels, 2);
     if (selector == display.Asst)
     {
         drawLabelsInRow("Reduce Target Heading", GameSettings.YAW_LEFT.primary);
         drawLabelsInRow("Increase Target Heading", GameSettings.YAW_RIGHT.primary);
         drawLabelsInRow("Reduce Vert Target", GameSettings.PITCH_DOWN.primary);
         drawLabelsInRow("Increase Vert Target", GameSettings.PITCH_UP.primary);
         drawLabelsInRow("Reduce Target Speed", GameSettings.THROTTLE_DOWN.primary);
         drawLabelsInRow("Increase Target Speed", GameSettings.THROTTLE_UP.primary);
         drawLabelsInRow("Toggle Fine Mode", GameSettings.PRECISION_CTRL.primary);
         drawLabelsInRow("Rate x10", GameSettings.MODIFIER_KEY.primary);
         GUILayout.Space(20);
         foreach (Binding b in bindings)
         {
             if (b.toDisplay != display.Asst)
                 continue;
             drawSetKey(b);
         }
     }
     else if (selector == display.SSAS)
     {
         drawSetKey(bindings[(int)bindingIndex.ArmSSAS]);
         drawLabelsInRow("Toggle SSAS", GameSettings.SAS_TOGGLE.primary);
     }
     GUI.DragWindow();
 }