Exemplo n.º 1
0
        private void btnSynchNow_Click(object sender, EventArgs e)
        {
            var batchId = Guid.NewGuid();

            foreach (DataGridViewRow row in dataGridViewSynchronization.Rows)
            {
                if (row.Visible)
                {
                    var selectedCell = row.Cells["SelectColumn"];

                    if ((bool)selectedCell.Value)
                    {
                        SynchRow(row, batchId);
                    }
                }
            }

            CurrentSynchronization.Save();
            OnSynchRebinded?.Invoke(this, e);
        }
Exemplo n.º 2
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CurrentSynchronization.Save();
 }
Exemplo n.º 3
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     CurrentSynchronization.Save();
     dockPanel.SaveAsXml(AutoRenamerConfig.Instance.);
 }