示例#1
0
        public NotesWindow(int taskId, ReceptionService rs)
        {
            InitializeComponent();

            this.rs = rs;
            task    = rs.GetTask(taskId);

            InitializeNotes();
        }
示例#2
0
 private void dataGridView1_SelectionChanged(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int id = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
         HotelCore.Entities.Task task = tasks.Where(t => t.Id == id).First();
         IdTask.Text = task.Id.ToString();
         ServiceType.SelectedItem = task.ServiceType;
         Status.SelectedItem      = task.Status;
     }
 }