Пример #1
0
        private void buttonAnalyzeConflict_Click(object sender, EventArgs e)
        {
            if (listBoxConflicts.SelectedItem == null)
            {
                MessageBox.Show("Select an Item First");
                return;
            }
            SyncContainer conflict = (SyncContainer)listBoxConflicts.SelectedItem;
            AnalyzeForm   a        = new AnalyzeForm(conflict);

            a.ShowDialog();
            ISerializableObject solution = a.solution;

            if (solution != null)
            {
                conflict.Resolve(solution);
                listBoxConflictResolved.Items.Add(conflict);
                listBoxConflicts.Items.Remove(conflict);
            }
        }
Пример #2
0
 private void buttonAnalyzeConflict_Click(object sender, EventArgs e)
 {
     if (listBoxConflicts.SelectedItem == null)
     {
         MessageBox.Show("Select an Item First");
         return;
     }
     SyncContainer conflict = (SyncContainer)listBoxConflicts.SelectedItem;
     AnalyzeForm a= new AnalyzeForm(conflict);
     a.ShowDialog();
     ISerializableObject solution =a.solution;
     if (solution != null)
     {
         conflict.Resolve(solution);
         listBoxConflictResolved.Items.Add(conflict);
         listBoxConflicts.Items.Remove(conflict);
     }
 }