Exemplo n.º 1
0
        public AreaItemControl()
        {
            LayoutRoot = new Grid();
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()
            {
                Width = GridLength.Auto
            });
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()
            {
                Width = GridLength.Auto
            });
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()
            {
                Width = GridLength.Auto
            });
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition()
            {
                Width = GridLength.Auto
            });

            Border border = new Border();

            border.BorderBrush     = new SolidColorBrush(Colors.DarkGray);
            border.BorderThickness = new Thickness(1);
            border.Padding         = new Thickness(2);
            border.Child           = LayoutRoot;

            m_ItemCtrl = new HeaderControl();
            LayoutRoot.Children.Add(m_ItemCtrl);

            m_MoveUpButton         = new RanetHotButton();
            m_MoveUpButton.Click  += new RoutedEventHandler(m_MoveUpButton_Click);
            m_MoveUpButton.Width   = 18;
            m_MoveUpButton.Height  = 18;
            m_MoveUpButton.Content = UiHelper.CreateIcon(UriResources.Images.Up16);
            LayoutRoot.Children.Add(m_MoveUpButton);
            Grid.SetColumn(m_MoveUpButton, 2);

            m_MoveDownButton         = new RanetHotButton();
            m_MoveDownButton.Click  += new RoutedEventHandler(m_MoveDownButton_Click);
            m_MoveDownButton.Width   = 18;
            m_MoveDownButton.Height  = 18;
            m_MoveDownButton.Content = UiHelper.CreateIcon(UriResources.Images.Down16);
            LayoutRoot.Children.Add(m_MoveDownButton);
            Grid.SetColumn(m_MoveDownButton, 3);

            m_RemoveButton         = new RanetHotButton();
            m_RemoveButton.Click  += new RoutedEventHandler(m_RemoveButton_Click);
            m_RemoveButton.Width   = 18;
            m_RemoveButton.Height  = 18;
            m_RemoveButton.Content = UiHelper.CreateIcon(UriResources.Images.RemoveHot16);
            LayoutRoot.Children.Add(m_RemoveButton);
            Grid.SetColumn(m_RemoveButton, 4);

            this.Content = border;

            this.MouseLeave += new MouseEventHandler(OnMouseLeave);
            this.MouseEnter += new MouseEventHandler(OnMouseEnter);
        }
Exemplo n.º 2
0
        ///<summary>
        /// Создается объект, описывающий отображение добавления <see cref="ModificationItem"/>
        ///</summary>
        private ModificationItemAdding()
        {
            Dock           = DockStyle.Fill;
            BackColor      = Css.CommonAppearance.Colors.BackColor;
            footerControl  = new FooterControl();
            headerControl  = new HeaderControl();
            aircraftHeader = new AircraftHeaderControl();
            mainPanel      = new Panel();

            modificationItemControl = new ModificationItemControl();

            modificationItemContainer = new ExtendableRichContainer();

            aircraftHeader.OperatorClickable = true;
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ButtonReload.Icon           = icons.SaveAndAdd;
            headerControl.ButtonReload.IconNotEnabled = icons.SaveAndAddGray;
            headerControl.ButtonReload.IconLayout     = ImageLayout.Center;
            headerControl.ButtonReload.TextMain       = "Save and";
            headerControl.ButtonReload.TextSecondary  = "add another";
            headerControl.ButtonReload.Click         += buttonSaveAndAdd_Click;

            headerControl.ButtonEdit.Icon                = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled      = icons.SaveGray;
            headerControl.ButtonEdit.IconLayout          = ImageLayout.Center;
            headerControl.ButtonEdit.ReflectionType      = ReflectionTypes.DisplayInCurrent;
            headerControl.ButtonEdit.TextMain            = "Save";
            headerControl.ButtonEdit.TextSecondary       = "and Edit";
            headerControl.ButtonEdit.DisplayerRequested += buttonSaveAndEdit_DisplayerRequested;
            headerControl.TabIndex = 0;
            //
            // mainPanel
            //
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.AutoScroll = true;
            mainPanel.TabIndex   = 1;
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // modificationItemContainer
            //
            modificationItemContainer.Dock          = DockStyle.Top;
            modificationItemContainer.UpperLeftIcon = icons.GrayArrow;
            modificationItemContainer.Caption       = "Modification Item";
            modificationItemContainer.MainControl   = modificationItemControl;
            modificationItemContainer.TabIndex      = 0;


            mainPanel.Controls.Add(modificationItemContainer);

            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);
        }
Exemplo n.º 3
0
        protected override void CreateControlHierarchy()
        {
            base.CreateControlHierarchy();

            CellHeaderContent.ID = RoundPanel.GetRoundPanelHeaderID();

            if (RoundPanel.HeaderTemplate == null)
            {
                HeaderControl.Clear();

                HeaderControl.Add(
                    HeaderTable          = RenderUtils.CreateTable().Add(
                        HeaderContentRow = RenderUtils.CreateTableRow()
                        )
                    );

                if (RoundPanel.HeaderImage.IsEmpty == false)
                {
                    CreateHeaderImageBlock();
                }

                CreateHeaderTextBlock();
                CreateHeaderECButton();
                CreateECStateControl();
            }
        }
Exemplo n.º 4
0
        ///<summary>
        /// Создается объект, описывающий отображение длбавление директивы
        ///</summary>
        private DispatcheredDirectiveAdding()
        {
            InitializeComponent();
            Dock           = DockStyle.Fill;
            BackColor      = Css.CommonAppearance.Colors.BackColor;
            footerControl  = new FooterControl();
            headerControl  = new HeaderControl();
            aircraftHeader = new AircraftHeaderControl();
            mainPanel      = new Panel();

            generalDataAndPerformanceControl      = new DirectiveInformationControl();
            generalDataAndPerformanceControl.Mode = DetailInformationMode.Edit;


            attributesAndParametersControl      = new DirectiveAttributesControl();
            attributesAndParametersControl.Mode = DetailInformationMode.Edit;

            generalDataAndPerformanceContainer = new ExtendableRichContainer();
            attributesAndParametersContainer   = new ExtendableRichContainer();

            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.TopicID                 = "Directive Info";
            headerControl.EditDisplayerText       = "Edit Aircraft";
            headerControl.EditReflectionType      = ReflectionTypes.DisplayInNew;
            headerControl.EditDisplayerRequested += new EventHandler <ReferenceEventArgs>(headerControl_EditDisplayerRequested);
            headerControl.ReloadRised            += new EventHandler(headerControl_ReloadRised);
            headerControl.ButtonEdit.TextMain     = "Save";
            headerControl.ButtonEdit.Icon         = icons.Save;
            headerControl.ButtonReload.TextMain   = "Reset";
            //
            // mainPanel
            //
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.AutoScroll = true;
            //
            // generalDataAndPerformanceContainer
            //
            generalDataAndPerformanceContainer.Dock          = DockStyle.Top;
            generalDataAndPerformanceContainer.UpperLeftIcon = icons.GrayArrow;
            generalDataAndPerformanceContainer.Caption       = "General data and Performance";
            generalDataAndPerformanceContainer.MainControl   = generalDataAndPerformanceControl;
            //
            // attributesAndParametersContainer
            //
            attributesAndParametersContainer.Dock          = DockStyle.Top;
            attributesAndParametersContainer.UpperLeftIcon = icons.GrayArrow;
            attributesAndParametersContainer.Caption       = "Attributes and additional parameters";
            attributesAndParametersContainer.MainControl   = attributesAndParametersControl;

            mainPanel.Controls.Add(attributesAndParametersContainer);
            mainPanel.Controls.Add(generalDataAndPerformanceContainer);

            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);
        }
Exemplo n.º 5
0
        public FolderManager2(HeaderControl hcCurrent, HeaderControl hcRevision)
        {
            hc[CURRENT.Value()]  = hcCurrent;
            hc[REVISION.Value()] = hcRevision;

            hc[CURRENT.Value()].FolderRoute.PathChange += OnCurrentPathChangeEvent;

            this.hcCurrent  = hcCurrent;
            this.hcRevision = hcRevision;

            hcCurrent.FolderRoute.PathChange += OnCurrentPathChangeEvent;

//			hcCurrent.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcCurrent.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcCurrent.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcCurrent.SetHistoryEventHandler(OnRevisionHistoryEvent);
//
//			hcRevision.SetPathChangeEventHandler(OnRevisionPathChangeEvent);
//			hcRevision.SetSelectFolderEventHandler(OnRevisionSelectFolderEvent);
//			hcRevision.SetFavoritesEventHandler(OnRevisionFavoriteEvent);
//			hcRevision.SetHistoryEventHandler(OnRevisionHistoryEvent);

            ConfigSavedFolders();

            SavedFoldersDebugSupport.Instance.
            ConfigSavedFoldersDebugSupport(svfMgr[HISTORY.Value()], svfMgr[FAVORITES.Value()]);

            getPriorFolder();

            configHeader(this.hcCurrent);
            configHeader(this.hcRevision);
        }
Exemplo n.º 6
0
 private void InitializeComponent()
 {
     mainPanel            = new Panel();
     headerControl        = new HeaderControl();
     footerControl        = new FooterControl();
     buttonDeleteOperator = new RichReferenceButton();
     //
     // mainPanel
     //
     mainPanel.AutoScroll = true;
     mainPanel.Dock       = DockStyle.Fill;
     //
     // headerControl
     //
     headerControl.Controls.Add(operatorHeaderControl);
     headerControl.ActionControl.ButtonEdit.TextMain       = "Save";
     headerControl.ActionControl.ButtonEdit.Icon           = icons.Save;
     headerControl.ActionControl.ButtonEdit.IconNotEnabled = icons.SaveGray;
     headerControl.EditReflectionType      = ReflectionTypes.DisplayInCurrent;
     headerControl.EditDisplayerRequested += headerControl_SaveClicked;
     headerControl.ReloadRised            += headerControl_ReloadRised;
     //headerControl.ContextActionControl.ButtonHelp.TopicID = "aircrafts.html";
     //
     // footerControl
     //
     footerControl.AutoSize     = true;
     footerControl.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     footerControl.Dock         = DockStyle.Bottom;
     //
     // buttonDeleteOperator
     //
     buttonDeleteOperator.Anchor             = AnchorStyles.Right | AnchorStyles.Top;
     buttonDeleteOperator.BackColor          = Color.Transparent;
     buttonDeleteOperator.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
     buttonDeleteOperator.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
     buttonDeleteOperator.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
     buttonDeleteOperator.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
     buttonDeleteOperator.Location           = new Point(mainPanel.Right - 160, 0);
     buttonDeleteOperator.Icon                = icons.Delete;
     buttonDeleteOperator.IconNotEnabled      = icons.DeleteGray;
     buttonDeleteOperator.IconLayout          = ImageLayout.Center;
     buttonDeleteOperator.PaddingMain         = new Padding(3, 0, 0, 0);
     buttonDeleteOperator.ReflectionType      = ReflectionTypes.CloseSelected;
     buttonDeleteOperator.Size                = new Size(160, 50);
     buttonDeleteOperator.TabIndex            = 16;
     buttonDeleteOperator.TextAlignMain       = ContentAlignment.MiddleLeft;
     buttonDeleteOperator.TextAlignSecondary  = ContentAlignment.TopLeft;
     buttonDeleteOperator.TextMain            = "Delete";
     buttonDeleteOperator.TextSecondary       = "operator";
     buttonDeleteOperator.DisplayerRequested += buttonDeleteOperator_DisplayerRequested;
     //
     // OperatorScreen
     //
     mainPanel.Controls.Add(buttonDeleteOperator);
     mainPanel.Controls.Add(operatorControl);
     Controls.Add(mainPanel);
     Controls.Add(headerControl);
     Controls.Add(footerControl);
 }
Exemplo n.º 7
0
        }         //class HeaderControl


        /// <summary>
        /// When the control is created capture the messages for the header.
        /// </summary>
        protected override void OnCreateControl()
        {
            //First actually create the control.
            base.OnCreateControl();

            //Now create the HeaderControl class to handle the customization of
            //the header messages.
            hdrCtrl = new HeaderControl(this);
        }         //OnCreateControl()
Exemplo n.º 8
0
        private void Initialize()
        {
            components    = new Container();
            AutoScaleMode = AutoScaleMode.Font;

            footerControl             = new FooterControl();
            header                    = new HeaderControl();
            aircraftHeader            = new AircraftHeaderControl(currentAircraft, true);
            aircraftsLogBookContainer = new ExtendableRichContainer();
            aircraftLogBookControl    = new AircraftsLogBookControl(currentAircraft);
            panelLogBookScreen        = new Panel();
            //
            // header
            //
            header.BackColor       = Color.Transparent;
            header.BackgroundImage = Resources.HeaderBar;
            header.Controls.Add(aircraftHeader);
            header.Dock = DockStyle.Top;
            //
            // aircraftHeader
            //
            aircraftHeader.BackColor         = Color.Transparent;
            aircraftHeader.BackgroundImage   = Resources.HeaderBar;
            aircraftHeader.Location          = new Point(0, 0);
            aircraftHeader.Size              = new Size(319, 58);
            aircraftHeader.AircraftClickable = true;
            //
            //  panelDirectiveScreen
            //
            panelLogBookScreen.AutoScroll = true;
            panelLogBookScreen.Dock       = DockStyle.Fill;
            panelLogBookScreen.Controls.Add(aircraftsLogBookContainer);
            //
            // aircraftsLogBookContainer
            //
            aircraftsLogBookContainer.LabelCaption.Cursor = Cursors.Hand;
            aircraftsLogBookContainer.Dock = DockStyle.Top;
            aircraftsLogBookContainer.labelCaption.Margin   = new Padding(3, marginTop, 3, marginBottom);
            aircraftsLogBookContainer.LabelCaption.Text     = currentAircraft.RegistrationNumber + ". Log book";
            aircraftsLogBookContainer.MainControl           = aircraftLogBookControl;
            aircraftsLogBookContainer.pictureBoxIcon.Margin = new Padding(3, marginTop, 3, marginBottom);
            aircraftsLogBookContainer.UpperLeftIcon         = icons.GrayArrow;
            //
            // footerControl
            //
            footerControl.BackColor = Color.Transparent;
            footerControl.Dock      = DockStyle.Bottom;
            footerControl.Name      = "footerControl";
            //
            //  this
            //
            Controls.Add(panelLogBookScreen);
            Controls.Add(header);
            Controls.Add(footerControl);
        }
Exemplo n.º 9
0
 private void EnableView(HeaderControl control, bool enable)
 {
     if (control.Enabled != enable)
     {
         control.Enabled = enable;
         foreach (Control c in control.Controls)
         {
             c.Enabled = enable;
         }
     }
 }
Exemplo n.º 10
0
 protected override void OnHandleCreated(EventArgs e)
 {
     //Create a new HeaderControl object
     header = new HeaderControl(this);
     if (header.Handle != IntPtr.Zero)
     {
         //if(headerImages != null)//If we have a valid header handle and a valid ImageList for it
         //send a message HDM_SETIMAGELIST
         Win32.SendMessage(header.Handle, 0x1200 + 8, IntPtr.Zero, header.Handle);
     }
     base.OnHandleCreated(e);
 }
Exemplo n.º 11
0
		public ListView ()
		{
			background_color = Color.White;//ThemeEngine.Current.ColorWindow;
			groups = new ListViewGroupCollection (this);
			items = new ListViewItemCollection (this);
			items.Changed += new CollectionChangedHandler (OnItemsChanged);
			checked_indices = new CheckedIndexCollection (this);
			checked_items = new CheckedListViewItemCollection (this);
			columns = new ColumnHeaderCollection (this);
			foreground_color = SystemColors.WindowText;
			selected_indices = new SelectedIndexCollection (this);
			selected_items = new SelectedListViewItemCollection (this);
			items_location = new Point [16];
			items_matrix_location = new ItemMatrixLocation [16];
			reordered_items_indices = new int [16];
			item_tooltip = new ToolTip ();
			item_tooltip.Active = false;
			insertion_mark = new ListViewInsertionMark (this);

			InternalBorderStyle = BorderStyle.Fixed3D;

			header_control = new HeaderControl (this);
			header_control.Visible = false;
			Controls.AddImplicit (header_control);

			item_control = new ItemControl (this);
			Controls.AddImplicit (item_control);

			h_marker = v_marker = 0;
			keysearch_tickcnt = 0;

			// scroll bars are disabled initially
			
			h_scroll.Visible = false;
			//h_scroll.ValueChanged += new EventHandler(HorizontalScroller);
			v_scroll.Visible = false;
			//v_scroll.ValueChanged += new EventHandler(VerticalScroller);

			// event handlers
			base.KeyDown += new KeyEventHandler(ListView_KeyDown);
			SizeChanged += new EventHandler (ListView_SizeChanged);
			//GotFocus += new EventHandler (FocusChanged);
			//LostFocus += new EventHandler (FocusChanged);
			//MouseWheel += new MouseEventHandler(ListView_MouseWheel);
			//MouseEnter += new EventHandler (ListView_MouseEnter);
			Invalidated += new InvalidateEventHandler (ListView_Invalidated);

			BackgroundImageTiled = false;

			this.SetStyle (ControlStyles.UserPaint | ControlStyles.StandardClick
				| ControlStyles.UseTextForAccessibility
				, false);
		}
Exemplo n.º 12
0
        /// <summary>
        /// Adds the default tools to the given header.
        /// </summary>
        /// <param name="header">IHeaderControl the default tools should be added to.</param>
        public void Initialize(IHeaderControl header)
        {
            if (header == null)
            {
                throw new ArgumentNullException(nameof(header));
            }

            _header = header as HeaderControl;
            AddItems(header);
            OnAppMapChanged(new MapChangedEventArgs(null, App.Map));

            DefaultMenuBarCulture = new CultureInfo(string.Empty);
        }
 public void Connect(Pivot pivot, HeaderControl headerOldTrainingDate, Action <EntryObjectDTO> ShowOldTraining, MultiselectList previewList)
 {
     this.pivot                             = pivot;
     pivot.SelectionChanged                -= new SelectionChangedEventHandler(pivot_SelectionChanged);
     pivot.SelectionChanged                += new SelectionChangedEventHandler(pivot_SelectionChanged);
     this.previewList                       = previewList;
     previewList.SelectionChanged          -= lstOldItems_SelectionChanged;
     previewList.IsSelectionEnabledChanged -= lstOldItems_IsSelectionEnabledChanged;
     previewList.SelectionChanged          += lstOldItems_SelectionChanged;
     previewList.IsSelectionEnabledChanged += lstOldItems_IsSelectionEnabledChanged;
     this.headerOldTrainingDate             = headerOldTrainingDate;
     this.ShowOldTraining                   = ShowOldTraining;
 }
Exemplo n.º 14
0
        public ServerExplorerCtrl()
        {
            m_CubeBrowser        = new CubeBrowserCtrl();
            m_CubeBrowser.Margin = new Thickness(0, 3, 0, 0);

            Border border = new Border()
            {
                BorderBrush = new SolidColorBrush(Colors.DarkGray), BorderThickness = new Thickness(1)
            };
            Grid LayoutRoot = new Grid()
            {
                Margin = new Thickness(3)
            };

            LayoutRoot.RowDefinitions.Add(new RowDefinition()
            {
                Height = GridLength.Auto
            });
            LayoutRoot.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(22)
            });
            LayoutRoot.RowDefinitions.Add(new RowDefinition());

            var cubesComboHeader = new HeaderControl(UriResources.Images.Cube16, Localization.MdxDesigner_Cube)
            {
                Margin = new Thickness(0, 5, 0, 3)
            };

            Cubes_ComboBox = new ComboBoxEx();
            Cubes_ComboBox.SelectionChanged += new SelectionChangedEventHandler(Cubes_ComboBox_SelectionChanged);

            LayoutRoot.Children.Add(cubesComboHeader);
            LayoutRoot.Children.Add(Cubes_ComboBox);
            Grid.SetRow(Cubes_ComboBox, 1);
            LayoutRoot.Children.Add(m_CubeBrowser);
            Grid.SetRow(m_CubeBrowser, 2);

            border.Child = LayoutRoot;
            base.Content = border;

            m_OlapDataLoader = GetOlapDataLoader();

            m_CubeBrowser.OlapDataLoader = GetOlapDataLoader();

            m_CubeBrowser.SelectedItemChanged += new EventHandler <ItemEventArgs>(m_CubeBrowser_SelectedItemChanged);

            Cubes_ComboBox.IsEnabled = false;
            m_CubeBrowser.IsEnabled  = false;
        }
Exemplo n.º 15
0
        public ViewForm()
        {
            editor     = new StandardEditor(Settings.Get <EditorSettings>());
            statusBar  = new StatusBarControl(editor);
            commandBar = new CommandBarControl(editor);
            header     = new HeaderControl(editor);
            Initialize();

            if (!ReadState())
            {
                Width  = 800 * Dpi.GetWidth(1);
                Height = 600 * Dpi.GetWidth(1);
            }
        }
Exemplo n.º 16
0
        private void InitializeComponents()
        {
            TabPage    detailPage = new System.Windows.Forms.TabPage();
            TabPage    limitPage  = new System.Windows.Forms.TabPage();
            TabControl tabControl = new System.Windows.Forms.TabControl();

            detailPage.Dock      = System.Windows.Forms.DockStyle.Fill;
            detailPage.BackColor = System.Drawing.SystemColors.Control;
            detailPage.Name      = "detailPage";
            detailPage.Text      = "Account Information";
            detailPage.Controls.AddRange(new Control [] { new AccountDetail(controller) });

            limitPage.Dock      = System.Windows.Forms.DockStyle.Fill;
            limitPage.BackColor = System.Drawing.SystemColors.Control;
            limitPage.Name      = "limitPage";
            limitPage.Text      = "Instrument Limits";
            limitPage.Controls.AddRange(new Control [] { new AccountLimitList(controller) });

            tabControl.Dock      = System.Windows.Forms.DockStyle.Fill;
            tabControl.BackColor = System.Drawing.SystemColors.Control;
            tabControl.Name      = "tabControl";

            tabControl.Controls.AddRange(new Control [] { detailPage, limitPage });

            //
            //  Controls
            //

            this.accountLimitControl            = new HeaderControl();
            this.accountLimitControl.AutoScroll = true;
            this.accountLimitControl.SuspendLayout();
            this.accountLimitControl.Padding     = new Padding(6, 24, 6, 6);
            this.accountLimitControl.HeaderStyle = HeaderStyle.SubHeading;
            this.accountLimitControl.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.accountLimitControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.accountLimitControl.Location    = new System.Drawing.Point(167, 4);
            this.accountLimitControl.Name        = "accountLimitControl";
            this.accountLimitControl.Size        = new System.Drawing.Size(160, 120);
            this.accountLimitControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.accountLimitControl.TabIndex    = 0;
            this.accountLimitControl.Text        = "";
            this.accountLimitControl.Controls.Add(tabControl);
            this.Controls.AddRange(new Control [] { accountLimitControl });
            this.accountLimitControl.ResumeLayout(false);
        }
Exemplo n.º 17
0
        private void RefreshCurrentArticle()
        {
            Dispatcher.BeginInvoke(() =>
            {
                this.progressBar.Visibility = Visibility.Collapsed;
                this.articleContent         = new List <UIElement>();

                var header = new HeaderControl();
                if (settingManager.night_mode)
                {
                    Color f = Color.FromArgb(0xff,
                                             (byte)((Double.Parse(settingManager.night_light) / 100) * 0xEE + 0x11),
                                             (byte)((Double.Parse(settingManager.night_light) / 100) * 0xEE + 0x11),
                                             (byte)((Double.Parse(settingManager.night_light) / 100) * 0xEE + 0x11));
                    header.title.Foreground  = new SolidColorBrush(f);
                    header.line.Visibility   = Visibility.Collapsed;
                    header.source.Foreground = new SolidColorBrush(f);
                }
                if (this.settingManager.night_mode)
                {
                    header.SetTitleSize(false);
                }
                else
                {
                    header.SetTitleSize(true);
                }

                this.articleContent.Add(header);

                header.SetTitle(this.apiManager.currentArticle.title, this.apiManager.currentArticle.source, int.Parse(this.settingManager.article_size));

                var rich  = new HtmlToRichText(articleContent);
                rich.size = int.Parse(this.settingManager.article_size);
                rich.html = this.apiManager.currentArticle.body;
                rich.Parse();

                var footer = new FooterControl(this.apiManager.currentArticle.likes);
                this.articleContent.Add(footer);

                this.ArticleOutStoryboard.Begin();
            });
        }
Exemplo n.º 18
0
        private void InitializeComponents()
        {
            this.positionHeaderControl            = new HeaderControl();
            this.positionHeaderControl.AutoScroll = true;
            this.positionHeaderControl.SuspendLayout();
            this.positionHeaderControl.HeaderStyle = HeaderStyle.SubHeading;
            this.positionHeaderControl.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.positionHeaderControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.positionHeaderControl.Location    = new System.Drawing.Point(167, 4);
            this.positionHeaderControl.Name        = "positionHeaderControl";
            this.positionHeaderControl.Size        = new System.Drawing.Size(160, 120);
            this.positionHeaderControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.positionHeaderControl.TabIndex    = 0;
            this.positionHeaderControl.Text        = "Account Positions";
            this.positionHeaderControl.Controls.Add(new PositionIntradayList(controller));

            this.Controls.AddRange(new Control [] { positionHeaderControl });

            this.positionHeaderControl.ResumeLayout(false);
        }
Exemplo n.º 19
0
 protected override void OnHandleCreated(EventArgs e)
 {
     //Create a new HeaderControl object
     header = new HeaderControl(this);
     if (header.Handle != IntPtr.Zero)
     {
         if (headerImages != null)               //If we have a valid header handle and a valid ImageList for it
         //send a message HDM_SETIMAGELIST
         {
             Win32.SendMessage(header.Handle, 0x1200 + 8, IntPtr.Zero, headerImages.Handle);
         }
         //Insert all the columns in Columns collection
         if (this.Columns.Count > 0)
         {
             InsertColumns();
         }
     }
     base.OnHandleCreated(e);
     SetFlatScrollBar();
 }
Exemplo n.º 20
0
        /// <summary>
        /// As soon as the handle for the ListView object is created we query the
        /// version of comctrl.dll and create the HeaderControl object.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnHandleCreated(EventArgs e)
        {
            // create arrow images if neccessary
            useNativeArrows = ComCtlDllSupportsArrows();
            if (!useNativeArrows)
            {
                imgList                  = new ImageList();
                imgList.ImageSize        = new Size(8, 8);
                imgList.TransparentColor = Color.Magenta;

                imgList.Images.Add(GetArrowBitmap(ArrowType.Ascending));                // Add ascending arrow
                imgList.Images.Add(GetArrowBitmap(ArrowType.Descending));               // Add descending arrow

                SetHeaderImageList(this, imgList);
            }

            // create a new HeaderControl object
            headerControl            = new HeaderControl(this);
            headerControl.MouseDown += new InZync.SyncListView.HeaderControl.MouseDownEventHandler(header_MouseDown);
            base.OnHandleCreated(e);
        }
        public PivotAreaContainer()
        {
            LayoutRoot = new Grid();
            LayoutRoot.RowDefinitions.Add(new RowDefinition()
            {
                Height = GridLength.Auto
            });
            LayoutRoot.RowDefinitions.Add(new RowDefinition());

            m_Header = new HeaderControl()
            {
                Margin = new Thickness(0, 0, 0, 3)
            };
            LayoutRoot.Children.Add(m_Header);

            m_ItemsList                        = new AreaItemsList();
            m_ItemsList.ItemRemoved           += new EventHandler <AreaItemArgs>(m_ItemsList_ItemRemoved);
            m_ItemsList.BeforeShowContextMenu += new EventHandler <AreaItemArgs>(m_ItemsList_BeforeShowContextMenu);
            m_ItemsList.ItemsListChanged      += new EventHandler(m_ItemsList_ItemsListChanged);
            LayoutRoot.Children.Add(m_ItemsList);
            Grid.SetRow(m_ItemsList, 1);

            this.Content = LayoutRoot;
        }
Exemplo n.º 22
0
/*        #region public Statuses Status
 *
 *      /// <summary>
 *      /// Возвращает или устанавливает статус
 *      /// </summary>
 *      public Statuses Status
 *      {
 *          get { return statusImageLinkLabel1.Status; }
 *          set { statusImageLinkLabel1.Status = value; }
 *      }
 *
 #endregion
 *
 #region public string StatusText
 *
 *      /// <summary>
 *      /// Возвращает или устанавливает текст статуса
 *      /// </summary>
 *      public string StatusText
 *      {
 *          get { return statusImageLinkLabel1.Text; }
 *          set { statusImageLinkLabel1.Text = value; }
 *      }
 *
 #endregion*/



/*        #region public Aircraft Aircraft
 *
 *      /// <summary>
 *      /// Текущее ВС
 *      /// </summary>
 *      public Aircraft Aircraft
 *      {
 *          get { return currentAircraft; }
 *          set
 *          {
 *              currentAircraft = value;
 *              UpdateInformation();
 *          }
 *      }
 *
 #endregion*/

        #endregion

        #region Methods

        #region private void InitializeComponent()

        private void InitializeComponent()
        {
            panelTopContainer      = new Panel();
            buttonDeleteSelected   = new AvButtonT();
            buttonApplyFilter      = new AvButtonT();
            buttonRegisterFlight   = new RichReferenceButton();
            footerControl1         = new FooterControl();
            headerControl          = new HeaderControl();
            aircraftHeaderControl  = new AircraftHeaderControl(currentAircraft, true, true);
            statusImageLinkLabel1  = new StatusImageLinkLabel();
            labelDateFrom          = new Label();
            dateTimePickerDateFrom = new DateTimePicker();
            labelDateTo            = new Label();
            dateTimePickerDateTo   = new DateTimePicker();
            buttonOK = new Button();
            monthlyUtilizationViewer = new MonthlyUtilizationView(currentAircraft);

            #region Context menu

            contextMenuStrip            = new ContextMenuStrip();
            toolStripMenuItemCopy       = new ToolStripMenuItem();
            toolStripMenuItemPaste      = new ToolStripMenuItem();
            toolStripMenuItemDelete     = new ToolStripMenuItem();
            toolStripSeparator1         = new ToolStripSeparator();
            toolStripMenuItemHighlight  = new ToolStripMenuItem();
            toolStripSeparator2         = new ToolStripSeparator();
            toolStripMenuItemProperties = new ToolStripMenuItem();
            //
            // toolStripMenuItemCopy
            //
            toolStripMenuItemCopy.Text    = "Copy (Ctrl+C)";
            toolStripMenuItemCopy.Click  += toolStripMenuItemCopy_Click;
            toolStripMenuItemCopy.Enabled = false;
            //
            // toolStripMenuItemPaste
            //
            toolStripMenuItemPaste.Text    = "Paste (Ctrl+V)";
            toolStripMenuItemPaste.Click  += toolStripMenuItemPaste_Click;
            toolStripMenuItemPaste.Enabled = false;
            //
            // toolStripMenuItemDelete
            //
            toolStripMenuItemDelete.Text   = "Delete";
            toolStripMenuItemDelete.Click += toolStripMenuItemDelete_Click;
            //
            // toolStripMenuItemHighlight
            //
            toolStripMenuItemHighlight.Text = "Highlight";
            //
            // toolStripMenuItemProperties
            //
            toolStripMenuItemProperties.Text   = "Properties";
            toolStripMenuItemProperties.Click += toolStripMenuItemProperties_Click;

            #endregion

            //
            // panelTopContainer
            //
            panelTopContainer.AutoSize     = true;
            panelTopContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelTopContainer.BackColor    = Color.FromArgb(211, 211, 211);
            panelTopContainer.Controls.Add(statusImageLinkLabel1);
            panelTopContainer.Controls.Add(labelDateFrom);
            panelTopContainer.Controls.Add(dateTimePickerDateFrom);
            panelTopContainer.Controls.Add(labelDateTo);
            panelTopContainer.Controls.Add(dateTimePickerDateTo);
            panelTopContainer.Controls.Add(buttonDeleteSelected);
            panelTopContainer.Controls.Add(buttonOK);
            panelTopContainer.Controls.Add(buttonApplyFilter);
            panelTopContainer.Controls.Add(buttonRegisterFlight);
            panelTopContainer.Dock     = DockStyle.Top;
            panelTopContainer.Location = new Point(0, 0);
            panelTopContainer.Name     = "panelTopContainer";
            panelTopContainer.Size     = new Size(1042, 62);
            panelTopContainer.TabIndex = 14;
            //
            // buttonApplyFilter
            //
            buttonApplyFilter.Visible         = false;
            buttonApplyFilter.ActiveBackColor = Color.FromArgb(200, 200, 200);
            buttonApplyFilter.FontMain        = Css.HeaderControl.Fonts.PrimaryFont;
            buttonApplyFilter.ForeColorMain   = Css.HeaderControl.Colors.PrimaryColor;
            buttonApplyFilter.Icon            = icons.ApplyFilter;
            buttonApplyFilter.Size            = new Size(145, 59);
            buttonApplyFilter.TabIndex        = 19;
            buttonApplyFilter.TextMain        = "Apply filter";
            //
            // buttonAddDetail
            //
            buttonRegisterFlight.Enabled = permissionForCreate;
            //buttonAddDetail.Enabled = true;
            buttonRegisterFlight.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonRegisterFlight.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonRegisterFlight.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonRegisterFlight.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonRegisterFlight.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonRegisterFlight.Icon                = icons.Add;
            buttonRegisterFlight.IconNotEnabled      = icons.AddGray;
            buttonRegisterFlight.ReflectionType      = ReflectionTypes.DisplayInNew;
            buttonRegisterFlight.Size                = new Size(152, 59);
            buttonRegisterFlight.TabIndex            = 15;
            buttonRegisterFlight.TextAlignMain       = ContentAlignment.BottomCenter;
            buttonRegisterFlight.TextAlignSecondary  = ContentAlignment.TopCenter;
            buttonRegisterFlight.TextMain            = "Register";
            buttonRegisterFlight.TextSecondary       = "flight";
            buttonRegisterFlight.DisplayerRequested += buttonRegisterFlight_DisplayerRequested;
            //
            // buttonDeleteSelected
            //
            buttonDeleteSelected.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonDeleteSelected.Enabled            = false;
            buttonDeleteSelected.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.Icon               = icons.Delete;
            buttonDeleteSelected.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteSelected.PaddingSecondary   = new Padding(4, 0, 0, 0);
            buttonDeleteSelected.Size               = new Size(145, 59);
            buttonDeleteSelected.TabIndex           = 20;
            buttonDeleteSelected.TextAlignMain      = ContentAlignment.BottomLeft;
            buttonDeleteSelected.TextAlignSecondary = ContentAlignment.TopLeft;
            buttonDeleteSelected.TextMain           = "Delete";
            buttonDeleteSelected.TextSecondary      = "selected";
            buttonDeleteSelected.Click             += buttonDeleteSelected_Click;
            //
            // footerControl1
            //
            footerControl1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            footerControl1.BackColor    = Color.Transparent;
            footerControl1.Dock         = DockStyle.Bottom;
            footerControl1.Location     = new Point(0, 568);
            footerControl1.Margin       = new Padding(0);
            footerControl1.MaximumSize  = new Size(0, 48);
            footerControl1.MinimumSize  = new Size(0, 48);
            footerControl1.Name         = "footerControl1";
            footerControl1.Size         = new Size(1042, 48);
            footerControl1.TabIndex     = 10;
            //
            // headerControl
            //
            headerControl.ActionControlSplitterVisible         = true;
            headerControl.ContextActionControl.ShowPrintButton = true;
            headerControl.BackColor       = Color.Transparent;
            headerControl.BackgroundImage = Resources.HeaderBar;
            headerControl.Controls.Add(aircraftHeaderControl);
            headerControl.Dock = DockStyle.Top;
            headerControl.EditDisplayerText            = "Component Status Operator";
            headerControl.EditReflectionType           = ReflectionTypes.DisplayInNew;
            headerControl.ActionControl.ShowEditButton = false;
            headerControl.Location = new Point(0, 0);
            headerControl.Name     = "headerControl";
            headerControl.Size     = new Size(1042, 58);
            headerControl.TabIndex = 6;
            headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += PrintButton_DisplayerRequested;
            headerControl.ReloadRised += headerControl1_ReloadRised;
            headerControl.ContextActionControl.ButtonHelp.TopicID = "component-status.html";
            //
            // statusImageLinkLabel1
            //
            statusImageLinkLabel1.LinkColor = Color.DimGray;
            statusImageLinkLabel1.Location  = new Point(30, 3);
            statusImageLinkLabel1.Size      = new Size(412, 27);
            statusImageLinkLabel1.Status    = Statuses.Satisfactory;
            statusImageLinkLabel1.TabIndex  = 16;
            statusImageLinkLabel1.TextAlign = ContentAlignment.MiddleLeft;
            statusImageLinkLabel1.TextFont  = Css.HeaderLinkLabel.Fonts.Font;
            //
            // labelDateFrom
            //
            labelDateFrom.AutoSize  = true;
            labelDateFrom.Font      = Css.OrdinaryText.Fonts.SmallRegularFont;
            labelDateFrom.ForeColor = Css.OrdinaryText.Colors.ForeColor;
            labelDateFrom.Location  = new Point(32, 35);
            labelDateFrom.Text      = "From";
            //
            // dateTimePickerDateFrom
            //
            dateTimePickerDateFrom.Font         = Css.WindowsForm.Fonts.RegularFont;
            dateTimePickerDateFrom.ForeColor    = Css.WindowsForm.Colors.ForeColor;
            dateTimePickerDateFrom.BackColor    = Color.White;
            dateTimePickerDateFrom.Location     = new Point(80, 32);
            dateTimePickerDateFrom.Width        = 100;
            dateTimePickerDateFrom.Format       = DateTimePickerFormat.Custom;
            dateTimePickerDateFrom.CustomFormat = new TermsProvider()["DateFormat"].ToString();
            if (DateTime.Now.Month == 1)
            {
                dateTimePickerDateFrom.Value = new DateTime(DateTime.Now.Year - 1, 12, 1);
            }
            else
            {
                dateTimePickerDateFrom.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month - 1, 1);
            }
            //
            // labelDateTo
            //
            labelDateTo.AutoSize  = true;
            labelDateTo.Font      = Css.OrdinaryText.Fonts.SmallRegularFont;
            labelDateTo.ForeColor = Css.OrdinaryText.Colors.ForeColor;
            labelDateTo.Location  = new Point(190, 35);
            labelDateTo.Text      = "to";
            //
            // dateTimePickerDateTo
            //
            dateTimePickerDateTo.Font         = Css.WindowsForm.Fonts.RegularFont;
            dateTimePickerDateTo.ForeColor    = Css.WindowsForm.Colors.ForeColor;
            dateTimePickerDateTo.BackColor    = Color.White;
            dateTimePickerDateTo.Location     = new Point(220, 32);
            dateTimePickerDateTo.Width        = 100;
            dateTimePickerDateTo.Format       = DateTimePickerFormat.Custom;
            dateTimePickerDateTo.CustomFormat = new TermsProvider()["DateFormat"].ToString();
            //
            // buttonOK
            //
            buttonOK.UseVisualStyleBackColor = true;
            buttonOK.Font      = Css.WindowsForm.Fonts.RegularFont;
            buttonOK.ForeColor = Css.WindowsForm.Colors.ForeColor;
            buttonOK.Location  = new Point(340, 30);
            buttonOK.Width     = 70;
            buttonOK.Text      = "OK";
            buttonOK.Click    += buttonOK_Click;
            //
            // monthlyUtilizationViewer
            //
            monthlyUtilizationViewer.ContextMenuStrip      = contextMenuStrip;
            monthlyUtilizationViewer.Location              = new Point(panelTopContainer.Left, panelTopContainer.Bottom);
            monthlyUtilizationViewer.Size                  = new Size(Width, Height - headerControl.Height - footerControl1.Height - panelTopContainer.Height);
            monthlyUtilizationViewer.SelectedItemsChanged += monthlyUtilizationViewer_SelectedItemsChanged;
            monthlyUtilizationViewer.ItemsPasted          += monthlyUtilizationViewer_ItemsPasted;
            monthlyUtilizationViewer.ItemsDeleted         += buttonDeleteSelected_Click;
            //
            // ComponentStatusControl
            //
            BackColor = Color.FromArgb(241, 241, 241);
            Controls.Add(footerControl1);
            Controls.Add(panelTopContainer);
            Controls.Add(monthlyUtilizationViewer);
            Controls.Add(headerControl);
            Size = new Size(1042, 616);
        }
Exemplo n.º 23
0
        private void InitializeComponent()
        {
            Lifelength lifelength4 = new Lifelength();

            panelTopContainer    = new Panel();
            buttonDeleteSelected = new AvButtonT();
            buttonApplyFilter    = new AvButtonT();
            buttonAddDirective   = new RichReferenceButton();
            labelTitle           = new StatusImageLinkLabel();

            #region Context menu

            contextMenuStrip        = new ContextMenuStrip();
            toolStripMenuItemAdd    = new ToolStripMenuItem();
            toolStripMenuItemView   = new ToolStripMenuItem();
            toolStripSeparator2     = new ToolStripSeparator();
            toolStripMenuItemDelete = new ToolStripMenuItem();
            //
            // contextMenuStrip
            //
            contextMenuStrip.Items.AddRange(new ToolStripItem[]
            {
                toolStripMenuItemView,
                toolStripMenuItemAdd,
                toolStripSeparator2,
                toolStripMenuItemDelete
            });
            contextMenuStrip.Name = "contextMenuStrip";
            contextMenuStrip.Size = new Size(179, 176);
            //
            // toolStripMenuItemAdd
            //
            toolStripMenuItemAdd.Name   = "toolStripMenuItemAdd";
            toolStripMenuItemAdd.Size   = new Size(178, 22);
            toolStripMenuItemAdd.Text   = "Add Directive ";
            toolStripMenuItemAdd.Click += toolStripMenuItemAdd_Click;
            //
            // toolStripMenuItemView
            //
            toolStripMenuItemView.Name   = "toolStripMenuItemView";
            toolStripMenuItemView.Size   = new Size(178, 22);
            toolStripMenuItemView.Text   = "View details";
            toolStripMenuItemView.Click += toolStripMenuItemView_Click;
            //
            // toolStripSeparator2
            //
            toolStripSeparator2.Name = "toolStripSeparator2";
            toolStripSeparator2.Size = new Size(175, 6);
            //
            // toolStripMenuItemDelete
            //
            toolStripMenuItemDelete.Name   = "toolStripMenuItemDelete";
            toolStripMenuItemDelete.Size   = new Size(178, 22);
            toolStripMenuItemDelete.Text   = "Delete";
            toolStripMenuItemDelete.Click += toolStripMenuItemDelete_Click;

            #endregion

            footerControl1        = new FooterControl();
            headerControl1        = new HeaderControl();
            aircraftHeaderControl = new TemplateAircraftHeaderControl();
            panelTopContainer.SuspendLayout();
            headerControl1.SuspendLayout();
            SuspendLayout();
            //
            // directivesViewer
            //
            directivesViewer          = new TemplateDirectiveListView(DirectiveSource, viewFilter);
            directivesViewer.TabIndex = 2;
            directivesViewer.ItemsListView.ContextMenuStrip = contextMenuStrip;
            directivesViewer.Location              = new Point(panelTopContainer.Left, panelTopContainer.Bottom);
            directivesViewer.SelectedItemsChanged += directivesViewer_SelectedItemsChanged;
            PerformEvents(true);
            //
            // panelTopContainer
            //
            panelTopContainer.AutoSize     = true;
            panelTopContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelTopContainer.BackColor    = Color.LightGray;
            panelTopContainer.Controls.Add(buttonDeleteSelected);
            panelTopContainer.Controls.Add(buttonApplyFilter);
            panelTopContainer.Controls.Add(buttonAddDirective);
            panelTopContainer.Controls.Add(labelTitle);
            panelTopContainer.Dock     = DockStyle.Top;
            panelTopContainer.Location = new Point(0, 0);
            panelTopContainer.Name     = "panelTopContainer";
            panelTopContainer.Size     = new Size(1042, 62);
            panelTopContainer.TabIndex = 1;
            //
            // buttonApplyFilter
            //
            buttonApplyFilter.ActiveBackColor = Color.FromArgb(200, 200, 200);
            buttonApplyFilter.FontMain        = Css.HeaderControl.Fonts.PrimaryFont;
            buttonApplyFilter.ForeColorMain   = Css.HeaderControl.Colors.PrimaryColor;
            buttonApplyFilter.Icon            = icons.ApplyFilter;
            buttonApplyFilter.Location        = new Point(600, 0);
            buttonApplyFilter.Size            = new Size(145, 59);
            buttonApplyFilter.TabIndex        = 18;
            buttonApplyFilter.TextMain        = "Apply filter";
            buttonApplyFilter.Click          += buttonApplyFilter_Click;
            //
            // buttonAddDirective
            //
            buttonAddDirective.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonAddDirective.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddDirective.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddDirective.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddDirective.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddDirective.Icon                = icons.Add;
            buttonAddDirective.IconNotEnabled      = icons.AddGray;
            buttonAddDirective.Location            = new Point(770, 0);
            buttonAddDirective.ReflectionType      = ReflectionTypes.DisplayInNew;
            buttonAddDirective.Size                = new Size(140, 59);
            buttonAddDirective.TabIndex            = 19;
            buttonAddDirective.TextAlignMain       = ContentAlignment.BottomCenter;
            buttonAddDirective.TextAlignSecondary  = ContentAlignment.TopCenter;
            buttonAddDirective.TextMain            = "Add new";
            buttonAddDirective.TextSecondary       = "directive";
            buttonAddDirective.DisplayerRequested += referenceAvalonButtonAddDirective_DisplayerRequested;
            //
            // buttonDeleteSelected
            //
            buttonDeleteSelected.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonDeleteSelected.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.Click             += buttonDeleteSelected_Click;
            buttonDeleteSelected.Icon               = icons.Delete;
            buttonDeleteSelected.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteSelected.Location           = new Point(920, 0);
            buttonDeleteSelected.PaddingSecondary   = new Padding(4, 0, 0, 0);
            buttonDeleteSelected.Size               = new Size(145, 59);
            buttonDeleteSelected.TabIndex           = 20;
            buttonDeleteSelected.TextAlignMain      = ContentAlignment.BottomLeft;
            buttonDeleteSelected.TextAlignSecondary = ContentAlignment.TopLeft;
            buttonDeleteSelected.TextMain           = "Delete";
            buttonDeleteSelected.TextSecondary      = "selected";
            //
            // labelTitle
            //
            labelTitle.ActiveLinkColor        = Color.Black;
            labelTitle.Enabled                = false;
            labelTitle.HoveredLinkColor       = Color.Black;
            labelTitle.ImageBackColor         = Color.Transparent;
            labelTitle.ImageLayout            = ImageLayout.Center;
            labelTitle.LinkColor              = Color.DimGray;
            labelTitle.LinkMouseCapturedColor = Color.Empty;
            labelTitle.Location               = new Point(28, 3);
            labelTitle.Margin    = new Padding(0);
            labelTitle.Name      = "labelTitle";
            labelTitle.Size      = new Size(600, 27);
            labelTitle.Status    = Statuses.Pending;
            labelTitle.TabIndex  = 16;
            labelTitle.TextAlign = ContentAlignment.MiddleLeft;
            labelTitle.TextFont  = new Font("Tahoma", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 204);
            //
            // lifelength4
            //
            lifelength4.Applicable           = false;
            lifelength4.Calendar             = TimeSpan.Parse("00:00:00");
            lifelength4.Cycles               = 0;
            lifelength4.Hours                = TimeSpan.Parse("00:00:00");
            lifelength4.IsCalendarApplicable = false;
            lifelength4.IsCyclesApplicable   = false;
            lifelength4.IsHoursApplicable    = false;
            //
            // footerControl1
            //
            footerControl1.AutoSize     = true;
            footerControl1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            footerControl1.BackColor    = Color.Transparent;
            footerControl1.Dock         = DockStyle.Bottom;
            footerControl1.Location     = new Point(0, 568);
            footerControl1.Margin       = new Padding(0);
            footerControl1.MaximumSize  = new Size(0, 48);
            footerControl1.MinimumSize  = new Size(0, 48);
            footerControl1.Name         = "footerControl1";
            footerControl1.Size         = new Size(1042, 48);
            footerControl1.TabIndex     = 4;
            //
            // headerControl1
            //
            headerControl1.ActionControlSplitterVisible = true;

            headerControl1.BackColor       = Color.Transparent;
            headerControl1.BackgroundImage = Resources.HeaderBar;
            headerControl1.Controls.Add(aircraftHeaderControl);
            headerControl1.Dock = DockStyle.Top;
            headerControl1.EditDisplayerText = "Edit operator";
            headerControl1.ContextActionControl.ShowPrintButton = false;
            headerControl1.ContextActionControl.ButtonPrint.DisplayerRequested += ButtonPrint_DisplayerRequested;
            headerControl1.EditReflectionType = ReflectionTypes.DisplayInNew;
            headerControl1.Location           = new Point(0, 0);
            headerControl1.Name     = "headerControl1";
            headerControl1.Size     = new Size(1042, 58);
            headerControl1.TabIndex = 0;
            headerControl1.EditDisplayerRequested += headerControl1_EditDisplayerRequested;
            headerControl1.ReloadRised            += ButtonReload_ReloadRised;
            //
            // aircraftHeaderControl
            //
            aircraftHeaderControl.Aircraft          = null;
            aircraftHeaderControl.AircraftClickable = true;
            aircraftHeaderControl.BackColor         = Color.Transparent;
            aircraftHeaderControl.Location          = new Point(0, 0);
            aircraftHeaderControl.Name = "aircraftHeaderControl";
            aircraftHeaderControl.OperatorClickable = true;
            aircraftHeaderControl.Size = new Size(381, 58);
            //
            // DirectiveListViewer
            //
            AutoScroll = true;
            BackColor  = Color.FromArgb(241, 241, 241);
            Controls.Add(directivesViewer);
            Controls.Add(panelTopContainer);
            Controls.Add(footerControl1);
            Controls.Add(headerControl1);
            Name = "DirectiveListViewer";
            Size = new Size(1042, 616);
            panelTopContainer.ResumeLayout(false);
            panelTopContainer.PerformLayout();
            headerControl1.ResumeLayout(false);
            headerControl1.PerformLayout();
            ResumeLayout(false);
            PerformLayout();
        }
Exemplo n.º 24
0
        private void InitializeComponent(DirectiveType directiveType)
        {
            Dock           = DockStyle.Fill;
            BackColor      = Css.CommonAppearance.Colors.BackColor;
            footerControl  = new FooterControl();
            headerControl  = new HeaderControl();
            aircraftHeader = new AircraftHeaderControl();
            mainPanel      = new Panel();

            generalDataAndPerformanceControl = new DirectiveInformationControl(directiveType);
            attributesAndParametersControl   = new DirectiveParametersControl(directiveType);

            generalDataAndPerformanceContainer = new ExtendableRichContainer();
            attributesAndParametersContainer   = new ExtendableRichContainer();

            aircraftHeader.OperatorClickable = true;
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ButtonReload.Icon           = icons.SaveAndAdd;
            headerControl.ButtonReload.IconNotEnabled = icons.SaveAndAddGray;
            headerControl.ButtonReload.IconLayout     = ImageLayout.Center;
            headerControl.ButtonReload.TextMain       = "Save and";
            headerControl.ButtonReload.TextSecondary  = "add another";
            headerControl.ButtonReload.Click         += buttonSaveAndAdd_Click;

            headerControl.ButtonEdit.Icon                = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled      = icons.SaveGray;
            headerControl.ButtonEdit.IconLayout          = ImageLayout.Center;
            headerControl.ButtonEdit.ReflectionType      = ReflectionTypes.DisplayInCurrent;
            headerControl.ButtonEdit.TextMain            = "Save";
            headerControl.ButtonEdit.TextSecondary       = "and Edit";
            headerControl.ButtonEdit.DisplayerRequested += buttonSaveAndEdit_DisplayerRequested;
            headerControl.TabIndex = 0;
            //
            // mainPanel
            //
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.AutoScroll = true;
            mainPanel.TabIndex   = 1;
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // generalDataAndPerformanceContainer
            //
            generalDataAndPerformanceContainer.Dock          = DockStyle.Top;
            generalDataAndPerformanceContainer.UpperLeftIcon = icons.GrayArrow;
            generalDataAndPerformanceContainer.Caption       = "General data and Performance";
            generalDataAndPerformanceContainer.MainControl   = generalDataAndPerformanceControl;
            generalDataAndPerformanceContainer.TabIndex      = 0;
            //
            // attributesAndParametersContainer
            //
            attributesAndParametersContainer.Dock          = DockStyle.Top;
            attributesAndParametersContainer.UpperLeftIcon = icons.GrayArrow;
            if (directiveType == DirectiveTypeCollection.Instance.ADDirectiveType)
            {
                attributesAndParametersContainer.Caption = "Performance";
            }
            else
            {
                attributesAndParametersContainer.Caption = "Attributes and additional parameters";
            }
            attributesAndParametersContainer.MainControl = attributesAndParametersControl;
            attributesAndParametersContainer.TabIndex    = 1;

            mainPanel.Controls.Add(attributesAndParametersContainer);
            mainPanel.Controls.Add(generalDataAndPerformanceContainer);

            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);
        }
Exemplo n.º 25
0
 private void Initialize()
 {
     header = new HeaderControl();
     operatorHeaderControl = new OperatorHeaderControl("Operators", icons.Operators);
     footer                    = new FooterControl();
     mainPanel                 = new Panel();
     flowLayoutPanelRight      = new FlowLayoutPanel();
     operatorCollectionControl = new OperatorCollectionControl();
     biWeeklyReference         = new BiWeeklyReportsReference();
     //usersReference = new UsersReference();
     templatesReference = new TemplatesReference("Templates");
     buttonAddOperator  = new RichReferenceButton();
     operatorCollectionControl.SizeChanged += operatorCollectionControl_SizeChanged;
     //
     // header
     //
     header.ActionControl.ShowEditButton = false;
     header.Controls.Add(operatorHeaderControl);
     header.ReloadRised += header_ReloadRised;
     header.ContextActionControl.ButtonHelp.TopicID = "aircrafts_of_the_operator";
     //
     // mainPanel
     //
     mainPanel.AutoScroll   = true;
     mainPanel.Dock         = DockStyle.Fill;
     mainPanel.SizeChanged += mainPanel_SizeChanged;
     //
     // biWeeklyReference
     //
     //biWeeklyReference.ShowAllReference.Text = "Show all BiWeeklies";
     biWeeklyReference.AutoSize     = true;
     biWeeklyReference.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     //biWeeklyReference.Caption = "BiWeekly Reports";
     biWeeklyReference.DescriptionTextColor = Color.DimGray;
     biWeeklyReference.Location             = new Point(30, 60);
     biWeeklyReference.Margin        = new Padding(30, 60, 30, 30);
     biWeeklyReference.Size          = new Size(297, 101);
     biWeeklyReference.TabIndex      = 7;
     biWeeklyReference.UpperLeftIcon = new Icons().GrayArrow;
     //biWeeklyReference.ShowAllReference.DisplayerRequested += new EventHandler<ReferenceEventArgs>(ShowAllReference_DisplayerRequested);
     //
     // templatesReference
     //
     templatesReference.Caption = "Templates";
     templatesReference.Margin  = new Padding(30, 20, 30, 10);
     //
     // usersReference
     //
     //usersReference.Margin = new Padding(30, 0, 30, 30);
     //
     // flowLayoutPanelRight
     //
     flowLayoutPanelRight.Controls.Add(biWeeklyReference);
     flowLayoutPanelRight.Controls.Add(templatesReference);
     //flowLayoutPanelRight.Controls.Add(usersReference);
     flowLayoutPanelRight.Dock          = DockStyle.Right;
     flowLayoutPanelRight.FlowDirection = FlowDirection.TopDown;
     flowLayoutPanelRight.Location      = new Point(612, 0);
     flowLayoutPanelRight.Size          = new Size(RIGHT_PANEL_WIDTH, 100);
     //
     // buttonAddOperator
     //
     buttonAddOperator.Anchor              = AnchorStyles.Bottom | AnchorStyles.Right;
     buttonAddOperator.FontMain            = Css.HeaderControl.Fonts.PrimaryFont;
     buttonAddOperator.ForeColorMain       = Css.HeaderControl.Colors.PrimaryColor;
     buttonAddOperator.Icon                = icons.Add;
     buttonAddOperator.IconNotEnabled      = icons.AddGray;
     buttonAddOperator.Width               = 200;
     buttonAddOperator.Location            = new Point(operatorCollectionControl.Left, operatorCollectionControl.Bottom);
     buttonAddOperator.TextMain            = "Add Operator";
     buttonAddOperator.DisplayerRequested += buttonAddOperator_DisplayerRequested;
     if (Users.CurrentUser.Role != UserRole.Administrator)
     {
         buttonAddOperator.Visible = false;
     }
     //
     // OperatorsCollectionScreen
     //
     BackColor = Css.CommonAppearance.Colors.BackColor;
     Controls.Add(mainPanel);
     Controls.Add(footer);
     Controls.Add(header);
     mainPanel.Controls.Add(operatorCollectionControl);
     mainPanel.Controls.Add(buttonAddOperator);
     mainPanel.Controls.Add(flowLayoutPanelRight);
     buttonAddOperator.Enabled = (OperatorCollection.Instance.HasPermission(Users.CurrentUser, DataEvent.Update));
     UpdateInformation();
 }
Exemplo n.º 26
0
        ///<summary>
        /// Создает страницу для отображения информации об одной директиве
        ///</summary>
        /// <param name="directive">Директива</param>
        public DirectiveScreen(BaseDetailDirective directive)
        {
            if (directive == null)
            {
                throw new ArgumentNullException("directive", "Argument cannot be null");
            }
            currentDirective = directive;
            BackColor        = Css.CommonAppearance.Colors.BackColor;
            Dock             = DockStyle.Fill;

            footerControl  = new FooterControl();
            headerControl  = new HeaderControl();
            aircraftHeader = new AircraftHeaderControl(directive.Parent.Parent as Aircraft, true);

            summaryDirectiveContainer          = new ExtendableRichContainer();
            generalDataAndPerformanceContainer = new ExtendableRichContainer();
            attributesAndParametersContainer   = new ExtendableRichContainer();
            complianceDirectiveContainer       = new ExtendableRichContainer();

            summaryDirectiveControl          = new DirectiveSummary(directive);
            generalDataAndPerformanceControl = new DirectiveInformationControl(directive);
            attributesAndParametersControl   = new DirectiveParametersControl(directive);
            complianceDirectiveControl       = new DirectiveComplianceListView(directive);

            panelCompliance = new Panel();
            mainPanel       = new Panel();
            panelHeader     = new Panel();

            buttonAddPerformance   = new AvButtonT();
            buttonDirectiveClosing = new AvButtonT();
            buttonDeleteRecord     = new AvButtonT();
            buttonEditRecord       = new AvButtonT();
            buttonDeleteDirective  = new RichReferenceButton();

            //
            // aircraftHeader
            //
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ButtonEdit.TextMain                  = "Save";
            headerControl.ButtonEdit.Icon                      = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled            = icons.SaveGray;
            headerControl.ContextActionControl.ShowPrintButton = true;
            headerControl.TabIndex = 0;
            headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += ButtonPrint_DisplayerRequested;
            headerControl.ButtonEdit.DisplayerRequested += ButtonSave_DisplayerRequested;
            headerControl.ReloadRised += headerControl_ReloadRised;
            headerControl.ContextActionControl.ButtonHelp.TopicID = "work_with_the_directive";
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // mainPanel
            //
            mainPanel.AutoScroll = true;
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.TabIndex   = 1;
            mainPanel.Controls.Add(containedPanel);
            //
            // containedPanel
            //
            containedPanel.AutoSize      = true;
            containedPanel.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            containedPanel.FlowDirection = FlowDirection.TopDown;
            containedPanel.TabIndex      = 1;
            //
            // statusLinkLabel
            //
            statusLinkLabel.ActiveLinkColor        = Color.Black;
            statusLinkLabel.Enabled                = false;
            statusLinkLabel.HoveredLinkColor       = Color.Black;
            statusLinkLabel.ImageBackColor         = Color.Transparent;
            statusLinkLabel.ImageLayout            = ImageLayout.Center;
            statusLinkLabel.LinkColor              = Color.DimGray;
            statusLinkLabel.LinkMouseCapturedColor = Color.Empty;
            statusLinkLabel.Location               = new Point(5, 10);
            statusLinkLabel.Size      = new Size(500, 27);
            statusLinkLabel.TextAlign = ContentAlignment.MiddleLeft;
            statusLinkLabel.TextFont  = Css.OrdinaryText.Fonts.RegularFont;
            //
            // summaryDirectiveContainer
            //
            summaryDirectiveContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            summaryDirectiveContainer.LabelCaption.Text = "Directive " + directive.Title + " Summary";
            summaryDirectiveContainer.MainControl       = summaryDirectiveControl;
            summaryDirectiveContainer.UpperLeftIcon     = icons.GrayArrow;
            summaryDirectiveContainer.TabIndex          = 1;
            //
            // generalDataAndPerformanceContainer
            //
            generalDataAndPerformanceContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            generalDataAndPerformanceContainer.Extended          = false;
            generalDataAndPerformanceContainer.LabelCaption.Text = "General Data And Performance";
            generalDataAndPerformanceContainer.Location          = new Point(0, summaryDirectiveContainer.Bottom);
            generalDataAndPerformanceContainer.MainControl       = generalDataAndPerformanceControl;
            generalDataAndPerformanceContainer.UpperLeftIcon     = icons.GrayArrow;
            generalDataAndPerformanceContainer.TabIndex          = 2;
            //
            // attributesAndParametersContainer
            //
            attributesAndParametersContainer.BackColor = Css.CommonAppearance.Colors.BackColor;
            attributesAndParametersContainer.Extended  = false;
            if (currentDirective.DirectiveType == DirectiveTypeCollection.Instance.ADDirectiveType)
            {
                attributesAndParametersContainer.LabelCaption.Text = "Performance";
            }
            else
            {
                attributesAndParametersContainer.LabelCaption.Text = "Attributes And Additional Parameters";
            }
            attributesAndParametersContainer.MainControl   = attributesAndParametersControl;
            attributesAndParametersContainer.UpperLeftIcon = icons.GrayArrow;
            attributesAndParametersContainer.TabIndex      = 3;
            //
            // panelHeader
            //
            panelHeader.Size     = new Size(1250, 50);
            panelHeader.TabIndex = 0;
            panelHeader.Controls.Add(buttonDeleteDirective);
            panelHeader.Controls.Add(statusLinkLabel);
            //
            // buttonAddPerformance
            //
            buttonAddPerformance.BackColor          = Color.Transparent;
            buttonAddPerformance.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.Icon               = icons.Add;
            buttonAddPerformance.IconNotEnabled     = icons.AddGray;
            buttonAddPerformance.IconLayout         = ImageLayout.Center;
            buttonAddPerformance.PaddingSecondary   = new Padding(0);
            buttonAddPerformance.Size               = new Size(160, 50);
            buttonAddPerformance.TabIndex           = 16;
            buttonAddPerformance.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonAddPerformance.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonAddPerformance.TextMain           = "Register Performance";
            buttonAddPerformance.Click             += buttonAddNewRecord_Click;
            //
            // buttonDirectiveClosing
            //
            buttonDirectiveClosing.BackColor          = Color.Transparent;
            buttonDirectiveClosing.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.Icon               = icons.Add;
            buttonDirectiveClosing.IconNotEnabled     = icons.AddGray;
            buttonDirectiveClosing.IconLayout         = ImageLayout.Center;
            buttonDirectiveClosing.PaddingSecondary   = new Padding(0);
            buttonDirectiveClosing.Size               = new Size(150, 50);
            buttonDirectiveClosing.TabIndex           = 16;
            buttonDirectiveClosing.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDirectiveClosing.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDirectiveClosing.TextMain           = "Close Directive";
            buttonDirectiveClosing.Click             += buttonDirectiveClosing_Click;
            //
            // buttonEditRecord
            //
            buttonEditRecord.BackColor          = Color.Transparent;
            buttonEditRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.Icon               = icons.Edit;
            buttonEditRecord.IconNotEnabled     = icons.EditGray;
            buttonEditRecord.IconLayout         = ImageLayout.Center;
            buttonEditRecord.PaddingSecondary   = new Padding(0);
            buttonEditRecord.Size               = new Size(130, 50);
            buttonEditRecord.TabIndex           = 16;
            buttonEditRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonEditRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonEditRecord.TextMain           = "Edit";
            buttonEditRecord.Click             += buttonEditRecord_Click;
            //
            // buttonDeleteRecord
            //
            buttonDeleteRecord.BackColor          = Color.Transparent;
            buttonDeleteRecord.Cursor             = Cursors.Hand;
            buttonDeleteRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.Icon               = icons.Delete;
            buttonDeleteRecord.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteRecord.IconLayout         = ImageLayout.Center;
            buttonDeleteRecord.PaddingSecondary   = new Padding(0);
            buttonDeleteRecord.Size               = new Size(150, 50);
            buttonDeleteRecord.TabIndex           = 16;
            buttonDeleteRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDeleteRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDeleteRecord.TextMain           = "Remove";
            buttonDeleteRecord.Click             += buttonDeleteRecord_Click;
            //
            // buttonDeleteDirective
            //
            buttonDeleteDirective.Anchor             = AnchorStyles.Right | AnchorStyles.Top;
            buttonDeleteDirective.BackColor          = Color.Transparent;
            buttonDeleteDirective.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.Location           = new Point(panelHeader.Right - 160, 0);
            buttonDeleteDirective.Icon                = icons.Delete;
            buttonDeleteDirective.IconNotEnabled      = icons.DeleteGray;
            buttonDeleteDirective.IconLayout          = ImageLayout.Center;
            buttonDeleteDirective.PaddingMain         = new Padding(3, 0, 0, 0);
            buttonDeleteDirective.ReflectionType      = ReflectionTypes.CloseSelected;
            buttonDeleteDirective.Size                = new Size(160, 50);
            buttonDeleteDirective.TabIndex            = 16;
            buttonDeleteDirective.TextAlignMain       = ContentAlignment.MiddleLeft;
            buttonDeleteDirective.TextAlignSecondary  = ContentAlignment.TopLeft;
            buttonDeleteDirective.TextMain            = "Delete";
            buttonDeleteDirective.TextSecondary       = "directive";
            buttonDeleteDirective.DisplayerRequested += buttonDeleteDirective_DisplayerRequested;
            //
            // complianceDirectiveControl
            //
            complianceDirectiveControl.Dock = DockStyle.Top;
            complianceDirectiveControl.SelectedItemsChanged += complianceDirectiveControl_SelectedItemsChanged;
            complianceDirectiveControl.ItemEdited           += form_RecordChanged;
            complianceDirectiveControl.SizeChanged          += complianceDirectiveControl_SizeChanged;
            //
            // panelCompliance
            //
            panelCompliance.AutoSize     = true;
            panelCompliance.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelCompliance.BackColor    = Css.CommonAppearance.Colors.BackColor;
            panelCompliance.Dock         = DockStyle.Top;
            panelCompliance.Visible      = false;
            panelCompliance.TabIndex     = 5;
            panelCompliance.Controls.Add(complianceDirectiveControl);
            panelCompliance.Controls.Add(buttonAddPerformance);
            panelCompliance.Controls.Add(buttonDirectiveClosing);
            panelCompliance.Controls.Add(buttonEditRecord);
            panelCompliance.Controls.Add(buttonDeleteRecord);
            //
            // complianceDirectiveContainer
            //
            complianceDirectiveContainer.Dock              = DockStyle.Top;
            complianceDirectiveContainer.Extended          = false;
            complianceDirectiveContainer.LabelCaption.Text = "Compliance";
            complianceDirectiveContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceDirectiveContainer.Extending        += complianceDirectiveContainer_Extending;
            complianceDirectiveContainer.TabIndex          = 4;


            containedPanel.Controls.Add(panelHeader);
            containedPanel.Controls.Add(summaryDirectiveContainer);
            containedPanel.Controls.Add(generalDataAndPerformanceContainer);
            containedPanel.Controls.Add(attributesAndParametersContainer);
            containedPanel.Controls.Add(complianceDirectiveContainer);
            containedPanel.Controls.Add(panelCompliance);

            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);

            UpdateDirective();


            complianceDirectiveControl_SelectedItemsChanged(complianceDirectiveControl, new SelectedItemsChangeEventArgs(0));
        }
Exemplo n.º 27
0
 void InitializeComponent()
 {
     this.panelInformation  = new System.Windows.Forms.Panel();
     this.linkLabel1        = new System.Windows.Forms.LinkLabel();
     this.debug             = new System.Windows.Forms.Button();
     this.continueCheckBox  = new System.Windows.Forms.CheckBox();
     this.pleaseTellTitle   = new System.Windows.Forms.Label();
     this.dontSendReport    = new System.Windows.Forms.Button();
     this.sendReport        = new System.Windows.Forms.Button();
     this.pleaseTellMessage = new System.Windows.Forms.Label();
     this.headerControl1    = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.errorMessage      = new SmartAssembly.SmartExceptionsCore.UI.AutoHeightLabel();
     this.saveAsFile        = new System.Windows.Forms.Button();
     this.panelSending      = new System.Windows.Forms.Panel();
     this.saveReport        = new System.Windows.Forms.Button();
     this.cancelSending     = new System.Windows.Forms.Button();
     this.ok                  = new System.Windows.Forms.Button();
     this.retrySending        = new System.Windows.Forms.Button();
     this.waitSendingReport   = new SmartAssembly.SmartExceptionsCore.UI.WaitSendingReportControl();
     this.headerControl2      = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.preparingFeedback   = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.connectingFeedback  = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.transferingFeedback = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.completedFeedback   = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.panelEmail          = new System.Windows.Forms.Panel();
     this.labelEmail          = new System.Windows.Forms.Label();
     this.sendAnonymously     = new System.Windows.Forms.CheckBox();
     this.email               = new System.Windows.Forms.TextBox();
     this.headerControl3      = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.label3              = new System.Windows.Forms.Label();
     this.continueSendReport  = new System.Windows.Forms.Button();
     this.poweredBy           = new SmartAssembly.SmartExceptionsCore.UI.PoweredBy();
     this.panelInformation.SuspendLayout();
     this.panelSending.SuspendLayout();
     this.panelEmail.SuspendLayout();
     this.SuspendLayout();
     //
     // panelInformation
     //
     this.panelInformation.Controls.Add(this.linkLabel1);
     this.panelInformation.Controls.Add(this.debug);
     this.panelInformation.Controls.Add(this.continueCheckBox);
     this.panelInformation.Controls.Add(this.pleaseTellTitle);
     this.panelInformation.Controls.Add(this.dontSendReport);
     this.panelInformation.Controls.Add(this.sendReport);
     this.panelInformation.Controls.Add(this.pleaseTellMessage);
     this.panelInformation.Controls.Add(this.headerControl1);
     this.panelInformation.Controls.Add(this.errorMessage);
     this.panelInformation.Controls.Add(this.saveAsFile);
     this.panelInformation.Location = new System.Drawing.Point(8, 8);
     this.panelInformation.Name     = "panelInformation";
     this.panelInformation.Size     = new System.Drawing.Size(413, 240);
     this.panelInformation.TabIndex = 0;
     //
     // linkLabel1
     //
     this.linkLabel1.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.linkLabel1.AutoSize     = true;
     this.linkLabel1.Location     = new System.Drawing.Point(241, 182);
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.Size         = new System.Drawing.Size(160, 13);
     this.linkLabel1.TabIndex     = 15;
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = "http://withSIX.com/support";
     this.linkLabel1.LinkClicked +=
         new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // debug
     //
     this.debug.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.debug.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.debug.Location  = new System.Drawing.Point(66, 205);
     this.debug.Name      = "debug";
     this.debug.Size      = new System.Drawing.Size(64, 24);
     this.debug.TabIndex  = 13;
     this.debug.Text      = "Debug";
     this.debug.Visible   = false;
     this.debug.Click    += new System.EventHandler(this.debug_Click);
     //
     // continueCheckBox
     //
     this.continueCheckBox.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.continueCheckBox.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.continueCheckBox.Location        = new System.Drawing.Point(22, 99);
     this.continueCheckBox.Name            = "continueCheckBox";
     this.continueCheckBox.Size            = new System.Drawing.Size(226, 16);
     this.continueCheckBox.TabIndex        = 14;
     this.continueCheckBox.Text            = "Ignore this error and attempt to &continue.";
     this.continueCheckBox.CheckedChanged += new System.EventHandler(this.continueCheckBox_CheckedChanged);
     //
     // pleaseTellTitle
     //
     this.pleaseTellTitle.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
     this.pleaseTellTitle.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.pleaseTellTitle.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
                                                              System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pleaseTellTitle.Location = new System.Drawing.Point(20, 124);
     this.pleaseTellTitle.Name     = "pleaseTellTitle";
     this.pleaseTellTitle.Size     = new System.Drawing.Size(381, 16);
     this.pleaseTellTitle.TabIndex = 11;
     this.pleaseTellTitle.Text     = "Please tell %CompanyName% about this problem.";
     //
     // dontSendReport
     //
     this.dontSendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.dontSendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.dontSendReport.Location  = new System.Drawing.Point(325, 205);
     this.dontSendReport.Name      = "dontSendReport";
     this.dontSendReport.Size      = new System.Drawing.Size(75, 24);
     this.dontSendReport.TabIndex  = 6;
     this.dontSendReport.Text      = "&Don\'t Send";
     this.dontSendReport.Click    += new System.EventHandler(this.dontSendReport_Click);
     //
     // sendReport
     //
     this.sendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.sendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.sendReport.Location  = new System.Drawing.Point(214, 205);
     this.sendReport.Name      = "sendReport";
     this.sendReport.Size      = new System.Drawing.Size(105, 24);
     this.sendReport.TabIndex  = 9;
     this.sendReport.Text      = "&Send Error Report";
     this.sendReport.Click    += new System.EventHandler(this.sendReport_Click);
     //
     // pleaseTellMessage
     //
     this.pleaseTellMessage.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
     this.pleaseTellMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.pleaseTellMessage.Location  = new System.Drawing.Point(20, 140);
     this.pleaseTellMessage.Name      = "pleaseTellMessage";
     this.pleaseTellMessage.Size      = new System.Drawing.Size(381, 55);
     this.pleaseTellMessage.TabIndex  = 12;
     this.pleaseTellMessage.Text      =
         "To help improve the software you use, %CompanyName% is interested in learning mor" +
         "e about this error. We have created a report about the error for you to send to " +
         "us.";
     //
     // headerControl1
     //
     this.headerControl1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))),
                                                                   ((int)(((byte)(96)))), ((int)(((byte)(179)))));
     this.headerControl1.Dock      = System.Windows.Forms.DockStyle.Top;
     this.headerControl1.ForeColor = System.Drawing.Color.White;
     this.headerControl1.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl1.Image     = null;
     this.headerControl1.Location  = new System.Drawing.Point(0, 0);
     this.headerControl1.Name      = "headerControl1";
     this.headerControl1.Size      = new System.Drawing.Size(413, 58);
     this.headerControl1.TabIndex  = 3;
     this.headerControl1.TabStop   = false;
     this.headerControl1.Text      = "%AppName% has encountered a problem.\nWe are sorry for the inconvenience.";
     //
     // errorMessage
     //
     this.errorMessage.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
     this.errorMessage.FlatStyle   = System.Windows.Forms.FlatStyle.System;
     this.errorMessage.Location    = new System.Drawing.Point(20, 69);
     this.errorMessage.Name        = "errorMessage";
     this.errorMessage.Size        = new System.Drawing.Size(381, 13);
     this.errorMessage.TabIndex    = 10;
     this.errorMessage.Text        = "errorMessage";
     this.errorMessage.UseMnemonic = false;
     //
     // saveAsFile
     //
     this.saveAsFile.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveAsFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.saveAsFile.Location  = new System.Drawing.Point(136, 205);
     this.saveAsFile.Name      = "saveAsFile";
     this.saveAsFile.Size      = new System.Drawing.Size(72, 24);
     this.saveAsFile.TabIndex  = 11;
     this.saveAsFile.Text      = "Save as &File";
     this.saveAsFile.Click    += new System.EventHandler(this.saveAsFile_Click);
     //
     // panelSending
     //
     this.panelSending.Controls.Add(this.saveReport);
     this.panelSending.Controls.Add(this.cancelSending);
     this.panelSending.Controls.Add(this.ok);
     this.panelSending.Controls.Add(this.retrySending);
     this.panelSending.Controls.Add(this.waitSendingReport);
     this.panelSending.Controls.Add(this.headerControl2);
     this.panelSending.Controls.Add(this.preparingFeedback);
     this.panelSending.Controls.Add(this.connectingFeedback);
     this.panelSending.Controls.Add(this.transferingFeedback);
     this.panelSending.Controls.Add(this.completedFeedback);
     this.panelSending.Location = new System.Drawing.Point(8, 264);
     this.panelSending.Name     = "panelSending";
     this.panelSending.Size     = new System.Drawing.Size(413, 232);
     this.panelSending.TabIndex = 2;
     this.panelSending.Visible  = false;
     //
     // saveReport
     //
     this.saveReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.saveReport.Location  = new System.Drawing.Point(146, 197);
     this.saveReport.Name      = "saveReport";
     this.saveReport.Size      = new System.Drawing.Size(80, 24);
     this.saveReport.TabIndex  = 25;
     this.saveReport.Text      = "&Save Report";
     this.saveReport.Visible   = false;
     this.saveReport.Click    += new System.EventHandler(this.saveReport_Click);
     //
     // cancelSending
     //
     this.cancelSending.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelSending.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cancelSending.Location  = new System.Drawing.Point(320, 197);
     this.cancelSending.Name      = "cancelSending";
     this.cancelSending.Size      = new System.Drawing.Size(80, 24);
     this.cancelSending.TabIndex  = 10;
     this.cancelSending.Text      = "&Cancel";
     this.cancelSending.Click    += new System.EventHandler(this.cancelSending_Click);
     //
     // ok
     //
     this.ok.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ok.Enabled   = false;
     this.ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.ok.Location  = new System.Drawing.Point(232, 197);
     this.ok.Name      = "ok";
     this.ok.Size      = new System.Drawing.Size(80, 24);
     this.ok.TabIndex  = 22;
     this.ok.Text      = "&OK";
     this.ok.Click    += new System.EventHandler(this.ok_Click);
     //
     // retrySending
     //
     this.retrySending.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.retrySending.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.retrySending.Location  = new System.Drawing.Point(144, 197);
     this.retrySending.Name      = "retrySending";
     this.retrySending.Size      = new System.Drawing.Size(80, 24);
     this.retrySending.TabIndex  = 23;
     this.retrySending.Text      = "&Retry";
     this.retrySending.Visible   = false;
     this.retrySending.Click    += new System.EventHandler(this.retrySending_Click);
     //
     // waitSendingReport
     //
     this.waitSendingReport.Location = new System.Drawing.Point(87, 145);
     this.waitSendingReport.Name     = "waitSendingReport";
     this.waitSendingReport.Size     = new System.Drawing.Size(250, 42);
     this.waitSendingReport.TabIndex = 11;
     this.waitSendingReport.TabStop  = false;
     this.waitSendingReport.Visible  = false;
     //
     // headerControl2
     //
     this.headerControl2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))),
                                                                   ((int)(((byte)(96)))), ((int)(((byte)(179)))));
     this.headerControl2.Dock      = System.Windows.Forms.DockStyle.Top;
     this.headerControl2.ForeColor = System.Drawing.Color.White;
     this.headerControl2.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl2.Image     = null;
     this.headerControl2.Location  = new System.Drawing.Point(0, 0);
     this.headerControl2.Name      = "headerControl2";
     this.headerControl2.Size      = new System.Drawing.Size(413, 58);
     this.headerControl2.TabIndex  = 24;
     this.headerControl2.TabStop   = false;
     this.headerControl2.Text      =
         "Please wait while %AppName% is sending the report to %CompanyName% through the In" +
         "ternet.";
     //
     // preparingFeedback
     //
     this.preparingFeedback.Location = new System.Drawing.Point(24, 72);
     this.preparingFeedback.Name     = "preparingFeedback";
     this.preparingFeedback.Size     = new System.Drawing.Size(368, 16);
     this.preparingFeedback.TabIndex = 18;
     this.preparingFeedback.TabStop  = false;
     this.preparingFeedback.Text     = "Preparing the error report.";
     //
     // connectingFeedback
     //
     this.connectingFeedback.Location = new System.Drawing.Point(24, 96);
     this.connectingFeedback.Name     = "connectingFeedback";
     this.connectingFeedback.Size     = new System.Drawing.Size(368, 16);
     this.connectingFeedback.TabIndex = 19;
     this.connectingFeedback.TabStop  = false;
     this.connectingFeedback.Text     = "Connecting to server.";
     //
     // transferingFeedback
     //
     this.transferingFeedback.Location = new System.Drawing.Point(24, 120);
     this.transferingFeedback.Name     = "transferingFeedback";
     this.transferingFeedback.Size     = new System.Drawing.Size(368, 16);
     this.transferingFeedback.TabIndex = 20;
     this.transferingFeedback.TabStop  = false;
     this.transferingFeedback.Text     = "Transferring report.";
     //
     // completedFeedback
     //
     this.completedFeedback.Location = new System.Drawing.Point(24, 144);
     this.completedFeedback.Name     = "completedFeedback";
     this.completedFeedback.Size     = new System.Drawing.Size(368, 16);
     this.completedFeedback.TabIndex = 21;
     this.completedFeedback.TabStop  = false;
     this.completedFeedback.Text     = "Error reporting completed. Thank you.";
     //
     // panelEmail
     //
     this.panelEmail.Controls.Add(this.labelEmail);
     this.panelEmail.Controls.Add(this.sendAnonymously);
     this.panelEmail.Controls.Add(this.email);
     this.panelEmail.Controls.Add(this.headerControl3);
     this.panelEmail.Controls.Add(this.label3);
     this.panelEmail.Controls.Add(this.continueSendReport);
     this.panelEmail.Location = new System.Drawing.Point(11, 512);
     this.panelEmail.Name     = "panelEmail";
     this.panelEmail.Size     = new System.Drawing.Size(413, 232);
     this.panelEmail.TabIndex = 4;
     this.panelEmail.Visible  = false;
     //
     // labelEmail
     //
     this.labelEmail.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.labelEmail.Location  = new System.Drawing.Point(20, 131);
     this.labelEmail.Name      = "labelEmail";
     this.labelEmail.Size      = new System.Drawing.Size(100, 16);
     this.labelEmail.TabIndex  = 9;
     this.labelEmail.Text      = "&Email address:";
     //
     // sendAnonymously
     //
     this.sendAnonymously.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.sendAnonymously.Location        = new System.Drawing.Point(120, 160);
     this.sendAnonymously.Name            = "sendAnonymously";
     this.sendAnonymously.Size            = new System.Drawing.Size(232, 16);
     this.sendAnonymously.TabIndex        = 11;
     this.sendAnonymously.Text            = "I prefer to send this report &anonymously.";
     this.sendAnonymously.CheckedChanged += new System.EventHandler(this.sendAnonymously_CheckedChanged);
     //
     // email
     //
     this.email.Location     = new System.Drawing.Point(120, 128);
     this.email.Name         = "email";
     this.email.Size         = new System.Drawing.Size(256, 20);
     this.email.TabIndex     = 10;
     this.email.TextChanged += new System.EventHandler(this.email_TextChanged);
     //
     // headerControl3
     //
     this.headerControl3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))),
                                                                   ((int)(((byte)(96)))), ((int)(((byte)(179)))));
     this.headerControl3.Dock      = System.Windows.Forms.DockStyle.Top;
     this.headerControl3.ForeColor = System.Drawing.Color.White;
     this.headerControl3.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl3.Image     = null;
     this.headerControl3.Location  = new System.Drawing.Point(0, 0);
     this.headerControl3.Name      = "headerControl3";
     this.headerControl3.Size      = new System.Drawing.Size(413, 58);
     this.headerControl3.TabIndex  = 3;
     this.headerControl3.TabStop   = false;
     this.headerControl3.Text      = "Do you want to be contacted by %CompanyName% regarding this problem?";
     //
     // label3
     //
     this.label3.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label3.Location  = new System.Drawing.Point(20, 69);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(381, 43);
     this.label3.TabIndex  = 10;
     this.label3.Text      = "If you want to be contacted by %CompanyName% regarding this error, please provide" +
                             " your e-mail address. This information will not be used for any other purpose.";
     //
     // continueSendReport
     //
     this.continueSendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.continueSendReport.Enabled   = false;
     this.continueSendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.continueSendReport.Location  = new System.Drawing.Point(295, 197);
     this.continueSendReport.Name      = "continueSendReport";
     this.continueSendReport.Size      = new System.Drawing.Size(105, 24);
     this.continueSendReport.TabIndex  = 12;
     this.continueSendReport.Text      = "&Send Error Report";
     this.continueSendReport.Click    += new System.EventHandler(this.continueSendReport_Click);
     //
     // poweredBy
     //
     this.poweredBy.Anchor =
         ((System.Windows.Forms.AnchorStyles)
              ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.poweredBy.Cursor   = System.Windows.Forms.Cursors.Hand;
     this.poweredBy.Location = new System.Drawing.Point(6, 730);
     this.poweredBy.Name     = "poweredBy";
     this.poweredBy.Size     = new System.Drawing.Size(112, 32);
     this.poweredBy.TabIndex = 5;
     this.poweredBy.TabStop  = false;
     this.poweredBy.Text     = "poweredBy1";
     //
     // ExceptionReportingForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.SystemColors.Window;
     this.ClientSize        = new System.Drawing.Size(434, 768);
     this.ControlBox        = false;
     this.Controls.Add(this.poweredBy);
     this.Controls.Add(this.panelEmail);
     this.Controls.Add(this.panelInformation);
     this.Controls.Add(this.panelSending);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "ExceptionReportingForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "%AppName%";
     this.TopMost         = true;
     this.panelInformation.ResumeLayout(false);
     this.panelInformation.PerformLayout();
     this.panelSending.ResumeLayout(false);
     this.panelEmail.ResumeLayout(false);
     this.panelEmail.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 28
0
        private void InitializeComponent()
        {
            panelTopContainer     = new Panel();
            buttonDeleteSelected  = new AvButtonT();
            buttonApplyFilter     = new AvButtonT();
            buttonAddATLB         = new RichReferenceButton();
            footerControl1        = new FooterControl();
            headerControl         = new HeaderControl();
            aircraftHeaderControl = new AircraftHeaderControl(currentAircraft, true, true);
            statusImageLinkLabel1 = new StatusImageLinkLabel();
            labelModel            = new Label();
            ATLBsViewer           = new ATLBsListView(currentAircraft);

            #region Context menu

            contextMenuStrip            = new ContextMenuStrip();
            toolStripMenuItemTitle      = new ToolStripMenuItem();
            toolStripSeparator1         = new ToolStripSeparator();
            toolStripMenuItemAdd        = new ToolStripMenuItem();
            toolStripMenuItemDelete     = new ToolStripMenuItem();
            toolStripSeparator2         = new ToolStripSeparator();
            toolStripMenuItemProperties = new ToolStripMenuItem();
            //
            // contextMenuStrip
            //
            contextMenuStrip.Items.AddRange(new ToolStripItem[]
            {
                toolStripMenuItemTitle,
                toolStripSeparator1,
                toolStripMenuItemAdd,
                toolStripMenuItemDelete,
                toolStripSeparator2,
                toolStripMenuItemProperties
            });
            contextMenuStrip.Size = new Size(179, 176);
            //
            // toolStripMenuItemTitle
            //
            toolStripMenuItemTitle.Text   = "Edit";
            toolStripMenuItemTitle.Click += toolStripMenuItemEdit_Click;
            //
            // toolStripMenuItemAdd
            //
            toolStripMenuItemAdd.Text    = "Add ATLB";
            toolStripMenuItemAdd.Enabled = permissionForCreate;
            toolStripMenuItemAdd.Click  += toolStripMenuItemAdd_Click;
            //
            // toolStripMenuItemDelete
            //
            toolStripMenuItemDelete.Text   = "Delete";
            toolStripMenuItemDelete.Click += toolStripMenuItemDelete_Click;
            //
            // toolStripMenuItemProperties
            //
            toolStripMenuItemProperties.Text   = "Properties";
            toolStripMenuItemProperties.Click += toolStripMenuItemProperties_Click;

            #endregion

            //
            // panelTopContainer
            //
            panelTopContainer.AutoSize     = true;
            panelTopContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelTopContainer.BackColor    = Color.FromArgb(211, 211, 211);
            panelTopContainer.Controls.Add(labelModel);
            panelTopContainer.Controls.Add(statusImageLinkLabel1);
            panelTopContainer.Controls.Add(buttonDeleteSelected);
            panelTopContainer.Controls.Add(buttonApplyFilter);
            panelTopContainer.Controls.Add(buttonAddATLB);
            panelTopContainer.Dock     = DockStyle.Top;
            panelTopContainer.Location = new Point(0, 0);
            panelTopContainer.Name     = "panelTopContainer";
            panelTopContainer.Size     = new Size(1042, 62);
            panelTopContainer.TabIndex = 14;
            //
            // buttonApplyFilter
            //
            buttonApplyFilter.Visible         = false;
            buttonApplyFilter.ActiveBackColor = Color.FromArgb(200, 200, 200);
            buttonApplyFilter.FontMain        = Css.HeaderControl.Fonts.PrimaryFont;
            buttonApplyFilter.ForeColorMain   = Css.HeaderControl.Colors.PrimaryColor;
            buttonApplyFilter.Icon            = icons.ApplyFilter;
            buttonApplyFilter.Size            = new Size(145, 59);
            buttonApplyFilter.TabIndex        = 19;
            buttonApplyFilter.TextMain        = "Apply filter";
            //buttonApplyFilter.Click += buttonApplyFilter_Click;
            //
            // buttonAddATLB
            //
            buttonAddATLB.Enabled            = permissionForCreate;
            buttonAddATLB.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonAddATLB.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddATLB.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddATLB.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddATLB.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddATLB.Icon                = icons.Add;
            buttonAddATLB.IconNotEnabled      = icons.AddGray;
            buttonAddATLB.ReflectionType      = ReflectionTypes.DisplayInNew;
            buttonAddATLB.Size                = new Size(152, 59);
            buttonAddATLB.TabIndex            = 15;
            buttonAddATLB.TextAlignMain       = ContentAlignment.BottomCenter;
            buttonAddATLB.TextAlignSecondary  = ContentAlignment.TopCenter;
            buttonAddATLB.TextMain            = "Add new";
            buttonAddATLB.TextSecondary       = "ATLB";
            buttonAddATLB.DisplayerRequested += buttonAddATLB_DisplayerRequested;
            //
            // buttonDeleteSelected
            //
            buttonDeleteSelected.ActiveBackColor    = Color.FromArgb(200, 200, 200);
            buttonDeleteSelected.Enabled            = false;
            buttonDeleteSelected.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteSelected.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteSelected.Icon               = icons.Delete;
            buttonDeleteSelected.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteSelected.PaddingSecondary   = new Padding(4, 0, 0, 0);
            buttonDeleteSelected.Size               = new Size(145, 59);
            buttonDeleteSelected.TabIndex           = 20;
            buttonDeleteSelected.TextAlignMain      = ContentAlignment.BottomLeft;
            buttonDeleteSelected.TextAlignSecondary = ContentAlignment.TopLeft;
            buttonDeleteSelected.TextMain           = "Delete";
            buttonDeleteSelected.TextSecondary      = "selected";
            buttonDeleteSelected.Click             += buttonDeleteSelected_Click;
            //
            // footerControl1
            //
            footerControl1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            footerControl1.BackColor    = Color.Transparent;
            footerControl1.Dock         = DockStyle.Bottom;
            footerControl1.Location     = new Point(0, 568);
            footerControl1.Margin       = new Padding(0);
            footerControl1.MaximumSize  = new Size(0, 48);
            footerControl1.MinimumSize  = new Size(0, 48);
            footerControl1.Name         = "footerControl1";
            footerControl1.Size         = new Size(1042, 48);
            footerControl1.TabIndex     = 10;
            //
            // headerControl
            //
            headerControl.ActionControlSplitterVisible         = true;
            headerControl.ContextActionControl.ShowPrintButton = true;
            headerControl.BackColor       = Color.Transparent;
            headerControl.BackgroundImage = Resources.HeaderBar;
            headerControl.Controls.Add(aircraftHeaderControl);
            headerControl.Dock = DockStyle.Top;
            headerControl.EditDisplayerText  = "Component Status Operator";
            headerControl.EditReflectionType = ReflectionTypes.DisplayInNew;
            //headerControl.EditDisplayerRequested += headerControl_EditDisplayerRequested;
            headerControl.ActionControl.ShowEditButton = false;
            headerControl.Location = new Point(0, 0);
            headerControl.Name     = "headerControl";
            headerControl.Size     = new Size(1042, 58);
            headerControl.TabIndex = 6;
            headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += PrintButton_DisplayerRequested;
            headerControl.ReloadRised += headerControl1_ReloadRised;
            headerControl.ContextActionControl.ButtonHelp.TopicID = "component-status.html";
            //
            // statusImageLinkLabel1
            //
            statusImageLinkLabel1.ActiveLinkColor        = Color.Black;
            statusImageLinkLabel1.Enabled                = false;
            statusImageLinkLabel1.HoveredLinkColor       = Color.Black;
            statusImageLinkLabel1.ImageBackColor         = Color.Transparent;
            statusImageLinkLabel1.ImageLayout            = ImageLayout.Center;
            statusImageLinkLabel1.LinkColor              = Color.DimGray;
            statusImageLinkLabel1.LinkMouseCapturedColor = Color.Empty;
            statusImageLinkLabel1.Location               = new Point(28, 3);
            statusImageLinkLabel1.Margin    = new Padding(0);
            statusImageLinkLabel1.Name      = "statusImageLinkLabel1";
            statusImageLinkLabel1.Size      = new Size(412, 27);
            statusImageLinkLabel1.Status    = Statuses.Satisfactory;
            statusImageLinkLabel1.TabIndex  = 16;
            statusImageLinkLabel1.Text      = "Component Status";
            statusImageLinkLabel1.TextAlign = ContentAlignment.MiddleLeft;
            statusImageLinkLabel1.TextFont  = new Font("Tahoma", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 204);
            //
            // labelModel
            //
            labelModel.AutoSize  = true;
            labelModel.Font      = new Font("Tahoma", 12F, FontStyle.Regular, GraphicsUnit.Point, 204);
            labelModel.ForeColor = Color.DimGray;
            labelModel.Location  = new Point(57, 30);
            labelModel.Name      = "labelModel";
            labelModel.Size      = new Size(47, 19);
            labelModel.TabIndex  = 21;
            labelModel.Text      = "Date as of: ";
            //
            // ATLBsViewer
            //
            ATLBsViewer.ContextMenuStrip      = contextMenuStrip;
            ATLBsViewer.Location              = new Point(panelTopContainer.Left, panelTopContainer.Bottom);
            ATLBsViewer.Size                  = new Size(Width, Height - headerControl.Height - footerControl1.Height - panelTopContainer.Height);
            ATLBsViewer.SelectedItemsChanged += componentStatusesViewer_SelectedItemsChanged;
            //
            // ComponentStatusControl
            //
            BackColor = Color.FromArgb(241, 241, 241);
            Controls.Add(footerControl1);
            Controls.Add(panelTopContainer);
            Controls.Add(ATLBsViewer);
            Controls.Add(headerControl);
            Size = new Size(1042, 616);
        }
Exemplo n.º 29
0
        private void InitializeComponents()
        {
            //
            //  Controls
            //

            this.positionHeaderControl            = new HeaderControl();
            this.positionHeaderControl.AutoScroll = true;
            this.positionHeaderControl.SuspendLayout();
            this.positionHeaderControl.HeaderStyle = HeaderStyle.SubHeading;
            this.positionHeaderControl.Dock        = System.Windows.Forms.DockStyle.Top;
            this.positionHeaderControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.positionHeaderControl.Location    = new System.Drawing.Point(167, 4);
            this.positionHeaderControl.Name        = "positionHeaderControl";
            this.positionHeaderControl.Size        = new System.Drawing.Size(160, 120);
            this.positionHeaderControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.positionHeaderControl.TabIndex    = 0;
            this.positionHeaderControl.Text        = "Positions";
            this.positionHeaderControl.Controls.Add(new PositionIntradayList(controller));

            this.orderHeaderControl            = new HeaderControl();
            this.orderHeaderControl.AutoScroll = true;
            this.orderHeaderControl.SuspendLayout();
            this.orderHeaderControl.HeaderStyle = HeaderStyle.SubHeading;
            this.orderHeaderControl.Dock        = System.Windows.Forms.DockStyle.Top;
            this.orderHeaderControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.orderHeaderControl.Location    = new System.Drawing.Point(167, 4);
            this.orderHeaderControl.Name        = "orderHeaderControl";
            this.orderHeaderControl.Size        = new System.Drawing.Size(160, 120);
            this.orderHeaderControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.orderHeaderControl.TabIndex    = 0;
            this.orderHeaderControl.Text        = "Orders";
            this.orderHeaderControl.Controls.Add(new OrderList(controller));

            this.releaseHeaderControl            = new HeaderControl();
            this.releaseHeaderControl.AutoScroll = true;
            this.releaseHeaderControl.SuspendLayout();
            this.releaseHeaderControl.HeaderStyle = HeaderStyle.SubHeading;
            this.releaseHeaderControl.Dock        = System.Windows.Forms.DockStyle.Top;
            this.releaseHeaderControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.releaseHeaderControl.Location    = new System.Drawing.Point(167, 4);
            this.releaseHeaderControl.Name        = "releaseHeaderControl";
            this.releaseHeaderControl.Size        = new System.Drawing.Size(160, 120);
            this.releaseHeaderControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.releaseHeaderControl.TabIndex    = 0;
            this.releaseHeaderControl.Text        = "Releases";
            this.releaseHeaderControl.Controls.Add(new ReleaseList(controller));

            this.executionHeaderControl            = new HeaderControl();
            this.executionHeaderControl.AutoScroll = true;
            this.executionHeaderControl.SuspendLayout();
            this.executionHeaderControl.HeaderStyle = HeaderStyle.SubHeading;
            this.executionHeaderControl.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.executionHeaderControl.HeaderFont  = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.executionHeaderControl.Location    = new System.Drawing.Point(167, 4);
            this.executionHeaderControl.Name        = "executionHeaderControl";
            this.executionHeaderControl.Size        = new System.Drawing.Size(160, 120);
            this.executionHeaderControl.MinimumSize = new System.Drawing.Size(160, 120);
            this.executionHeaderControl.TabIndex    = 0;
            this.executionHeaderControl.Text        = "Executions";
            this.executionHeaderControl.Controls.Add(new ExecutionList(controller));

            Splitter splitter1 = new Splitter();
            Splitter splitter2 = new Splitter();
            Splitter splitter3 = new Splitter();
            Splitter splitter4 = new Splitter();

            splitter1.Dock      = DockStyle.Top;
            splitter2.Dock      = DockStyle.Top;
            splitter3.Dock      = DockStyle.Top;
            splitter4.Dock      = DockStyle.Top;
            splitter1.Size      = new System.Drawing.Size(10, 6);
            splitter2.Size      = new System.Drawing.Size(10, 6);
            splitter3.Size      = new System.Drawing.Size(10, 6);
            splitter4.Size      = new System.Drawing.Size(10, 6);
            splitter1.BackColor = System.Drawing.Color.LightSteelBlue;
            splitter2.BackColor = System.Drawing.Color.LightSteelBlue;
            splitter3.BackColor = System.Drawing.Color.LightSteelBlue;
            splitter4.BackColor = System.Drawing.Color.LightSteelBlue;

            this.Controls.AddRange(new Control []
            {
                executionHeaderControl,
                splitter1,
                releaseHeaderControl,
                splitter2,
                orderHeaderControl,
                splitter3,
                positionHeaderControl
            });

            this.orderHeaderControl.ResumeLayout(false);
            this.releaseHeaderControl.ResumeLayout(false);
            this.positionHeaderControl.ResumeLayout(false);
            this.executionHeaderControl.ResumeLayout(false);
        }
 void InitializeComponent() {
     this.quitButton = new System.Windows.Forms.Button();
     this.continueButton = new System.Windows.Forms.Button();
     this.headerControl1 = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.errorMessage = new SmartAssembly.SmartExceptionsCore.UI.AutoHeightLabel();
     this.poweredBy = new SmartAssembly.SmartExceptionsCore.UI.PoweredBy();
     this.SuspendLayout();
     // 
     // quitButton
     // 
     this.quitButton.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.quitButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.quitButton.Location = new System.Drawing.Point(308, 188);
     this.quitButton.Name = "quitButton";
     this.quitButton.Size = new System.Drawing.Size(100, 24);
     this.quitButton.TabIndex = 0;
     this.quitButton.Text = "&Quit";
     this.quitButton.Click += new System.EventHandler(this.quitButton_Click);
     // 
     // continueButton
     // 
     this.continueButton.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.continueButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.continueButton.Location = new System.Drawing.Point(202, 188);
     this.continueButton.Name = "continueButton";
     this.continueButton.Size = new System.Drawing.Size(100, 24);
     this.continueButton.TabIndex = 1;
     this.continueButton.Text = "&Continue";
     this.continueButton.Click += new System.EventHandler(this.continueButton_Click);
     // 
     // headerControl1
     // 
     this.headerControl1.BackColor = System.Drawing.Color.FromArgb(((System.Byte) (36)), ((System.Byte) (96)),
         ((System.Byte) (179)));
     this.headerControl1.Dock = System.Windows.Forms.DockStyle.Top;
     this.headerControl1.ForeColor = System.Drawing.Color.White;
     this.headerControl1.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Warning;
     this.headerControl1.Image = null;
     this.headerControl1.Location = new System.Drawing.Point(0, 0);
     this.headerControl1.Name = "headerControl1";
     this.headerControl1.Size = new System.Drawing.Size(418, 58);
     this.headerControl1.TabIndex = 7;
     this.headerControl1.TabStop = false;
     this.headerControl1.Text = "%AppName% attempted to perform an operation not allowed by the security policy.";
     // 
     // errorMessage
     // 
     this.errorMessage.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
               | System.Windows.Forms.AnchorStyles.Right)));
     this.errorMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.errorMessage.Location = new System.Drawing.Point(20, 72);
     this.errorMessage.Name = "errorMessage";
     this.errorMessage.Size = new System.Drawing.Size(382, 13);
     this.errorMessage.TabIndex = 14;
     this.errorMessage.Text = "errorMessage";
     this.errorMessage.UseMnemonic = false;
     // 
     // poweredBy
     // 
     this.poweredBy.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.poweredBy.Cursor = System.Windows.Forms.Cursors.Hand;
     this.poweredBy.Location = new System.Drawing.Point(6, 186);
     this.poweredBy.Name = "poweredBy";
     this.poweredBy.Size = new System.Drawing.Size(120, 32);
     this.poweredBy.TabIndex = 15;
     this.poweredBy.TabStop = false;
     this.poweredBy.Text = "poweredBy1";
     // 
     // SecurityExceptionForm
     // 
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Window;
     this.ClientSize = new System.Drawing.Size(418, 224);
     this.ControlBox = false;
     this.Controls.Add(this.continueButton);
     this.Controls.Add(this.quitButton);
     this.Controls.Add(this.headerControl1);
     this.Controls.Add(this.errorMessage);
     this.Controls.Add(this.poweredBy);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "SecurityExceptionForm";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "%AppName%";
     this.ResumeLayout(false);
 }
Exemplo n.º 31
0
 private static IDictionary<string, IHeaderFieldParser> CreateHeaderFieldList()
 {
     // NOTE: Header fields not mentioned here are treated as unstructured
       fieldMap = new Dictionary<string,
     IHeaderFieldParser>();
     fieldMap["content-return"] = new
     HeaderX400ContentReturn();
     fieldMap["x400-content-return"] = new HeaderX400ContentReturn();
     fieldMap["delivery-date"] = new HeaderDeliveryDate();
     fieldMap["priority"] = new HeaderPriority();
     fieldMap["importance"] = new HeaderImportance();
     fieldMap["sensitivity"] = new HeaderSensitivity();
     fieldMap["reply-by"] = new HeaderDate();
     fieldMap["x400-content-identifier"] = new HeaderX400ContentIdentifier();
     fieldMap["x400-received"] = new HeaderX400Received();
     fieldMap["x400-mts-identifier"] = new HeaderX400MtsIdentifier();
     fieldMap["x400-trace"] = new HeaderX400Received();
     fieldMap["x400-originator"] = new HeaderX400Originator();
     fieldMap["x400-recipients"] = new HeaderX400Recipients();
     fieldMap["conversion"] = new HeaderConversion();
     fieldMap["conversion-with-loss"] = new HeaderConversionWithLoss();
     fieldMap["supersedes"] = new HeaderSupersedes();
     fieldMap["expires"] = new HeaderDate();
     fieldMap["autoforwarded"] = new HeaderAutoforwarded();
     fieldMap["generate-delivery-report"] = new HeaderGenerateDeliveryReport();
     fieldMap["incomplete-copy"] = new HeaderIncompleteCopy();
     fieldMap["prevent-nondelivery-report"] = new HeaderPreventNondeliveryReport();
     fieldMap["alternate-recipient"] = new HeaderAlternateRecipient();
     fieldMap["disclose-recipients"] = new HeaderDiscloseRecipients();
     fieldMap["expanded-date"] = new HeaderExpandedDate();
     fieldMap["newsgroups"] = new HeaderNewsgroups();
     fieldMap["path"] = new HeaderPath();
     fieldMap["archive"] = new HeaderArchive();
     fieldMap["control"] = new HeaderControl();
     fieldMap["distribution"] = new HeaderDistribution();
     fieldMap["followup-to"] = new HeaderFollowupTo();
     fieldMap["injection-date"] = new HeaderInjectionDate();
     fieldMap["injection-info"] = new HeaderInjectionInfo();
     fieldMap["user-agent"] = new HeaderUserAgent();
     fieldMap["xref"] = new HeaderXref();
     fieldMap["nntp-posting-date"] = new HeaderInjectionDate();
     fieldMap["nntp-posting-host"] = new HeaderNntpPostingHost();
     fieldMap["accept-language"] = new HeaderAcceptLanguage();
     fieldMap["archived-at"] = new HeaderArchivedAt();
     fieldMap["authentication-results"] = new HeaderAuthenticationResults();
     fieldMap["auto-submitted"] = new HeaderAutoSubmitted();
     fieldMap["base"] = new HeaderContentBase();
     fieldMap["bcc"] = new HeaderBcc();
     fieldMap["cc"] = new HeaderTo();
     fieldMap["content-base"] = new HeaderContentBase();
     fieldMap["content-disposition"] = new HeaderContentDisposition();
     fieldMap["content-duration"] = new HeaderContentDuration();
     fieldMap["content-id"] = new HeaderContentId();
     fieldMap["content-language"] = new HeaderContentLanguage();
     fieldMap["content-location"] = new HeaderContentLocation();
     fieldMap["content-md5"] = new HeaderContentMd5();
     fieldMap["content-transfer-encoding"] = new HeaderContentTransferEncoding();
     fieldMap["content-type"] = new HeaderContentType();
     fieldMap["date"] = new HeaderDate();
     fieldMap["deferred-delivery"] = new HeaderDeferredDelivery();
     fieldMap["disposition-notification-options"] = new
       HeaderDispositionNotificationOptions();
     fieldMap["disposition-notification-to"] = new HeaderDispositionNotificationTo();
     fieldMap["mmhs-authorizing-users"] = new HeaderMmhsAuthorizingUsers();
     fieldMap["dkim-signature"] = new HeaderDkimSignature();
     fieldMap["ediint-features"] = new HeaderEdiintFeatures();
     fieldMap["eesst-version"] = new HeaderEesstVersion();
     fieldMap["encoding"] = new HeaderEncoding();
     fieldMap["encrypted"] = new HeaderEncrypted();
     fieldMap["expiry-date"] = new HeaderDate();
     fieldMap["from"] = new HeaderFrom();
     fieldMap["in-reply-to"] = new HeaderInReplyTo();
     fieldMap["jabber-id"] = new HeaderJabberId();
     fieldMap["keywords"] = new HeaderKeywords();
     fieldMap["language"] = new HeaderLanguage();
     fieldMap["latest-delivery-time"] = new HeaderLatestDeliveryTime();
     fieldMap["list-id"] = new HeaderListId();
     fieldMap["message-context"] = new HeaderMessageContext();
     fieldMap["message-id"] = new HeaderMessageId();
     fieldMap["mime-version"] = new HeaderMimeVersion();
     fieldMap["mmhs-acp127-message-identifier"] = new
       HeaderMmhsAcp127MessageIdentifier();
     fieldMap["mmhs-codress-message-indicator"] = new
       HeaderMmhsCodressMessageIndicator();
     fieldMap["mmhs-copy-precedence"] = new HeaderMmhsCopyPrecedence();
     fieldMap["mmhs-exempted-address"] = new HeaderMmhsExemptedAddress();
     fieldMap["mmhs-extended-authorisation-info"] = new
       HeaderMmhsExtendedAuthorisationInfo();
     fieldMap["mmhs-handling-instructions"] = new HeaderMmhsHandlingInstructions();
     fieldMap["mmhs-message-instructions"] = new HeaderMmhsMessageInstructions();
     fieldMap["mmhs-message-type"] = new HeaderMmhsMessageType();
     fieldMap["mmhs-originator-plad"] = new HeaderMmhsOriginatorPlad();
     fieldMap["mmhs-originator-reference"] = new HeaderMmhsOriginatorReference();
     fieldMap["mmhs-other-recipients-indicator-cc"] = new
       HeaderMmhsOtherRecipientsIndicatorCc();
     fieldMap["mmhs-other-recipients-indicator-to"] = new
       HeaderMmhsOtherRecipientsIndicatorTo();
     fieldMap["mmhs-primary-precedence"] = new HeaderMmhsPrimaryPrecedence();
     fieldMap["mmhs-subject-indicator-codes"] = new
       HeaderMmhsSubjectIndicatorCodes();
     fieldMap["mt-priority"] = new HeaderMtPriority();
     fieldMap["obsoletes"] = new HeaderObsoletes();
     fieldMap["original-from"] = new HeaderFrom();
     fieldMap["original-message-id"] = new HeaderMessageId();
     fieldMap["original-recipient"] = new HeaderOriginalRecipient();
     fieldMap["received"] = new HeaderReceived();
     fieldMap["received-spf"] = new HeaderReceivedSpf();
     fieldMap["references"] = new HeaderInReplyTo();
     fieldMap["reply-to"] = new HeaderResentTo();
     fieldMap["require-recipient-valid-since"] = new
       HeaderRequireRecipientValidSince();
     fieldMap["resent-bcc"] = new HeaderBcc();
     fieldMap["resent-cc"] = new HeaderResentTo();
     fieldMap["resent-date"] = new HeaderDate();
     fieldMap["resent-from"] = new HeaderFrom();
     fieldMap["resent-message-id"] = new HeaderMessageId();
     fieldMap["resent-reply-to"] = new HeaderResentTo();
     fieldMap["resent-sender"] = new HeaderSender();
     fieldMap["resent-to"] = new HeaderResentTo();
     fieldMap["return-path"] = new HeaderReturnPath();
     fieldMap["sender"] = new HeaderSender();
     fieldMap["sio-label"] = new HeaderSioLabel();
     fieldMap["sio-label-history"] = new HeaderSioLabel();
     fieldMap["solicitation"] = new HeaderSolicitation();
     fieldMap["to"] = new HeaderTo();
     fieldMap["vbr-info"] = new HeaderVbrInfo();
     fieldMap["x-archived-at"] = new HeaderXArchivedAt();
     fieldMap["x-mittente"] = new HeaderSender();
     fieldMap["x-ricevuta"] = new HeaderXRicevuta();
     fieldMap["x-riferimento-message-id"] = new HeaderMessageId();
     fieldMap["x-tiporicevuta"] = new HeaderXTiporicevuta();
     fieldMap["x-trasporto"] = new HeaderXTrasporto();
     fieldMap["x-verificasicurezza"] = new HeaderXVerificasicurezza();
       return fieldMap;
 }
 void InitializeComponent() {
     this.panelInformation = new System.Windows.Forms.Panel();
     this.linkLabel1 = new System.Windows.Forms.LinkLabel();
     this.debug = new System.Windows.Forms.Button();
     this.continueCheckBox = new System.Windows.Forms.CheckBox();
     this.pleaseTellTitle = new System.Windows.Forms.Label();
     this.dontSendReport = new System.Windows.Forms.Button();
     this.sendReport = new System.Windows.Forms.Button();
     this.pleaseTellMessage = new System.Windows.Forms.Label();
     this.headerControl1 = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.errorMessage = new SmartAssembly.SmartExceptionsCore.UI.AutoHeightLabel();
     this.saveAsFile = new System.Windows.Forms.Button();
     this.panelSending = new System.Windows.Forms.Panel();
     this.saveReport = new System.Windows.Forms.Button();
     this.cancelSending = new System.Windows.Forms.Button();
     this.ok = new System.Windows.Forms.Button();
     this.retrySending = new System.Windows.Forms.Button();
     this.waitSendingReport = new SmartAssembly.SmartExceptionsCore.UI.WaitSendingReportControl();
     this.headerControl2 = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.preparingFeedback = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.connectingFeedback = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.transferingFeedback = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.completedFeedback = new SmartAssembly.SmartExceptionsCore.UI.FeedbackControl();
     this.panelEmail = new System.Windows.Forms.Panel();
     this.labelEmail = new System.Windows.Forms.Label();
     this.sendAnonymously = new System.Windows.Forms.CheckBox();
     this.email = new System.Windows.Forms.TextBox();
     this.headerControl3 = new SmartAssembly.SmartExceptionsCore.UI.HeaderControl();
     this.label3 = new System.Windows.Forms.Label();
     this.continueSendReport = new System.Windows.Forms.Button();
     this.poweredBy = new SmartAssembly.SmartExceptionsCore.UI.PoweredBy();
     this.panelInformation.SuspendLayout();
     this.panelSending.SuspendLayout();
     this.panelEmail.SuspendLayout();
     this.SuspendLayout();
     // 
     // panelInformation
     // 
     this.panelInformation.Controls.Add(this.linkLabel1);
     this.panelInformation.Controls.Add(this.debug);
     this.panelInformation.Controls.Add(this.continueCheckBox);
     this.panelInformation.Controls.Add(this.pleaseTellTitle);
     this.panelInformation.Controls.Add(this.dontSendReport);
     this.panelInformation.Controls.Add(this.sendReport);
     this.panelInformation.Controls.Add(this.pleaseTellMessage);
     this.panelInformation.Controls.Add(this.headerControl1);
     this.panelInformation.Controls.Add(this.errorMessage);
     this.panelInformation.Controls.Add(this.saveAsFile);
     this.panelInformation.Location = new System.Drawing.Point(8, 8);
     this.panelInformation.Name = "panelInformation";
     this.panelInformation.Size = new System.Drawing.Size(413, 240);
     this.panelInformation.TabIndex = 0;
     // 
     // linkLabel1
     // 
     this.linkLabel1.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.linkLabel1.AutoSize = true;
     this.linkLabel1.Location = new System.Drawing.Point(241, 182);
     this.linkLabel1.Name = "linkLabel1";
     this.linkLabel1.Size = new System.Drawing.Size(160, 13);
     this.linkLabel1.TabIndex = 15;
     this.linkLabel1.TabStop = true;
     this.linkLabel1.Text = "http://withSIX.com/support";
     this.linkLabel1.LinkClicked +=
         new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     // 
     // debug
     // 
     this.debug.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.debug.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.debug.Location = new System.Drawing.Point(66, 205);
     this.debug.Name = "debug";
     this.debug.Size = new System.Drawing.Size(64, 24);
     this.debug.TabIndex = 13;
     this.debug.Text = "Debug";
     this.debug.Visible = false;
     this.debug.Click += new System.EventHandler(this.debug_Click);
     // 
     // continueCheckBox
     // 
     this.continueCheckBox.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.continueCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.continueCheckBox.Location = new System.Drawing.Point(22, 99);
     this.continueCheckBox.Name = "continueCheckBox";
     this.continueCheckBox.Size = new System.Drawing.Size(226, 16);
     this.continueCheckBox.TabIndex = 14;
     this.continueCheckBox.Text = "Ignore this error and attempt to &continue.";
     this.continueCheckBox.CheckedChanged += new System.EventHandler(this.continueCheckBox_CheckedChanged);
     // 
     // pleaseTellTitle
     // 
     this.pleaseTellTitle.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
               | System.Windows.Forms.AnchorStyles.Right)));
     this.pleaseTellTitle.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.pleaseTellTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
         System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte) (0)));
     this.pleaseTellTitle.Location = new System.Drawing.Point(20, 124);
     this.pleaseTellTitle.Name = "pleaseTellTitle";
     this.pleaseTellTitle.Size = new System.Drawing.Size(381, 16);
     this.pleaseTellTitle.TabIndex = 11;
     this.pleaseTellTitle.Text = "Please tell %CompanyName% about this problem.";
     // 
     // dontSendReport
     // 
     this.dontSendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.dontSendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.dontSendReport.Location = new System.Drawing.Point(325, 205);
     this.dontSendReport.Name = "dontSendReport";
     this.dontSendReport.Size = new System.Drawing.Size(75, 24);
     this.dontSendReport.TabIndex = 6;
     this.dontSendReport.Text = "&Don\'t Send";
     this.dontSendReport.Click += new System.EventHandler(this.dontSendReport_Click);
     // 
     // sendReport
     // 
     this.sendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.sendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.sendReport.Location = new System.Drawing.Point(214, 205);
     this.sendReport.Name = "sendReport";
     this.sendReport.Size = new System.Drawing.Size(105, 24);
     this.sendReport.TabIndex = 9;
     this.sendReport.Text = "&Send Error Report";
     this.sendReport.Click += new System.EventHandler(this.sendReport_Click);
     // 
     // pleaseTellMessage
     // 
     this.pleaseTellMessage.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
               | System.Windows.Forms.AnchorStyles.Right)));
     this.pleaseTellMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.pleaseTellMessage.Location = new System.Drawing.Point(20, 140);
     this.pleaseTellMessage.Name = "pleaseTellMessage";
     this.pleaseTellMessage.Size = new System.Drawing.Size(381, 55);
     this.pleaseTellMessage.TabIndex = 12;
     this.pleaseTellMessage.Text =
         "To help improve the software you use, %CompanyName% is interested in learning mor" +
         "e about this error. We have created a report about the error for you to send to " +
         "us.";
     // 
     // headerControl1
     // 
     this.headerControl1.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (36)))),
         ((int) (((byte) (96)))), ((int) (((byte) (179)))));
     this.headerControl1.Dock = System.Windows.Forms.DockStyle.Top;
     this.headerControl1.ForeColor = System.Drawing.Color.White;
     this.headerControl1.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl1.Image = null;
     this.headerControl1.Location = new System.Drawing.Point(0, 0);
     this.headerControl1.Name = "headerControl1";
     this.headerControl1.Size = new System.Drawing.Size(413, 58);
     this.headerControl1.TabIndex = 3;
     this.headerControl1.TabStop = false;
     this.headerControl1.Text = "%AppName% has encountered a problem.\nWe are sorry for the inconvenience.";
     // 
     // errorMessage
     // 
     this.errorMessage.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
               | System.Windows.Forms.AnchorStyles.Right)));
     this.errorMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.errorMessage.Location = new System.Drawing.Point(20, 69);
     this.errorMessage.Name = "errorMessage";
     this.errorMessage.Size = new System.Drawing.Size(381, 13);
     this.errorMessage.TabIndex = 10;
     this.errorMessage.Text = "errorMessage";
     this.errorMessage.UseMnemonic = false;
     // 
     // saveAsFile
     // 
     this.saveAsFile.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveAsFile.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.saveAsFile.Location = new System.Drawing.Point(136, 205);
     this.saveAsFile.Name = "saveAsFile";
     this.saveAsFile.Size = new System.Drawing.Size(72, 24);
     this.saveAsFile.TabIndex = 11;
     this.saveAsFile.Text = "Save as &File";
     this.saveAsFile.Click += new System.EventHandler(this.saveAsFile_Click);
     // 
     // panelSending
     // 
     this.panelSending.Controls.Add(this.saveReport);
     this.panelSending.Controls.Add(this.cancelSending);
     this.panelSending.Controls.Add(this.ok);
     this.panelSending.Controls.Add(this.retrySending);
     this.panelSending.Controls.Add(this.waitSendingReport);
     this.panelSending.Controls.Add(this.headerControl2);
     this.panelSending.Controls.Add(this.preparingFeedback);
     this.panelSending.Controls.Add(this.connectingFeedback);
     this.panelSending.Controls.Add(this.transferingFeedback);
     this.panelSending.Controls.Add(this.completedFeedback);
     this.panelSending.Location = new System.Drawing.Point(8, 264);
     this.panelSending.Name = "panelSending";
     this.panelSending.Size = new System.Drawing.Size(413, 232);
     this.panelSending.TabIndex = 2;
     this.panelSending.Visible = false;
     // 
     // saveReport
     // 
     this.saveReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.saveReport.Location = new System.Drawing.Point(146, 197);
     this.saveReport.Name = "saveReport";
     this.saveReport.Size = new System.Drawing.Size(80, 24);
     this.saveReport.TabIndex = 25;
     this.saveReport.Text = "&Save Report";
     this.saveReport.Visible = false;
     this.saveReport.Click += new System.EventHandler(this.saveReport_Click);
     // 
     // cancelSending
     // 
     this.cancelSending.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelSending.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cancelSending.Location = new System.Drawing.Point(320, 197);
     this.cancelSending.Name = "cancelSending";
     this.cancelSending.Size = new System.Drawing.Size(80, 24);
     this.cancelSending.TabIndex = 10;
     this.cancelSending.Text = "&Cancel";
     this.cancelSending.Click += new System.EventHandler(this.cancelSending_Click);
     // 
     // ok
     // 
     this.ok.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ok.Enabled = false;
     this.ok.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.ok.Location = new System.Drawing.Point(232, 197);
     this.ok.Name = "ok";
     this.ok.Size = new System.Drawing.Size(80, 24);
     this.ok.TabIndex = 22;
     this.ok.Text = "&OK";
     this.ok.Click += new System.EventHandler(this.ok_Click);
     // 
     // retrySending
     // 
     this.retrySending.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.retrySending.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.retrySending.Location = new System.Drawing.Point(144, 197);
     this.retrySending.Name = "retrySending";
     this.retrySending.Size = new System.Drawing.Size(80, 24);
     this.retrySending.TabIndex = 23;
     this.retrySending.Text = "&Retry";
     this.retrySending.Visible = false;
     this.retrySending.Click += new System.EventHandler(this.retrySending_Click);
     // 
     // waitSendingReport
     // 
     this.waitSendingReport.Location = new System.Drawing.Point(87, 145);
     this.waitSendingReport.Name = "waitSendingReport";
     this.waitSendingReport.Size = new System.Drawing.Size(250, 42);
     this.waitSendingReport.TabIndex = 11;
     this.waitSendingReport.TabStop = false;
     this.waitSendingReport.Visible = false;
     // 
     // headerControl2
     // 
     this.headerControl2.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (36)))),
         ((int) (((byte) (96)))), ((int) (((byte) (179)))));
     this.headerControl2.Dock = System.Windows.Forms.DockStyle.Top;
     this.headerControl2.ForeColor = System.Drawing.Color.White;
     this.headerControl2.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl2.Image = null;
     this.headerControl2.Location = new System.Drawing.Point(0, 0);
     this.headerControl2.Name = "headerControl2";
     this.headerControl2.Size = new System.Drawing.Size(413, 58);
     this.headerControl2.TabIndex = 24;
     this.headerControl2.TabStop = false;
     this.headerControl2.Text =
         "Please wait while %AppName% is sending the report to %CompanyName% through the In" +
         "ternet.";
     // 
     // preparingFeedback
     // 
     this.preparingFeedback.Location = new System.Drawing.Point(24, 72);
     this.preparingFeedback.Name = "preparingFeedback";
     this.preparingFeedback.Size = new System.Drawing.Size(368, 16);
     this.preparingFeedback.TabIndex = 18;
     this.preparingFeedback.TabStop = false;
     this.preparingFeedback.Text = "Preparing the error report.";
     // 
     // connectingFeedback
     // 
     this.connectingFeedback.Location = new System.Drawing.Point(24, 96);
     this.connectingFeedback.Name = "connectingFeedback";
     this.connectingFeedback.Size = new System.Drawing.Size(368, 16);
     this.connectingFeedback.TabIndex = 19;
     this.connectingFeedback.TabStop = false;
     this.connectingFeedback.Text = "Connecting to server.";
     // 
     // transferingFeedback
     // 
     this.transferingFeedback.Location = new System.Drawing.Point(24, 120);
     this.transferingFeedback.Name = "transferingFeedback";
     this.transferingFeedback.Size = new System.Drawing.Size(368, 16);
     this.transferingFeedback.TabIndex = 20;
     this.transferingFeedback.TabStop = false;
     this.transferingFeedback.Text = "Transferring report.";
     // 
     // completedFeedback
     // 
     this.completedFeedback.Location = new System.Drawing.Point(24, 144);
     this.completedFeedback.Name = "completedFeedback";
     this.completedFeedback.Size = new System.Drawing.Size(368, 16);
     this.completedFeedback.TabIndex = 21;
     this.completedFeedback.TabStop = false;
     this.completedFeedback.Text = "Error reporting completed. Thank you.";
     // 
     // panelEmail
     // 
     this.panelEmail.Controls.Add(this.labelEmail);
     this.panelEmail.Controls.Add(this.sendAnonymously);
     this.panelEmail.Controls.Add(this.email);
     this.panelEmail.Controls.Add(this.headerControl3);
     this.panelEmail.Controls.Add(this.label3);
     this.panelEmail.Controls.Add(this.continueSendReport);
     this.panelEmail.Location = new System.Drawing.Point(11, 512);
     this.panelEmail.Name = "panelEmail";
     this.panelEmail.Size = new System.Drawing.Size(413, 232);
     this.panelEmail.TabIndex = 4;
     this.panelEmail.Visible = false;
     // 
     // labelEmail
     // 
     this.labelEmail.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.labelEmail.Location = new System.Drawing.Point(20, 131);
     this.labelEmail.Name = "labelEmail";
     this.labelEmail.Size = new System.Drawing.Size(100, 16);
     this.labelEmail.TabIndex = 9;
     this.labelEmail.Text = "&Email address:";
     // 
     // sendAnonymously
     // 
     this.sendAnonymously.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.sendAnonymously.Location = new System.Drawing.Point(120, 160);
     this.sendAnonymously.Name = "sendAnonymously";
     this.sendAnonymously.Size = new System.Drawing.Size(232, 16);
     this.sendAnonymously.TabIndex = 11;
     this.sendAnonymously.Text = "I prefer to send this report &anonymously.";
     this.sendAnonymously.CheckedChanged += new System.EventHandler(this.sendAnonymously_CheckedChanged);
     // 
     // email
     // 
     this.email.Location = new System.Drawing.Point(120, 128);
     this.email.Name = "email";
     this.email.Size = new System.Drawing.Size(256, 20);
     this.email.TabIndex = 10;
     this.email.TextChanged += new System.EventHandler(this.email_TextChanged);
     // 
     // headerControl3
     // 
     this.headerControl3.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (36)))),
         ((int) (((byte) (96)))), ((int) (((byte) (179)))));
     this.headerControl3.Dock = System.Windows.Forms.DockStyle.Top;
     this.headerControl3.ForeColor = System.Drawing.Color.White;
     this.headerControl3.IconState = SmartAssembly.SmartExceptionsCore.UI.IconState.Error;
     this.headerControl3.Image = null;
     this.headerControl3.Location = new System.Drawing.Point(0, 0);
     this.headerControl3.Name = "headerControl3";
     this.headerControl3.Size = new System.Drawing.Size(413, 58);
     this.headerControl3.TabIndex = 3;
     this.headerControl3.TabStop = false;
     this.headerControl3.Text = "Do you want to be contacted by %CompanyName% regarding this problem?";
     // 
     // label3
     // 
     this.label3.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
               | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label3.Location = new System.Drawing.Point(20, 69);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(381, 43);
     this.label3.TabIndex = 10;
     this.label3.Text = "If you want to be contacted by %CompanyName% regarding this error, please provide" +
                        " your e-mail address. This information will not be used for any other purpose.";
     // 
     // continueSendReport
     // 
     this.continueSendReport.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.continueSendReport.Enabled = false;
     this.continueSendReport.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.continueSendReport.Location = new System.Drawing.Point(295, 197);
     this.continueSendReport.Name = "continueSendReport";
     this.continueSendReport.Size = new System.Drawing.Size(105, 24);
     this.continueSendReport.TabIndex = 12;
     this.continueSendReport.Text = "&Send Error Report";
     this.continueSendReport.Click += new System.EventHandler(this.continueSendReport_Click);
     // 
     // poweredBy
     // 
     this.poweredBy.Anchor =
         ((System.Windows.Forms.AnchorStyles)
             ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.poweredBy.Cursor = System.Windows.Forms.Cursors.Hand;
     this.poweredBy.Location = new System.Drawing.Point(6, 730);
     this.poweredBy.Name = "poweredBy";
     this.poweredBy.Size = new System.Drawing.Size(112, 32);
     this.poweredBy.TabIndex = 5;
     this.poweredBy.TabStop = false;
     this.poweredBy.Text = "poweredBy1";
     // 
     // ExceptionReportingForm
     // 
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Window;
     this.ClientSize = new System.Drawing.Size(434, 768);
     this.ControlBox = false;
     this.Controls.Add(this.poweredBy);
     this.Controls.Add(this.panelEmail);
     this.Controls.Add(this.panelInformation);
     this.Controls.Add(this.panelSending);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name = "ExceptionReportingForm";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "%AppName%";
     this.TopMost = true;
     this.panelInformation.ResumeLayout(false);
     this.panelInformation.PerformLayout();
     this.panelSending.ResumeLayout(false);
     this.panelEmail.ResumeLayout(false);
     this.panelEmail.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 33
0
        ///<summary>
        /// —оздаетс¤ элемент отображени¤ добавлени¤ агрегата
        ///</summary>
        /// <param name="parentDetail">Ѕазовый агрегат дл¤ которго добавл¤етс¤ агрегат</param>
        public DetailAddingScreen(IDetailContainer parentDetail)
        {
            if (parentDetail == null)
            {
                throw new ArgumentNullException("parentDetail");
            }
            if (parentDetail is BaseDetail)
            {
                parentBaseDetail = (BaseDetail)parentDetail;
            }
            else if (parentDetail is Aircraft)
            {
                parentBaseDetail = ((Aircraft)parentDetail).AircraftFrame;
            }
            else
            {
                parentBaseDetail = ((Store)parentDetail).AircraftFrame;
            }
            if (parentDetail is Aircraft)
            {
                isStore = ((Aircraft)parentDetail).Type == AircraftType.Store;
            }

            headerControl  = new HeaderControl();
            aircraftHeader = new AircraftHeaderControl();
            if (parentDetail is Aircraft)
            {
                aircraftHeader.Aircraft = parentDetail as Aircraft;
            }
            if (parentDetail is BaseDetail)
            {
                aircraftHeader.Aircraft = (parentDetail as BaseDetail).ParentAircraft;
            }
            aircraftHeader.AircraftClickable = true;
            aircraftHeader.OperatorClickable = true;
            footerControl = new FooterControl();
            mainPanel     = new Panel();
//            panelFooterMenu = new Panel();

            addnewcomponentControl           = new AddNewComponentControl(parentBaseDetail);
            generalInformationControl        = new DetailAddingGeneralInformationControl(parentBaseDetail.ParentAircraft);
            compliancePerformanceListControl = new DetailCompliancePerformanceListControl(parentBaseDetail.ParentAircraft);
            warrantyControl = new DetailWarrantyControl();
            if (isStore)
            {
                storeControl = new DetailStoreControl((Aircraft)parentDetail);
            }

            addNewComponentContainer       = new ExtendableRichContainer();
            generalInformationContainer    = new ExtendableRichContainer();
            compliancePerformanceContainer = new ExtendableRichContainer();
            warrantyContainer = new ExtendableRichContainer();
            storeContainer    = new ExtendableRichContainer();
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.TabIndex                       = 0;
            headerControl.ButtonReload.Icon              = icons.SaveAndAdd;
            headerControl.ButtonReload.IconNotEnabled    = icons.SaveAndAddGray;
            headerControl.ButtonReload.IconLayout        = ImageLayout.Center;
            headerControl.ButtonReload.TextMain          = "Save and";
            headerControl.ButtonReload.TextSecondary     = "add another";
            headerControl.ButtonReload.Click            += buttonSaveAndAdd_Click;
            headerControl.ButtonEdit.Icon                = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled      = icons.SaveGray;
            headerControl.ButtonEdit.IconLayout          = ImageLayout.Center;
            headerControl.ButtonEdit.ReflectionType      = ReflectionTypes.DisplayInCurrent;
            headerControl.ButtonEdit.TextMain            = "Save";
            headerControl.ButtonEdit.TextSecondary       = "and Edit";
            headerControl.ButtonEdit.DisplayerRequested += buttonSaveAndEdit_DisplayerRequested;

            aircraftHeader.AircraftClickable = true;
            footerControl.TabIndex           = 2;
            //
            // mainPanel
            //
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.AutoScroll = true;
            mainPanel.TabIndex   = 1;
            //
            // addNewComponentContainer
            //
            addNewComponentContainer.labelCaption.Margin   = new Padding(3, 20, 3, 3);
            addNewComponentContainer.PictureBoxIcon.Margin = new Padding(3, 20, 3, 3);
            addNewComponentContainer.Dock          = DockStyle.Top;
            addNewComponentContainer.UpperLeftIcon = icons.GrayArrow;
            addNewComponentContainer.Caption       = "Base component";
            addNewComponentContainer.MainControl   = addnewcomponentControl;
            addNewComponentContainer.TabIndex      = 0;
            addnewcomponentControl.BaseDetailAddTo = parentBaseDetail;
            //
            // generalInformationContainer
            //
            generalInformationContainer.Dock          = DockStyle.Top;
            generalInformationContainer.UpperLeftIcon = icons.GrayArrow;
            generalInformationContainer.Caption       = "Component general information";
            generalInformationContainer.MainControl   = generalInformationControl;
            generalInformationContainer.TabIndex      = 1;
            //
            // compliancePerformanceContainer
            //
            compliancePerformanceContainer.Dock          = DockStyle.Top;
            compliancePerformanceContainer.UpperLeftIcon = icons.GrayArrow;
            compliancePerformanceContainer.Caption       = "Compliance/Performance";
            compliancePerformanceContainer.MainControl   = compliancePerformanceListControl;
            //compliancePerformanceContainer.Extended = false;
            compliancePerformanceContainer.TabIndex = 2;
            //
            // warrantyContainer
            //
            warrantyContainer.Dock          = DockStyle.Top;
            warrantyContainer.UpperLeftIcon = icons.GrayArrow;
            warrantyContainer.Caption       = "Warranty";
            warrantyContainer.MainControl   = warrantyControl;
            warrantyContainer.TabIndex      = 3;
            //
            // storeContainer
            //
            storeContainer.Dock          = DockStyle.Top;
            storeContainer.UpperLeftIcon = icons.GrayArrow;
            storeContainer.Caption       = "Store";
            storeContainer.MainControl   = storeControl;
            //storeContainer.Extended = false;
            storeContainer.TabIndex = 5;

/*            //
 *          // panelFooterMenu
 *          //
 *          panelFooterMenu.AutoSize = true;
 *          panelFooterMenu.AutoSizeMode = AutoSizeMode.GrowAndShrink;
 *          panelFooterMenu.Dock = DockStyle.Bottom;*/

            BackColor = Css.CommonAppearance.Colors.BackColor;
            //mainPanel.Controls.Add(panelFooterMenu);
            if (isStore)
            {
                mainPanel.Controls.Add(storeContainer);
            }
            mainPanel.Controls.Add(warrantyContainer);
            if (!isStore)
            {
                mainPanel.Controls.Add(compliancePerformanceContainer);
            }
            mainPanel.Controls.Add(generalInformationContainer);
            if (!isStore)
            {
                mainPanel.Controls.Add(addNewComponentContainer);
            }
            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);

            ClearFields();
            addNewComponentContainer.Focus();
        }
Exemplo n.º 34
0
        /// <summary>
        /// Создает элемент управления для отображения <see cref="EngineeringOrderDirective"/>
        /// </summary>
        /// <param name="directive">Сама дирктива</param>
        public OutOffPhaseReferenceScreen(BaseDetailDirective directive)
        {
            this.directive               = directive;
            permissionForUpdate          = directive.HasPermission(Users.CurrentUser, DataEvent.Update);
            permissionForDelete          = directive.HasPermission(Users.CurrentUser, DataEvent.Remove);
            headerControl                = new HeaderControl();
            footerControl                = new FooterControl();
            aircraftHeader               = new AircraftHeaderControl(directive.Parent.Parent as Aircraft, true, true);
            generalInforationContainer   = new ExtendableRichContainer();
            complianceDirectiveContainer = new ExtendableRichContainer();
            generalInformationControl    = new OutOffPhaseReferenceInformationControl(directive);
            summaryDirectiveControl      = new OutOffPhaseReferenceSummary(directive);
            complianceDirectiveControl   = new DirectiveComplianceListView(directive);
            summaryDirectiveContainer    = new ExtendableRichContainer();
            //
            // aircraftHeader
            //
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ContextActionControl.ShowPrintButton = true;
            headerControl.TabIndex     = 0;
            headerControl.ReloadRised += headerControl_ReloadRised;
            headerControl.ButtonEdit.DisplayerRequested += ButtonSave_DisplayerRequested;
            headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += ButtonPrint_DisplayerRequested;
            headerControl.ContextActionControl.ButtonHelp.TopicID              = "directive.html";
            headerControl.ButtonEdit.TextMain       = "Save";
            headerControl.ButtonEdit.Icon           = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled = icons.SaveGray;
            headerControl.ButtonEdit.Enabled        = permissionForUpdate;
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // mainPanel
            //
            mainPanel.AutoScroll = true;
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.TabIndex   = 1;
            mainPanel.Controls.Add(containedPanel);
            //
            // containedPanel
            //
            containedPanel.AutoSize      = true;
            containedPanel.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            containedPanel.FlowDirection = FlowDirection.TopDown;
            containedPanel.TabIndex      = 1;
            //
            // panelHeader
            //
            panelHeader.Size     = new Size(1250, 50);
            panelHeader.TabIndex = 0;
            panelHeader.Controls.Add(buttonDeleteDirective);
            panelHeader.Controls.Add(statusLinkLabel);
            //
            // statusLinkLabel
            //
            statusLinkLabel.ActiveLinkColor        = Color.Black;
            statusLinkLabel.Enabled                = false;
            statusLinkLabel.HoveredLinkColor       = Color.Black;
            statusLinkLabel.ImageBackColor         = Color.Transparent;
            statusLinkLabel.ImageLayout            = ImageLayout.Center;
            statusLinkLabel.LinkColor              = Color.DimGray;
            statusLinkLabel.LinkMouseCapturedColor = Color.Empty;
            statusLinkLabel.Location               = new Point(5, 10);
            statusLinkLabel.Size      = new Size(500, 27);
            statusLinkLabel.TextAlign = ContentAlignment.MiddleLeft;
            statusLinkLabel.TextFont  = Css.OrdinaryText.Fonts.RegularFont;
            //
            // buttonDeleteDirective
            //
            buttonDeleteDirective.Anchor             = AnchorStyles.Right | AnchorStyles.Top;
            buttonDeleteDirective.BackColor          = Color.Transparent;
            buttonDeleteDirective.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.Location           = new Point(panelHeader.Right - 160, 0);
            buttonDeleteDirective.Icon                = icons.Delete;
            buttonDeleteDirective.IconNotEnabled      = icons.DeleteGray;
            buttonDeleteDirective.IconLayout          = ImageLayout.Center;
            buttonDeleteDirective.PaddingMain         = new Padding(3, 0, 0, 0);
            buttonDeleteDirective.ReflectionType      = ReflectionTypes.CloseSelected;
            buttonDeleteDirective.Size                = new Size(160, 50);
            buttonDeleteDirective.TabIndex            = 16;
            buttonDeleteDirective.TextAlignMain       = ContentAlignment.MiddleLeft;
            buttonDeleteDirective.TextAlignSecondary  = ContentAlignment.TopLeft;
            buttonDeleteDirective.TextMain            = "Delete";
            buttonDeleteDirective.TextSecondary       = "requirement";
            buttonDeleteDirective.DisplayerRequested += buttonDeleteDirective_DisplayerRequested;
            buttonDeleteDirective.Enabled             = permissionForDelete;
            //
            // generalInforationContainer
            //
            generalInforationContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            generalInforationContainer.LabelCaption.Text = "General Information";
            generalInforationContainer.MainControl       = generalInformationControl;
            generalInforationContainer.UpperLeftIcon     = icons.GrayArrow;
            generalInforationContainer.TabIndex          = 0;
            //
            // summaryDirectiveContainer
            //
            summaryDirectiveContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            summaryDirectiveContainer.LabelCaption.Text = "Summary";
            summaryDirectiveContainer.MainControl       = summaryDirectiveControl;
            summaryDirectiveContainer.UpperLeftIcon     = icons.GrayArrow;
            summaryDirectiveContainer.TabIndex          = 0;

            //
            // buttonAddPerformance
            //
            buttonAddPerformance.BackColor          = Color.Transparent;
            buttonAddPerformance.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.Icon               = icons.Add;
            buttonAddPerformance.IconNotEnabled     = icons.AddGray;
            buttonAddPerformance.IconLayout         = ImageLayout.Center;
            buttonAddPerformance.PaddingSecondary   = new Padding(0);
            buttonAddPerformance.Size               = new Size(160, 50);
            buttonAddPerformance.TabIndex           = 16;
            buttonAddPerformance.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonAddPerformance.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonAddPerformance.TextMain           = "Add Performance";
            buttonAddPerformance.Click             += buttonAddNewRecord_Click;
            //
            // buttonDirectiveClosing
            //
            buttonDirectiveClosing.BackColor          = Color.Transparent;
            buttonDirectiveClosing.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.Icon               = icons.Add;
            buttonDirectiveClosing.IconNotEnabled     = icons.AddGray;
            buttonDirectiveClosing.IconLayout         = ImageLayout.Center;
            buttonDirectiveClosing.PaddingSecondary   = new Padding(0);
            buttonDirectiveClosing.Size               = new Size(150, 50);
            buttonDirectiveClosing.TabIndex           = 16;
            buttonDirectiveClosing.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDirectiveClosing.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDirectiveClosing.TextMain           = "Close Directive";
            buttonDirectiveClosing.Click             += buttonDirectiveClosing_Click;
            //
            // buttonEditRecord
            //
            buttonEditRecord.BackColor          = Color.Transparent;
            buttonEditRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.Icon               = icons.Edit;
            buttonEditRecord.IconNotEnabled     = icons.EditGray;
            buttonEditRecord.IconLayout         = ImageLayout.Center;
            buttonEditRecord.PaddingSecondary   = new Padding(0);
            buttonEditRecord.Size               = new Size(130, 50);
            buttonEditRecord.TabIndex           = 16;
            buttonEditRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonEditRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonEditRecord.TextMain           = "Edit";
            buttonEditRecord.Click             += buttonEditRecord_Click;
            //
            // buttonDeleteRecord
            //
            buttonDeleteRecord.BackColor          = Color.Transparent;
            buttonDeleteRecord.Cursor             = Cursors.Hand;
            buttonDeleteRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.Icon               = icons.Delete;
            buttonDeleteRecord.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteRecord.IconLayout         = ImageLayout.Center;
            buttonDeleteRecord.PaddingSecondary   = new Padding(0);
            buttonDeleteRecord.Size               = new Size(150, 50);
            buttonDeleteRecord.TabIndex           = 16;
            buttonDeleteRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDeleteRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDeleteRecord.TextMain           = "Remove";
            buttonDeleteRecord.Click             += buttonDeleteRecord_Click;
            //
            // complianceDirectiveControl
            //
            complianceDirectiveControl.Location              = new Point(COMPLIANCE_LEFT_MARGIN, 0);
            complianceDirectiveControl.SelectedItemsChanged += complianceDirectiveControl_SelectedItemsChanged;
            complianceDirectiveControl.ItemEdited           += complianceDirectiveControl_ItemEdited;
            complianceDirectiveControl.SizeChanged          += complianceDirectiveControl_SizeChanged;
            //
            // panelCompliance
            //
            panelCompliance.AutoSize     = true;
            panelCompliance.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelCompliance.BackColor    = Css.CommonAppearance.Colors.BackColor;
            panelCompliance.Dock         = DockStyle.Top;
            panelCompliance.TabIndex     = 5;
            panelCompliance.Controls.Add(complianceDirectiveControl);
            panelCompliance.Controls.Add(buttonAddPerformance);
            panelCompliance.Controls.Add(buttonDirectiveClosing);
            panelCompliance.Controls.Add(buttonEditRecord);
            panelCompliance.Controls.Add(buttonDeleteRecord);
            panelCompliance.SizeChanged += panelCompliance_SizeChanged;
            //
            // complianceDirectiveContainer
            //
            complianceDirectiveContainer.Dock = DockStyle.Top;
            complianceDirectiveContainer.LabelCaption.Text = "Compliance";
            complianceDirectiveContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceDirectiveContainer.Extending        += complianceDirectiveContainer_Extending;
            complianceDirectiveContainer.TabIndex          = 4;

            containedPanel.Controls.Add(panelHeader);
            containedPanel.Controls.Add(summaryDirectiveContainer);
            containedPanel.Controls.Add(generalInforationContainer);
            containedPanel.Controls.Add(complianceDirectiveContainer);
            containedPanel.Controls.Add(panelCompliance);

            BackColor = Css.CommonAppearance.Colors.BackColor;
            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);

            UpdateScreen(false);
        }
Exemplo n.º 35
0
 protected override void OnHandleCreated(EventArgs e)
 {
     //Create a new HeaderControl object
     header = new HeaderControl(this);
     if (header.Handle != IntPtr.Zero)
     {
     if (headerImages != null)//If we have a valid header handle and a valid ImageList for it
         //send a message HDM_SETIMAGELIST
         Win32.SendMessage(header.Handle,0x1200+8,IntPtr.Zero,headerImages.Handle);
     //Insert all the columns in Columns collection
     if (this.Columns.Count > 0)
         InsertColumns();
     }
     base.OnHandleCreated(e);
     SetFlatScrollBar();
 }