AtelierElieScripter.DialogueChoices.DialogueChoicesControl.UpdateSelectedBlockRow C# (CSharp) Метод

UpdateSelectedBlockRow() приватный Метод

private UpdateSelectedBlockRow ( ) : void
Результат void
        void UpdateSelectedBlockRow()
        {
            int i = Int32.Parse(custListViewMain.SelectedItems[0].SubItems[0].Text);
            int j = Int32.Parse(custListViewBlock.SelectedItems[0].SubItems[0].Text);

            int textDone = dialogueChoicesModule.MainBlocks[i, j].CountDone;
            int textTotal = dialogueChoicesModule.MainBlocks[i, j].CountTotal;

            int textPerct = 100;
            try
            {
                textPerct = (int)(((double)textDone / textTotal) * 100);
            }
            catch (DivideByZeroException)
            {
                // Do Nothing
            }

            string textNotes = dialogueChoicesModule.MainBlocks[i, j].NotesText.Replace(Environment.NewLine, "  ");

            custListViewBlock.Items[j].SubItems[1].Text = textDone.ToString();
            custListViewBlock.Items[j].SubItems[2].Text = textTotal.ToString();
            custListViewBlock.Items[j].SubItems[3].Text = textPerct.ToString();
            custListViewBlock.Items[j].SubItems[4].Text = textNotes;
        }