Ejemplo n.º 1
0
        private void mx_updResolutionRow_Click(object sender, RoutedEventArgs e)
        {
            if (mx_lbResolution.SelectedItem != null && mx_lbResolution.SelectedItem is ListBoxItem)
            {
                ListBoxItem lbi = (ListBoxItem)mx_lbResolution.SelectedItem;
                SetResolutionWin winSetRlt = new SetResolutionWin(lbi, false);

                winSetRlt.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void mx_addResolutionRow_Click(object sender, RoutedEventArgs e)
        {
            XmlNode xnRst = m_docXml.DocumentElement.SelectSingleNode("ResolutionSetting");

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

                xnRst.AppendChild(xeRow);
                if(m_mapLbiResolutionRow != null)
                {
                    ListBoxItem lbiRow = new ListBoxItem();
                    SetResolutionWin winSetRlt;

                    m_mapLbiResolutionRow.Add(lbiRow, xeRow);
                    mx_lbResolution.Items.Add(lbiRow);
                    winSetRlt = new SetResolutionWin(lbiRow);
                    winSetRlt.ShowDialog();

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