~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to samples/ComponentInspector/ComponentInspector.Core/Src/ObjectBrowser/Dialogs/WaitingForAppDialog.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// <file>
 
2
//     <copyright see="prj:///doc/copyright.txt"/>
 
3
//     <license see="prj:///doc/license.txt"/>
 
4
//     <owner name="Oakland Software Incorporated" email="general@oaklandsoftware.com"/>
 
5
//     <version>$Revision$</version>
 
6
// </file>
 
7
 
 
8
using System;
 
9
using System.Windows.Forms;
 
10
using ICSharpCode.Core;
 
11
using NoGoop.Util;
 
12
 
 
13
namespace NoGoop.ObjBrowser.Dialogs
 
14
{
 
15
        internal class WaitingForAppDialog : Dialog
 
16
        {
 
17
                protected RichTextBox           _textBox;
 
18
 
 
19
                internal WaitingForAppDialog() : base(!INCLUDE_BUTTONS)
 
20
                {
 
21
                        Text = StringParser.Parse("${res:ComponentInspector.WaitingForAppDialog.Title}");
 
22
                        Height = 150;
 
23
 
 
24
                        String descText = StringParser.Parse("${res:ComponentInspector.WaitingForAppDialog.Information}");
 
25
 
 
26
                        _textBox = Utils.MakeDescText(descText, this);
 
27
                        _textBox.Dock = DockStyle.Fill;
 
28
                        Controls.Add(_textBox);
 
29
 
 
30
                        Label l = new Label();
 
31
                        l.Dock = DockStyle.Fill;
 
32
                        Controls.Add(l);
 
33
 
 
34
                        Panel bottomPanel = new Panel();
 
35
                        bottomPanel.Dock = DockStyle.Bottom;
 
36
 
 
37
                        l = new Label();
 
38
                        l.Dock = DockStyle.Fill;
 
39
                        bottomPanel.Controls.Add(l);
 
40
 
 
41
                        Button cancel = Utils.MakeButton(StringParser.Parse("${res:Global.CancelButtonText}"));
 
42
                        cancel.Dock = DockStyle.Right;
 
43
                        cancel.DialogResult = DialogResult.Cancel;
 
44
                        bottomPanel.Controls.Add(cancel);
 
45
 
 
46
                        bottomPanel.Height = Utils.BUTTON_HEIGHT;
 
47
                        Controls.Add(bottomPanel);
 
48
                }
 
49
 
 
50
        }
 
51
}