private void btnLog_Click(object sender, EventArgs e) { frmLogView fLogView = new frmLogView(); fLogView.log = Task.Log; fLogView.ShowDialog(); if (fLogView.bClear) { Task.ClearLog(); } }
private void mnuEditViewLog_Click(object sender, EventArgs e) { if (grdMain.CurrentRow == null) { return; } int RecID = (int)grdMain.CurrentRow.Cells["ID"].Value; cTask tmptsk = new cTask(cConfig.dsConfig, "Tasks", RecID); frmLogView fLogView = new frmLogView(); fLogView.NoClear = LockedRecIDs.Contains(RecID); fLogView.log = tmptsk.Log; fLogView.ShowDialog(); if (fLogView.bClear) { tmptsk.ClearLog(); tmptsk.ToDataSet(cConfig.dsConfig, "Tasks"); cConfig.SaveConfig(); } }