private void ReplaceStackObjects(int index1, int index2) { System.Windows.Controls.Label lbl1 = (System.Windows.Controls.Label)operationStack.Children[index1]; System.Windows.Controls.Label lbl2 = (System.Windows.Controls.Label)operationStack.Children[index2]; operationStack.Children.Remove(lbl1); operationStack.Children.Remove(lbl2); operationStack.Children.Insert(index1, lbl2); operationStack.Children.Insert(index2, lbl1); IMageManipulation op1 = manipulations[index1]; IMageManipulation op2 = manipulations[index2]; manipulations.Remove(op1); manipulations.Remove(op2); manipulations.Insert(index1, op2); manipulations.Insert(index2, op1); }
private void PerformManiplation(IMageManipulation manipulation, ref Bitmap bmp) { bmp = manipulation.PerformManipuation(); }