private void BtnAddButton_Click(object sender, EventArgs e)
 {
     try
     {
         TimeEntryForm dlg = new TimeEntryForm(issue, projectMembers);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             AsyncLoadTimeEntries();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
Esempio n. 2
0
 private void BtnAddButton_Click(object sender, EventArgs e)
 {
     try
     {
         TimeEntryForm dlg = new TimeEntryForm(issue, projectMembers);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             AsyncLoadTimeEntries();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
Esempio n. 3
0
        private void DataGridViewTimeEntries_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            TimeEntry timeEntry = (TimeEntry)DataGridViewTimeEntries.Rows[e.RowIndex].DataBoundItem;

            try
            {
                TimeEntryForm dlg = new TimeEntryForm(issue, projectMembers, timeEntry);
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    AsyncLoadTimeEntries();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }
Esempio n. 4
0
        private void BtnModifyButton_Click(object sender, EventArgs e)
        {
            if (DataGridViewTimeEntries.SelectedRows.Count <= 0)
            {
                return;
            }

            try
            {
                TimeEntry     timeEntry = (TimeEntry)DataGridViewTimeEntries.SelectedRows[0].DataBoundItem;
                TimeEntryForm dlg       = new TimeEntryForm(issue, projectMembers, timeEntry);
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    AsyncLoadTimeEntries();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }
 private void DataGridViewTimeEntries_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     TimeEntry timeEntry = (TimeEntry)DataGridViewTimeEntries.Rows[e.RowIndex].DataBoundItem;
     try
     {
         TimeEntryForm dlg = new TimeEntryForm(issue, projectMembers, timeEntry);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             AsyncLoadTimeEntries();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
        private void BtnModifyButton_Click(object sender, EventArgs e)
        {
            if (DataGridViewTimeEntries.SelectedRows.Count <= 0)
                return;

            try
            {
                TimeEntry timeEntry = (TimeEntry)DataGridViewTimeEntries.SelectedRows[0].DataBoundItem;
                TimeEntryForm dlg = new TimeEntryForm(issue, projectMembers, timeEntry);
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    AsyncLoadTimeEntries();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(String.Format(Lang.Error_Exception, ex.Message), Lang.Error, MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }