public void BaseButtonReceiver(int viewIndex) { int temp1 = converterManager.firstIndex; int temp2 = converterManager.secondIndex; if (viewIndex == -1) { temp1 = temp2 = -1; } else if (temp1 == -1) { temp1 = viewIndex; } else if (temp2 == -1) { temp2 = viewIndex; converterManager.baseButton[temp1].SwapButton(converterManager.baseButton[temp2]); temp1 = temp2 = -1; converterManager.ResetConverter(); } converterManager.firstIndex = temp1; converterManager.secondIndex = temp2; }