示例#1
0
        private void btPrint_Click(object sender, EventArgs e)
        {
            Logging.StartFirstLevel(79);
            Logging.Comment($"Наименование формы: {this.Text}");
            Logging.Comment($"Отдел ID:{cbDeps.SelectedValue}; Наименование:{cbDeps.Text}");
            Logging.Comment($"Дата с {dtpStartDate.Value.ToShortDateString()} по {dtpEndDate.Value.ToShortDateString()}");
            Logging.StopFirstLevel();
            frmPrint printForm = new frmPrint(3, int.Parse(dtNakls.DefaultView[dgvNakls.CurrentRow.Index]["id"].ToString()));

            printForm.ShowDialog();
        }
示例#2
0
        private void btPrint_Click(object sender, EventArgs e)
        {
            frmPrint printForm = new frmPrint(4, int.Parse(dtNakls.DefaultView[dgvNakls.CurrentRow.Index]["id"].ToString()));

            printForm.ShowDialog();
        }