Ejemplo n.º 1
0
        private void mx_updThemeRow_Click(object sender, RoutedEventArgs e)
        {
            if (mx_lbTheme.SelectedItem != null && mx_lbTheme.SelectedItem is ListBoxItem)
            {
                ListBoxItem lbi = (ListBoxItem)mx_lbTheme.SelectedItem;
                SetSettingRowWin winSetRow = new SetSettingRowWin(lbi, m_mapLbiThemeRow, false);

                winSetRow.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void mx_addThemeRow_Click(object sender, RoutedEventArgs e)
        {
            XmlNode xnTheme = m_docXml.DocumentElement.SelectSingleNode("ThemeSetting");

            if (xnTheme != null)
            {
                XmlElement xeRow = m_docXml.CreateElement("row");

                xnTheme.AppendChild(xeRow);
                if (m_mapLbiThemeRow != null)
                {
                    ListBoxItem lbiRow = new ListBoxItem();
                    SetSettingRowWin winSetRow;

                    m_mapLbiThemeRow.Add(lbiRow, xeRow);
                    mx_lbTheme.Items.Add(lbiRow);
                    winSetRow = new SetSettingRowWin(lbiRow, m_mapLbiThemeRow);
                    winSetRow.ShowDialog();

                    if (lbiRow != null && (lbiRow.Content == null || lbiRow.Content.ToString() == ""))
                    {
                        delSettingRow(lbiRow, m_mapLbiThemeRow);
                    }
                }
            }
        }