Esempio n. 1
0
        private void HandleCommitCommand()
        {
            ChartStyleModule item = chartTables[selectedSymbolType].First(p => p.Rcid == editionSymbolItem.Rcid);

            item.Commands.Clear();
            foreach (EditionStringField command in editionSymbolItem.EditionCommands)
            {
                item.Commands.Add(command.StringField);
            }
            s52ResourceFilesAnalyst.UpdateChartTableEntry(selectedSymbolType, item);
            SymbolItem selectedItemCache = SelectedSymbolItem;

            LoadSymbolList();
            SelectedSymbolItem = selectedItemCache;
            MessageBox.Show("Commit succeed.", string.Empty, MessageBoxButton.OK, MessageBoxImage.Information);
        }
Esempio n. 2
0
        public object Clone()
        {
            Dictionary <char, string> colorReferences = new Dictionary <char, string>();

            foreach (KeyValuePair <char, string> item in this.colorReferences)
            {
                colorReferences.Add(item.Key, item.Value);
            }

            Collection <string> commands = new Collection <string>();

            foreach (string item in this.commands)
            {
                commands.Add(item);
            }
            SymbolItem symbolItem = new SymbolItem(rcid, boundingBox, colorReferences, commands, commandType, name, pivot, upperLeft);

            return(symbolItem);
        }