예제 #1
0
        private void TrvTablesAfterSelect(object sender, TreeViewEventArgs e)
        {
            if (e.Node.Tag == null)
            {
                return;
            }
            var current = e.Node.Tag as AttributeValue;

            UpdateDataGrid(current);
            if (current.DataType == AttributeDataType.Integer)
            {
                var value = (uint)(int)current.Data;
                m_rtbCurrentUCS.Text = UCSManager.HasString(value) ? UCSManager.GetString(value) : string.Empty;
            }
        }
예제 #2
0
        private void DgvValuesSelectionChanged(object sender, EventArgs e)
        {
            if (m_dgvValues.SelectedRows.Count <= 0)
            {
                return;
            }
            DataGridViewRow row = m_dgvValues.SelectedRows[0];

            if ((row.Cells[2].Value as string) == "int")
            {
                var value = (uint)int.Parse(row.Cells[1].Value.ToString());
                m_rtbCurrentUCS.Text = UCSManager.HasString(value) ? UCSManager.GetString(value) : string.Empty;
            }
            else
            {
                m_rtbCurrentUCS.Text = string.Empty;
            }
        }