Example #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmDay frm = new frmDay(_core, FocusedRow = gvwCalendar.GetFocusedDataRow(), dateNavigator1.SelectionStart, 1, dtable);

            frm.ShowDialog();
            RefreshData(dateNavigator1.DateTime);
            dateNavigator1.Refresh();
        }
Example #2
0
 private void grdCalendar_DoubleClick(object sender, EventArgs e)
 {
     FocusedRow = gvwCalendar.GetFocusedDataRow();
     if (Static.ToStr(FocusedRow["DAY"]) == "")
     {
         frmDay frm = new frmDay(_core, FocusedRow, dateNavigator1.SelectionStart, 0, dtable);
         frm.ShowDialog();
     }
     else
     {
         frmDay frm = new frmDay(_core, FocusedRow, dateNavigator1.SelectionStart, 1, dtable);
         frm.ShowDialog();
     }
     RefreshData(dateNavigator1.DateTime);
     dateNavigator1.Refresh();
 }