private void addAliasAndColorMappingButton_Click(object sender, EventArgs e)
        {
            AnnotationSettingsAddEditDialog dialog = new AnnotationSettingsAddEditDialog(ownerGraphForm.ZedGraphControl.GraphPane.Chart.Fill.Color);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                aliasAndColorMappingListBox.Items.Add(
                    new LabelToAliasAndColorListItem(
                        new Map <string, Pair <string, Color> > .MapPair(dialog.label,
                                                                         new Pair <string, Color>(dialog.alias, dialog.color))));
            }
        }
        private void editAliasAndColorMappingButton_Click(object sender, EventArgs e)
        {
            LabelToAliasAndColorListItem    item   = (LabelToAliasAndColorListItem)aliasAndColorMappingListBox.SelectedItem;
            AnnotationSettingsAddEditDialog dialog = new AnnotationSettingsAddEditDialog(ownerGraphForm.ZedGraphControl.GraphPane.Chart.Fill.Color, item.mapPair.Key, item.mapPair.Value.first, item.mapPair.Value.second);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                if (item.mapPair.Key == dialog.label)
                {
                    item.mapPair.Value.first  = dialog.alias;
                    item.mapPair.Value.second = dialog.color;
                }
                else
                {
                    aliasAndColorMappingListBox.Items.RemoveAt(aliasAndColorMappingListBox.SelectedIndex);
                    aliasAndColorMappingListBox.Items.Add(
                        new LabelToAliasAndColorListItem(
                            new Map <string, Pair <string, Color> > .MapPair(dialog.label,
                                                                             new Pair <string, Color>(dialog.alias, dialog.color))));
                }
                aliasAndColorMappingListBox.Refresh();
            }
        }
		private void editAliasAndColorMappingButton_Click( object sender, EventArgs e )
		{
			LabelToAliasAndColorListItem item = (LabelToAliasAndColorListItem) aliasAndColorMappingListBox.SelectedItem;
			AnnotationSettingsAddEditDialog dialog = new AnnotationSettingsAddEditDialog( ownerGraphForm.ZedGraphControl.GraphPane.Chart.Fill.Color, item.mapPair.Key, item.mapPair.Value.first, item.mapPair.Value.second );
			if( dialog.ShowDialog() == DialogResult.OK )
			{
				if( item.mapPair.Key == dialog.label )
				{
					item.mapPair.Value.first = dialog.alias;
					item.mapPair.Value.second = dialog.color;
				} else
				{
					aliasAndColorMappingListBox.Items.RemoveAt( aliasAndColorMappingListBox.SelectedIndex );
					aliasAndColorMappingListBox.Items.Add(
					new LabelToAliasAndColorListItem(
						new Map<string, Pair<string, Color>>.MapPair( dialog.label,
							new Pair<string, Color>( dialog.alias, dialog.color ) ) ) );
				}
				aliasAndColorMappingListBox.Refresh();
			}
		}
		private void addAliasAndColorMappingButton_Click( object sender, EventArgs e )
		{
			AnnotationSettingsAddEditDialog dialog = new AnnotationSettingsAddEditDialog( ownerGraphForm.ZedGraphControl.GraphPane.Chart.Fill.Color );
			if( dialog.ShowDialog() == DialogResult.OK )
			{
				aliasAndColorMappingListBox.Items.Add(
					new LabelToAliasAndColorListItem(
						new Map<string, Pair<string, Color>>.MapPair( dialog.label,
							new Pair<string, Color>( dialog.alias, dialog.color ) ) ) );
			}
		}