Наследование: ListControl
Пример #1
2
        private void InitTabControlPages()
        {
            foreach(var obj in CardLevels)
            {
                var page = new TabPage { Text = CardLevel.RoleCardLevelName(obj) };
                CardTabControl.TabPages.Add(page);

                var listData        = new BindingList<RoleCard>();
                var list            = new ListBox()
                {
                    Dock                = DockStyle.Fill,
                    ContextMenuStrip    = TabControlContextMenu,
                    DisplayMember       = "Name",
                    ValueMember         = "Id",
                    DataSource          = listData,
                };
                
                list.SelectedIndexChanged += (sender, msg) =>
                {
                    var item = list.SelectedItem as RoleCard;
                    if (ListOfRoleCardList[CardTabControl.SelectedIndex].Contains(item))
                    {
                        SelectedItem = item;

                        cardInfoControl1.BeginModify();
                        cardInfoControl1.Images     = CardImageDictionary[SelectedItem.Id];
                        cardInfoControl1.RoleCard   = SelectedItem;
                        cardInfoControl1.EndModify();
                    }
                };

                page.Controls.Add(list);
                ListOfRoleCardList.Add(listData);
            }
        }
Пример #2
2
 public Continent(ListBox displayBox, Random rGen, int nAnimalTypes, Graphics canvas)
 {
     this.displayBox = displayBox;
     this.rGen = rGen;
     this.nAnimalTypes = nAnimalTypes;
     this.canvas = canvas;
 }
 public PreferenceListDetails(PreferenceList preferenceList, ListBox listBox, Button buttonUp, Button buttonDown)
 {
   _preferenceList = preferenceList;
   _list = listBox;
   _up = buttonUp;
   _down = buttonDown;
 }
Пример #4
1
		protected override void SetUp ()
		{
			listBox = new ListBox();
			form = new Form();
			form.ShowInTaskbar = false;
			base.SetUp ();
		}
Пример #5
1
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
     this.label1 = new System.Windows.Forms.Label();
     this.listBox1 = new System.Windows.Forms.ListBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(64, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(248, 32);
     this.label1.TabIndex = 1;
     this.label1.Text = "HyperLoad 2.0";
     //
     // listBox1
     //
     this.listBox1.Items.AddRange(new object[] {
     "This program is completely free to use!",
     "",
     "Hyperload is an open-source program that can be used to",
     "program *.HEX files to your microcontroller.",
     "",
     "The Hyperload Protocol & related information can be found at:",
     "www.sociaLLedge.com/sjsu"});
     this.listBox1.Location = new System.Drawing.Point(14, 84);
     this.listBox1.Name = "listBox1";
     this.listBox1.Size = new System.Drawing.Size(304, 108);
     this.listBox1.TabIndex = 5;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.listBox1);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(320, 210);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop = false;
     //
     // AboutForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size(338, 225);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "AboutForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "About";
     this.Deactivate += new System.EventHandler(this.AboutForm_Deactivate);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #6
1
 private static void RefreshListBox(ListBox log, string[] items)
 {
     var selectLastIndex = log.Items.Count == 0 || log.SelectedIndex == log.Items.Count - 1;
     log.DataSource = items;
     if (selectLastIndex && log.Items.Count > 0)
         log.SelectedIndex = log.Items.Count - 1;
 }
Пример #7
1
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.lbNodes = new System.Windows.Forms.ListBox();
			this.btnLoadXml = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// lbNodes
			// 
			this.lbNodes.Location = new System.Drawing.Point(8, 40);
			this.lbNodes.Name = "lbNodes";
			this.lbNodes.Size = new System.Drawing.Size(432, 303);
			this.lbNodes.TabIndex = 3;
			// 
			// btnLoadXml
			// 
			this.btnLoadXml.Location = new System.Drawing.Point(8, 8);
			this.btnLoadXml.Name = "btnLoadXml";
			this.btnLoadXml.Size = new System.Drawing.Size(112, 23);
			this.btnLoadXml.TabIndex = 2;
			this.btnLoadXml.Text = "Load XML";
			this.btnLoadXml.Click += new System.EventHandler(this.btnLoadXml_Click);
			// 
			// StepByStep6_28
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(448, 357);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.lbNodes,
																		  this.btnLoadXml});
			this.Name = "StepByStep6_28";
			this.Text = "StepByStep6_28";
			this.ResumeLayout(false);

		}
Пример #8
1
 public void add_list_content(ListBox listbox, ArrayList strings)
 {
     foreach (String name in strings)
     {
         listbox.Items.Add(name);
     }
 }
        /// <summary>
        /// Displays a list of available values for the specified component than sets the value.
        /// </summary>
        /// <param name="context">An ITypeDescriptorContext that can be used to gain additional context information.</param>
        /// <param name="provider">A service provider object through which editing services may be obtained.</param>
        /// <param name="value">An instance of the value being edited.</param>
        /// <returns>The new value of the object. If the value of the object hasn't changed, this method should return the same object it was passed.</returns>
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (provider != null)
            {
                // This service is in charge of popping our ListBox.
                _service = ((IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)));

                if (_service != null && value is DropDownListProperty)
                {
                    var property = (DropDownListProperty) value;

                    var list = new ListBox();
                    list.Click += ListBox_Click;

                    foreach (string item in property.Values)
                    {
                        list.Items.Add(item);
                    }

                    // Drop the list control.
                    _service.DropDownControl(list);

                    if (list.SelectedItem != null && list.SelectedIndices.Count == 1)
                    {
                        property.SelectedItem = list.SelectedItem.ToString();
                        value =  property;
                    }
                }
            }

            return value;
        }
Пример #10
1
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.button1 = new System.Windows.Forms.Button();
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.SuspendLayout();
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(32, 32);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(208, 23);
			this.button1.TabIndex = 0;
			this.button1.Text = "Call \"HelloWorld\" on remote object";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// listBox1
			// 
			this.listBox1.Location = new System.Drawing.Point(32, 72);
			this.listBox1.Name = "listBox1";
			this.listBox1.Size = new System.Drawing.Size(224, 95);
			this.listBox1.TabIndex = 1;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(292, 266);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.listBox1,
																		  this.button1});
			this.Name = "Form1";
			this.Text = "RemoteObject";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
Пример #11
1
 public DatabaseScanner(ListMaker lm)
     : this()
 {
     listMaker = lm;
     if (lm != null)
         AWBListbox = lm.Items;
 }
Пример #12
1
        /// <summary>
        /// Constructor
        /// </summary>
        public AutoCompleteTextbox()
            : base()
        {
            entireList = new List<string>();
            matchingList = new List<string>();

            lboxSuggestions = new ListBox();
            lboxSuggestions.Name = "SuggestionListBox";
            lboxSuggestions.Font = this.Font;
            lboxSuggestions.Visible = true;
            lboxSuggestions.Dock = DockStyle.Fill;// make the listbox fill the panel
            lboxSuggestions.SelectionMode = SelectionMode.One;
            lboxSuggestions.KeyDown += new KeyEventHandler(listBox_KeyDown);
            lboxSuggestions.MouseClick += new MouseEventHandler(listBox_MouseClick);
            lboxSuggestions.DataSource = matchingList;// Bind matchingList as DataSource to the listbox

            this.GotFocus += new EventHandler(AutoCompleteTextbox_GotFocus);

            //Will hold listbox
            panel = new Panel();
            panel.Visible = false;
            panel.Font = this.Font;
            panel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            panel.ClientSize = new System.Drawing.Size(1, 1);
            panel.Name = "SuggestionPanel";
            panel.Padding = new System.Windows.Forms.Padding(0, 0, 0, 0);
            panel.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
            panel.Text = "";
            panel.PerformLayout();
            if (!panel.Controls.Contains(lboxSuggestions)) { this.panel.Controls.Add(lboxSuggestions); }
        }
        public ListBox AddNewListBox()
        {
            ListBox  newListBox = new
                ListBox();

            //add to the collection list
            this.List.Add(newListBox);

            //add to the overall form controls
            Hatchu.Controls.Add(newListBox);

            newListBox.Top = 69 + levelCount * 170;
            newListBox.Width = 95;
            newListBox.Left = miniCount * (newListBox.Width + 10) + 80;
            newListBox.Tag = this.Count;
            newListBox.Text = "";

            miniCount++;

            if (Count % 6 == 0)
            {
                miniCount = 0;
                levelCount++;
            }

            newListBox.KeyDown += new System.Windows.Forms.KeyEventHandler(KeyDownHandler);

            return newListBox;
        }
Пример #14
1
        public override object EditValue(ITypeDescriptorContext context, System.IServiceProvider provider, object value)
        {
            if (context != null && provider != null)
            {
                edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
                if (edSvc != null)
                {
                    lb = new ListBox();
                    lb.Items.AddRange(new object[] {
                        "Sunday",
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday"});
                    lb.SelectedIndexChanged += new System.EventHandler(lb_SelectedIndexChanged);
                    edSvc.DropDownControl(lb);
                }
                return text;

            }

            return base.EditValue(context, provider, value);
        }
Пример #15
1
        public int getAllAttrs(ListBox.ObjectCollection list)
        {
            list.Clear();

            if (fcat != null) {
                var attrs = fcat.GetAttributes();
                if (attrs != null) {
                    int i=0;
                    foreach(var attr in attrs) {

                        string s=attr.Alias;
                        if (convert.IsString(s)) {
                            s+="<"+attr.ValueType+">";

                            string t=attr.ToString();
                            if (convert.IsString(t)) s+=" // "+t;

                            i++;
                            list.Add(String.Format("{0}. {1}",i,s));
                        }
                    }
                }
            }

            return list.Count;
        }
Пример #16
1
        public static void SaveCurrentEnvironment(LoadedSettings loadedSettings, ListBox environmentsListBox, EnvironmentStruct environment)
        {
            var currentEnvironment = loadedSettings.Environments.First(env => env.ID == environment.ID);

            if (environment.ID == Guid.Empty) return;

            if (currentEnvironment.Name != environment.Name)
                currentEnvironment.Name = environment.Name;
            if (currentEnvironment.SubkeyValue != environment.SubkeyValue)
                currentEnvironment.SubkeyValue = environment.SubkeyValue;
            if (currentEnvironment.HotKey != environment.HotKey)
                currentEnvironment.HotKey = environment.HotKey;
            if (currentEnvironment.IconLabel != environment.IconLabel)
                currentEnvironment.IconLabel = environment.IconLabel;
            if (currentEnvironment.IconTextColor != environment.IconTextColor)
                currentEnvironment.IconTextColor = environment.IconTextColor;
            if (currentEnvironment.IconBackgroundColor != environment.IconBackgroundColor)
                currentEnvironment.IconBackgroundColor = environment.IconBackgroundColor;
            if (currentEnvironment.LoadIcon != environment.LoadIcon)
                currentEnvironment.LoadIcon = environment.LoadIcon;
            if (currentEnvironment.IconFileLocation != environment.IconFileLocation)
                currentEnvironment.IconFileLocation = environment.IconFileLocation;
            if (currentEnvironment.DisplayOnMenu != environment.DisplayOnMenu)
                currentEnvironment.DisplayOnMenu = environment.DisplayOnMenu;

            ListboxUtils.RepopulateListBox(true, environmentsListBox, loadedSettings, environment.ID);
            ListboxUtils.SetCurrentOrderFromListBoxAndSave(true, environmentsListBox, loadedSettings);

            MessageBox.Show($"{currentEnvironment.Name} {Constants.Messages.SavedSuccessfully}",
                            $"Environment {Constants.Messages.SavedSuccessfullyCaption}",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Пример #17
1
        public ListBoxLog(ListBox listBox, string messageFormat, int maxLinesInListbox, bool debug = true)
        {
            _debug = debug;
            _disposed = false;

            _listBox = listBox;
            _messageFormat = messageFormat;
            _maxEntriesInListBox = maxLinesInListbox;

            _paused = false;

            _canAdd = listBox.IsHandleCreated;

            _listBox.SelectionMode = SelectionMode.MultiExtended;

            _listBox.HandleCreated += OnHandleCreated;
            _listBox.HandleDestroyed += OnHandleDestroyed;
            _listBox.DrawItem += DrawItemHandler;
            _listBox.KeyDown += KeyDownHandler;

            MenuItem[] menuItems = new MenuItem[] { new MenuItem("Copy", new EventHandler(CopyMenuOnClickHandler)) };
            _listBox.ContextMenu = new ContextMenu(menuItems);
            _listBox.ContextMenu.Popup += new EventHandler(CopyMenuPopupHandler);

            _listBox.DrawMode = DrawMode.OwnerDrawFixed;
        }
Пример #18
1
        public void ShowResponse(IRequest request, Uri response)
        {
            _guiContext.Post(_ =>
                                 {
                                     foreach (TabPage source in responsesTab.TabPages)
                                     {
                                         if (source.Text.Equals(request.SearchCriteria.Value))
                                         {
                                             ListBox list;
                                             if (source.Controls.Count == 0)
                                             {
                                                 list = new ListBox {Dock = DockStyle.Fill};
                                                 source.Controls.Add(list);
                                             }
                                             else
                                                list = source.Controls[0] as ListBox;

                                             if (list != null)
                                             {
                                                 list.Items.Add(response);
                                             }
                                             break;
                                         }
                                     }
                                 }, null);
        }
 public static void AddDeleteAction(Shape shape, ref ListBox listBoxShapes, ref GroupBox groupBoxShape)
 {
     if (IsActionTrackingDisabled)
         return;
     UpdateUndoRedoValues();
     actions.Add(new UndoRedo.WorkingActionDelete(shape, Editor.Shapes, ref listBoxShapes, ref groupBoxShape));
 }
Пример #20
1
        //deals the deck to the players
        public void dealAndDisplay(ListBox player1,ListBox player2,ListBox player3,ListBox player4)
        {
            hands = new Hand[numPlayers];
            //initialises hand array get null exception error without it
            for (int i = 0; i < numPlayers; i++)
            {
                hands[i] = new Hand();
            }

            int count=0;

            for (int i = 0; i < handSize; i++)
            {
                for (int j = 0; j < numPlayers; j++)
                {
                    hands[j].Cards[i] = deck[count];
                    count++;
                }
            }

            hands[0].displayHand(player1);
            hands[1].displayHand(player2);
            hands[2].displayHand(player3);
            hands[3].displayHand(player4);
        }
Пример #21
0
        public TabButtonControl()
            : base()
        {
            tabButtons = new ListBox();
            tabPanels = new ArrayList();
            tabTexts = new ArrayList();
            tabBitmaps = new ArrayList();

            tabButtons.Dock = DockStyle.Left;
            tabButtons.Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, ((System.Byte)(0)));
            tabButtons.Location = new Point(0, 0);
            tabButtons.Name = "tabButtons";
            tabButtons.Size = new Size(72, 264);
            tabButtons.DrawMode = DrawMode.OwnerDrawVariable;
            tabButtons.DrawItem += new DrawItemEventHandler(tabButtons_DrawItem);
            tabButtons.MeasureItem += new MeasureItemEventHandler(tabButtons_MeasureItem);
            tabButtons.SelectedIndexChanged += new EventHandler(tabButtons_SelectedIndexChanged);
            tabButtons.SizeChanged += new EventHandler(tabButtons_SizeChanged);

            tabButtons.BackColor = SystemColors.ControlDark;
            tabButtons.ForeColor = Color.White;

            contentPanel = new Panel();
            contentPanel.Dock = DockStyle.Fill;

            Controls.Add(contentPanel);

            Controls.Add(tabButtons);

            tabButtonsHasVScrollBar = false;
        }
Пример #22
0
 public void CargarLista(ListBox lst)
 {
     IList ListarTerminales = GetAll();
     lst.DisplayMember = "terminal";
     lst.ValueMember = "id_terminal";
     lst.DataSource = ListarTerminales;
 }
Пример #23
0
		/// <summary>
		/// Initializes a new instance of <see cref="UndoPopup"/>.
		/// </summary>
		/// <param name="undoManager">The undo manager used to populate the action list.</param>
		/// <param name="mode">The mode the popup shows actions for.</param>
		public UndoPopup(UndoManager undoManager, UndoPopupMode mode)
			: base(new Control())
		{
			// Set some defaults on the host control.
			Control.Margin = Padding.Empty;
			Control.Size = new Size(400, 300);
			Control.TabStop = false;

			// Add the listbox.
			_listBox = new ListBox
			{
				Dock = DockStyle.Fill,
				BorderStyle = BorderStyle.None,
				IntegralHeight = false,
				SelectionMode = SelectionMode.MultiSimple,
				HorizontalScrollbar = true
			};
			_listBox.MouseDown += ListBox_MouseDown;
			_listBox.MouseMove += ListBox_MouseMove;

			Control.Controls.Add(_listBox);

			// Create tooltip.
			_tooltip = new ToolTip();

			_mode = mode;
			UndoManager = undoManager;
		}
Пример #24
0
 public void LoadAllRecords(System.Windows.Forms.ListBox listBox)
 {
     foreach (HistoryRecord c in this.history)
     {
         listBox.Items.Add(c.ToString());
     }
 }
Пример #25
0
        private ChemtoolsGui()
        {
            this.Text = "ChemTools";
            this.Size = new Size(640, 640);

            input = new TextBox();
            input.Location = new Point(20, 20);
            input.Size = new Size(250, 20);
            input.TextChanged += new EventHandler(InputChanged);
            input.KeyDown += new KeyEventHandler(InputKeyDown);

            output = new RichTextBox();
            output.Location = new Point(50, 160);
            output.Size = new Size(250, 300);

            savedList = new ListBox();
            savedList.Location = new Point(300, 20);
            savedList.Size = new Size(300, 120);
            savedList.SelectedIndexChanged += new EventHandler(ListSelectChange);
            savedList.KeyDown += new KeyEventHandler(ListKeyDown);
            savedList.BeginUpdate();
            savedList.Items.Add("H2O");
            savedList.Items.Add("CO2");
            savedList.Items.Add("C4H10+O2=CO2+H2O");
            savedList.Items.Add("44.0095gCO2");
            savedList.EndUpdate();

            savedOutput = new RichTextBox();
            savedOutput.Location = new Point(300, 160);
            savedOutput.Size = new Size(250, 300);

            btnAdd = new Button();
            btnAdd.Location = new Point(180, 50);
            btnAdd.Text = "Save";
            btnAdd.Click += new EventHandler(AddClick);

            btnDelete = new Button();
            btnDelete.Location = new Point(180, 100);
            btnDelete.Text = "Delete";
            btnDelete.Click += new EventHandler(DeleteClick);

            btnClear = new Button();
            btnClear.Location = new Point(20, 50);
            btnClear.Text = "Clear";
            btnClear.Click += new EventHandler(ClearClick);

            btnReset = new Button();
            btnReset.Location = new Point(20, 100);
            btnReset.Text = "Reset All";
            btnReset.Click += new EventHandler(ResetClick);

            this.Controls.Add(input);
            this.Controls.Add(output);
            this.Controls.Add(savedList);
            this.Controls.Add(savedOutput);
            this.Controls.Add(btnAdd);
            this.Controls.Add(btnDelete);
            this.Controls.Add(btnClear);
            this.Controls.Add(btnReset);
        }
Пример #26
0
 private void InitializeComponent()
 {
     this.picture = new System.Windows.Forms.PictureBox();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.list = new System.Windows.Forms.ListBox();
     ((System.ComponentModel.ISupportInitialize)(this.picture)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // picture
     //
     this.picture.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.picture.Dock = System.Windows.Forms.DockStyle.Fill;
     this.picture.Location = new System.Drawing.Point(0, 0);
     this.picture.Name = "picture";
     this.picture.Size = new System.Drawing.Size(811, 689);
     this.picture.TabIndex = 0;
     this.picture.TabStop = false;
     //
     // splitContainer1
     //
     this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.list);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.picture);
     this.splitContainer1.Size = new System.Drawing.Size(969, 693);
     this.splitContainer1.SplitterDistance = 150;
     this.splitContainer1.TabIndex = 2;
     //
     // list
     //
     this.list.Dock = System.Windows.Forms.DockStyle.Fill;
     this.list.FormattingEnabled = true;
     this.list.Location = new System.Drawing.Point(0, 0);
     this.list.Name = "list";
     this.list.Size = new System.Drawing.Size(146, 680);
     this.list.TabIndex = 0;
     this.list.SelectedIndexChanged += new System.EventHandler(this.list_SelectedIndexChanged);
     //
     // GdiForm
     //
     this.ClientSize = new System.Drawing.Size(969, 693);
     this.Controls.Add(this.splitContainer1);
     this.Name = "GdiForm";
     ((System.ComponentModel.ISupportInitialize)(this.picture)).EndInit();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #27
0
 public TEditor(ListBox lb, Song song, GUI owner, Translation trans)
 {
     //
     // Erforderlich für die Windows Form-Designerunterstützung
     //
     InitializeComponent();
     this.song = song;
     this.trans = trans;
     this.lb = lb;
     this.owner = owner;
     this.textBox2.Text = this.song.Number.ToString();
     this.textBox2.Enabled = false;
     TEditor.tEditor = this;
     TEditor.TEditorOpen = true;
     if (this.trans != null)
     {
         this.textBox1.Text = this.trans.Title;
         this.richTextBox1.Text = this.trans.Text;
         this.checkBox1.Checked = this.trans.Unformatted;
         this.panel1.Enabled = !this.trans.Unformatted;
     }
     else
     {
         this.textBox1.Text = "";
         this.richTextBox1.Text = "";
     }
 }
Пример #28
0
 public NewSymbolDialog(ListBox symbols, FinancialCalculator calcualtor)
 {
     this.symbols = symbols;
     this.calculator = calcualtor;
     this.InitializeComponent();
     this.UpdatePreview();
 }
Пример #29
0
 public AddPropertyForm(ListBox.ObjectCollection availablePropsList)
 {
     InitializeComponent();
     foreach (InstallerProp installerProp in availablePropsList) {
         installerProps.Add(installerProp);
     }
 }
Пример #30
0
 public Continent(ListBox displayBox, Graphics canvas, int nAnimalTypes)
 {
     this.displayBox = displayBox;
     this.canvas = canvas;
     this.nAminalTypes = nAnimalTypes;
     randomGen = new Random();
 }
Пример #31
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.listBoxRegisters     = new System.Windows.Forms.ListBox();
     this.textBoxGotoAddress   = new System.Windows.Forms.TextBox();
     this.label1               = new System.Windows.Forms.Label();
     this.panelMemory          = new System.Windows.Forms.Panel();
     this.memoryControl        = new AbortHandlerClient.MemoryControl();
     this.vScrollBarMemory     = new System.Windows.Forms.VScrollBar();
     this.mainMenu1            = new System.Windows.Forms.MainMenu();
     this.menuItem_File        = new System.Windows.Forms.MenuItem();
     this.menuItem_LoadSym     = new System.Windows.Forms.MenuItem();
     this.menuItem_SaveMemory  = new System.Windows.Forms.MenuItem();
     this.menuItem_Exit        = new System.Windows.Forms.MenuItem();
     this.menuItem_View        = new System.Windows.Forms.MenuItem();
     this.menuItem_Bytes       = new System.Windows.Forms.MenuItem();
     this.menuItem_Shorts      = new System.Windows.Forms.MenuItem();
     this.menuItem_Words       = new System.Windows.Forms.MenuItem();
     this.menuItem_Disassembly = new System.Windows.Forms.MenuItem();
     this.menuItem_HeapBlocks  = new System.Windows.Forms.MenuItem();
     this.menuItem_Window      = new System.Windows.Forms.MenuItem();
     this.menuItem_Window_New  = new System.Windows.Forms.MenuItem();
     this.groupBox1.SuspendLayout();
     this.panelMemory.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.listBoxRegisters);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(200, 480);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Registers";
     //
     // listBoxRegisters
     //
     this.listBoxRegisters.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.listBoxRegisters.Font         = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.listBoxRegisters.ItemHeight   = 14;
     this.listBoxRegisters.Location     = new System.Drawing.Point(3, 16);
     this.listBoxRegisters.Name         = "listBoxRegisters";
     this.listBoxRegisters.Size         = new System.Drawing.Size(194, 452);
     this.listBoxRegisters.TabIndex     = 0;
     this.listBoxRegisters.DoubleClick += new System.EventHandler(this.listBoxRegisters_DoubleClick);
     //
     // textBoxGotoAddress
     //
     this.textBoxGotoAddress.Location = new System.Drawing.Point(320, 16);
     this.textBoxGotoAddress.Name     = "textBoxGotoAddress";
     this.textBoxGotoAddress.Size     = new System.Drawing.Size(248, 20);
     this.textBoxGotoAddress.TabIndex = 3;
     this.textBoxGotoAddress.Text     = "";
     this.textBoxGotoAddress.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.textBoxGotoAddress_KeyUp);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(224, 16);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(88, 23);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Go To Address:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panelMemory
     //
     this.panelMemory.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.panelMemory.BackColor   = System.Drawing.SystemColors.Window;
     this.panelMemory.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panelMemory.Controls.Add(this.memoryControl);
     this.panelMemory.Font     = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.panelMemory.Location = new System.Drawing.Point(216, 48);
     this.panelMemory.Name     = "panelMemory";
     this.panelMemory.Size     = new System.Drawing.Size(672, 440);
     this.panelMemory.TabIndex = 5;
     //
     // memoryControl
     //
     this.memoryControl.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.memoryControl.Font     = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.memoryControl.Location = new System.Drawing.Point(0, 0);
     this.memoryControl.Name     = "memoryControl";
     this.memoryControl.Size     = new System.Drawing.Size(668, 436);
     this.memoryControl.TabIndex = 0;
     //
     // vScrollBarMemory
     //
     this.vScrollBarMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.vScrollBarMemory.LargeChange = 30;
     this.vScrollBarMemory.Location    = new System.Drawing.Point(888, 48);
     this.vScrollBarMemory.Maximum     = 250;
     this.vScrollBarMemory.Minimum     = -250;
     this.vScrollBarMemory.Name        = "vScrollBarMemory";
     this.vScrollBarMemory.Size        = new System.Drawing.Size(16, 440);
     this.vScrollBarMemory.TabIndex    = 6;
     this.vScrollBarMemory.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.vScrollBarMemory_Scroll);
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem_File,
         this.menuItem_View,
         this.menuItem_Window
     });
     //
     // menuItem_File
     //
     this.menuItem_File.Index = 0;
     this.menuItem_File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem_LoadSym,
         this.menuItem_SaveMemory,
         this.menuItem_Exit
     });
     this.menuItem_File.Text = "&File";
     //
     // menuItem_LoadSym
     //
     this.menuItem_LoadSym.Index  = 0;
     this.menuItem_LoadSym.Text   = "Load S&ymdefs...";
     this.menuItem_LoadSym.Click += new System.EventHandler(this.menuItem_LoadSym_Click);
     //
     // menuItem_SaveMemory
     //
     this.menuItem_SaveMemory.Index  = 1;
     this.menuItem_SaveMemory.Text   = "Save Memory...";
     this.menuItem_SaveMemory.Click += new System.EventHandler(this.menuItem_SaveMemory_Click);
     //
     // menuItem_Exit
     //
     this.menuItem_Exit.Index  = 2;
     this.menuItem_Exit.Text   = "E&xit";
     this.menuItem_Exit.Click += new System.EventHandler(this.menuItem_Exit_Click);
     //
     // menuItem_View
     //
     this.menuItem_View.Index = 1;
     this.menuItem_View.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem_Bytes,
         this.menuItem_Shorts,
         this.menuItem_Words,
         this.menuItem_Disassembly,
         this.menuItem_HeapBlocks
     });
     this.menuItem_View.Text = "&View";
     //
     // menuItem_Bytes
     //
     this.menuItem_Bytes.Index      = 0;
     this.menuItem_Bytes.RadioCheck = true;
     this.menuItem_Bytes.Text       = "&Bytes";
     this.menuItem_Bytes.Click     += new System.EventHandler(this.menuItem_Bytes_Click);
     //
     // menuItem_Shorts
     //
     this.menuItem_Shorts.Index      = 1;
     this.menuItem_Shorts.RadioCheck = true;
     this.menuItem_Shorts.Text       = "&Shorts";
     this.menuItem_Shorts.Click     += new System.EventHandler(this.menuItem_Shorts_Click);
     //
     // menuItem_Words
     //
     this.menuItem_Words.Index      = 2;
     this.menuItem_Words.RadioCheck = true;
     this.menuItem_Words.Text       = "&Words";
     this.menuItem_Words.Click     += new System.EventHandler(this.menuItem_Words_Click);
     //
     // menuItem_Disassembly
     //
     this.menuItem_Disassembly.Checked    = true;
     this.menuItem_Disassembly.Index      = 3;
     this.menuItem_Disassembly.RadioCheck = true;
     this.menuItem_Disassembly.Text       = "&Disassembly";
     this.menuItem_Disassembly.Click     += new System.EventHandler(this.menuItem_Disassembly_Click);
     //
     // menuItem_HeapBlocks
     //
     this.menuItem_HeapBlocks.Index  = 4;
     this.menuItem_HeapBlocks.Text   = "&Heap Blocks";
     this.menuItem_HeapBlocks.Click += new System.EventHandler(this.menuItem_HeapBlocks_Click);
     //
     // menuItem_Window
     //
     this.menuItem_Window.Index = 2;
     this.menuItem_Window.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem_Window_New
     });
     this.menuItem_Window.Text = "&Window";
     //
     // menuItem_Window_New
     //
     this.menuItem_Window_New.Index  = 0;
     this.menuItem_Window_New.Text   = "&New Window";
     this.menuItem_Window_New.Click += new System.EventHandler(this.menuItem_Window_New_Click);
     //
     // FormAbortHandler
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(5, 13);
     this.ClientSize          = new System.Drawing.Size(912, 493);
     this.Controls.Add(this.vScrollBarMemory);
     this.Controls.Add(this.panelMemory);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBoxGotoAddress);
     this.Controls.Add(this.groupBox1);
     this.Menu  = this.mainMenu1;
     this.Name  = "FormAbortHandler";
     this.Text  = "Abort Handler Client";
     this.Load += new System.EventHandler(this.FormAbortHandler_Load);
     this.groupBox1.ResumeLayout(false);
     this.panelMemory.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #32
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.textBoxName            = new System.Windows.Forms.TextBox();
     this.label1                 = new System.Windows.Forms.Label();
     this.buttonStart            = new System.Windows.Forms.Button();
     this.buttonStop             = new System.Windows.Forms.Button();
     this.buttonSave             = new System.Windows.Forms.Button();
     this.numericUpDownFrequency = new System.Windows.Forms.NumericUpDown();
     this.label2                 = new System.Windows.Forms.Label();
     this.numericUpDownHeight    = new System.Windows.Forms.NumericUpDown();
     this.label3                 = new System.Windows.Forms.Label();
     this.listBoxPaths           = new System.Windows.Forms.ListBox();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownFrequency)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).BeginInit();
     this.SuspendLayout();
     //
     // textBoxName
     //
     this.textBoxName.Location     = new System.Drawing.Point(73, 23);
     this.textBoxName.Name         = "textBoxName";
     this.textBoxName.Size         = new System.Drawing.Size(200, 20);
     this.textBoxName.TabIndex     = 0;
     this.textBoxName.Text         = "";
     this.textBoxName.TextChanged += new System.EventHandler(this.textBoxName_TextChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(17, 26);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Name";
     //
     // buttonStart
     //
     this.buttonStart.Location = new System.Drawing.Point(32, 208);
     this.buttonStart.Name     = "buttonStart";
     this.buttonStart.TabIndex = 2;
     this.buttonStart.Text     = "Start";
     this.buttonStart.Click   += new System.EventHandler(this.buttonStart_Click);
     //
     // buttonStop
     //
     this.buttonStop.Location = new System.Drawing.Point(120, 208);
     this.buttonStop.Name     = "buttonStop";
     this.buttonStop.TabIndex = 3;
     this.buttonStop.Text     = "Stop";
     this.buttonStop.Click   += new System.EventHandler(this.buttonStop_Click);
     //
     // buttonSave
     //
     this.buttonSave.Location = new System.Drawing.Point(208, 208);
     this.buttonSave.Name     = "buttonSave";
     this.buttonSave.TabIndex = 5;
     this.buttonSave.Text     = "Save";
     //
     // numericUpDownFrequency
     //
     this.numericUpDownFrequency.Location = new System.Drawing.Point(16, 56);
     this.numericUpDownFrequency.Maximum  = new System.Decimal(new int[] {
         30,
         0,
         0,
         0
     });
     this.numericUpDownFrequency.Minimum = new System.Decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDownFrequency.Name     = "numericUpDownFrequency";
     this.numericUpDownFrequency.Size     = new System.Drawing.Size(56, 20);
     this.numericUpDownFrequency.TabIndex = 6;
     this.numericUpDownFrequency.Value    = new System.Decimal(new int[] {
         10,
         0,
         0,
         0
     });
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(72, 56);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(192, 23);
     this.label2.TabIndex = 7;
     this.label2.Text     = "Points / second";
     //
     // numericUpDownHeight
     //
     this.numericUpDownHeight.Increment = new System.Decimal(new int[] {
         100,
         0,
         0,
         0
     });
     this.numericUpDownHeight.Location = new System.Drawing.Point(16, 80);
     this.numericUpDownHeight.Maximum  = new System.Decimal(new int[] {
         100000000,
         0,
         0,
         0
     });
     this.numericUpDownHeight.Name     = "numericUpDownHeight";
     this.numericUpDownHeight.Size     = new System.Drawing.Size(56, 20);
     this.numericUpDownHeight.TabIndex = 8;
     this.numericUpDownHeight.Value    = new System.Decimal(new int[] {
         100,
         0,
         0,
         0
     });
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(72, 80);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(192, 23);
     this.label3.TabIndex = 9;
     this.label3.Text     = "Distance above surface (m)";
     //
     // listBoxPaths
     //
     this.listBoxPaths.Location = new System.Drawing.Point(16, 104);
     this.listBoxPaths.Name     = "listBoxPaths";
     this.listBoxPaths.Size     = new System.Drawing.Size(264, 95);
     this.listBoxPaths.TabIndex = 10;
     this.listBoxPaths.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.listBoxPaths_KeyUp);
     //
     // PathMaker
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(292, 243);
     this.Controls.Add(this.listBoxPaths);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.numericUpDownHeight);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.numericUpDownFrequency);
     this.Controls.Add(this.buttonSave);
     this.Controls.Add(this.buttonStop);
     this.Controls.Add(this.buttonStart);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBoxName);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.KeyPreview      = true;
     this.Name            = "PathMaker";
     this.Text            = "PathMaker";
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownFrequency)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownHeight)).EndInit();
     this.ResumeLayout(false);
 }
Пример #33
0
        private void CreateListBox(string listFilter)
        {
            if (listBox != null)
            {
                listBox = null;
                return;
            }

            if (!listBoxOpened)
            {
                listBox              = new ListBox();
                listBox.Font         = Font;
                listBox.uwfContext   = true;
                listBox.Width        = Width;
                listBox.ItemHeight   = ItemHeight;
                listBox.Height       = listBox.ItemHeight * (Items.Count > MaxDropDownItems ? MaxDropDownItems : Items.Count);
                listBox.WrapText     = false;
                listBox.uwfShadowBox = true;
                listBox.BorderColor  = listBox.BorderSelectColor;
                if (listBox.Height < listBox.ItemHeight)
                {
                    listBox.Height = listBox.ItemHeight;
                }

                bool selectedIndexChanged = false;
                for (int i = 0; i < Items.Count; i++)
                {
                    var item = Items[i];
                    if (DropDownStyle == ComboBoxStyle.DropDownList || String.IsNullOrEmpty(listFilter))
                    {
                        listBox.Items.Add(item);
                    }
                    else
                    {
                        var itemString = item.ToString();
                        if (!itemString.ToLower().Contains(listFilter.ToLower()))
                        {
                            continue;
                        }

                        listBox.Items.Add(item);
                        if (itemString != listFilter)
                        {
                            continue;
                        }

                        listBox.SelectedIndex = i;
                        selectedIndexChanged  = true;
                    }
                }
                for (int i = 0; i < Items.Count; i++)
                {
                    if (Items.IsDisabled(i))
                    {
                        listBox.Items.Disable(i);
                    }
                }

                if (selectedIndexChanged == false)
                {
                    listBox.SelectedIndex = SelectedIndex;
                    listBox.EnsureVisible();
                }

                var gpoint = PointToScreen(Point.Empty);
                listBox.Location  = new Point(gpoint.X, gpoint.Y + Height);
                listBox.MouseUp  += ListBoxOnMouseUp;
                listBox.KeyDown  += ListBoxOnKeyDown;
                listBox.Disposed += ListBoxOnDisposed;
            }
            else
            {
                listBoxOpened = false;
            }
        }
Пример #34
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.groupbox2    = new System.Windows.Forms.GroupBox();
     this.btn_Add1     = new WiB.Pinkie.Controls.ButtonXP();
     this.listBox1     = new System.Windows.Forms.ListBox();
     this.radioButton1 = new System.Windows.Forms.RadioButton();
     this.radioButton2 = new System.Windows.Forms.RadioButton();
     this.listBox2     = new System.Windows.Forms.ListBox();
     this.btn_Del1     = new WiB.Pinkie.Controls.ButtonXP();
     this.btn_Add2     = new WiB.Pinkie.Controls.ButtonXP();
     this.btn_Del2     = new WiB.Pinkie.Controls.ButtonXP();
     this.btn_OK       = new WiB.Pinkie.Controls.ButtonXP();
     this.btn_Cancel   = new WiB.Pinkie.Controls.ButtonXP();
     this.groupbox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupbox2
     //
     this.groupbox2.Controls.Add(this.btn_Add1);
     this.groupbox2.Controls.Add(this.listBox1);
     this.groupbox2.Controls.Add(this.radioButton1);
     this.groupbox2.Controls.Add(this.radioButton2);
     this.groupbox2.Controls.Add(this.listBox2);
     this.groupbox2.Controls.Add(this.btn_Del1);
     this.groupbox2.Controls.Add(this.btn_Add2);
     this.groupbox2.Controls.Add(this.btn_Del2);
     this.groupbox2.Location = new System.Drawing.Point(8, 8);
     this.groupbox2.Name     = "groupbox2";
     this.groupbox2.Size     = new System.Drawing.Size(448, 136);
     this.groupbox2.TabIndex = 2;
     this.groupbox2.TabStop  = false;
     this.groupbox2.Text     = "文件规则";
     //
     // btn_Add1
     //
     this.btn_Add1._Image        = null;
     this.btn_Add1.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Add1.DefaultScheme = false;
     this.btn_Add1.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_Add1.Image         = null;
     this.btn_Add1.Location      = new System.Drawing.Point(160, 40);
     this.btn_Add1.Name          = "btn_Add1";
     this.btn_Add1.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Add1.Size          = new System.Drawing.Size(57, 23);
     this.btn_Add1.TabIndex      = 44;
     this.btn_Add1.Text          = "增加...";
     this.btn_Add1.Click        += new System.EventHandler(this.btn_Add1_Click);
     //
     // listBox1
     //
     this.listBox1.ItemHeight = 12;
     this.listBox1.Location   = new System.Drawing.Point(80, 16);
     this.listBox1.Name       = "listBox1";
     this.listBox1.Size       = new System.Drawing.Size(72, 112);
     this.listBox1.TabIndex   = 1;
     //
     // radioButton1
     //
     this.radioButton1.Location        = new System.Drawing.Point(16, 24);
     this.radioButton1.Name            = "radioButton1";
     this.radioButton1.Size            = new System.Drawing.Size(64, 24);
     this.radioButton1.TabIndex        = 0;
     this.radioButton1.Text            = "筛选法";
     this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
     //
     // radioButton2
     //
     this.radioButton2.Checked         = true;
     this.radioButton2.Location        = new System.Drawing.Point(240, 24);
     this.radioButton2.Name            = "radioButton2";
     this.radioButton2.Size            = new System.Drawing.Size(64, 24);
     this.radioButton2.TabIndex        = 0;
     this.radioButton2.TabStop         = true;
     this.radioButton2.Text            = "排除法";
     this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
     //
     // listBox2
     //
     this.listBox2.ItemHeight = 12;
     this.listBox2.Location   = new System.Drawing.Point(304, 16);
     this.listBox2.Name       = "listBox2";
     this.listBox2.Size       = new System.Drawing.Size(72, 112);
     this.listBox2.TabIndex   = 1;
     //
     // btn_Del1
     //
     this.btn_Del1._Image        = null;
     this.btn_Del1.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Del1.DefaultScheme = false;
     this.btn_Del1.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_Del1.Image         = null;
     this.btn_Del1.Location      = new System.Drawing.Point(160, 72);
     this.btn_Del1.Name          = "btn_Del1";
     this.btn_Del1.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Del1.Size          = new System.Drawing.Size(57, 23);
     this.btn_Del1.TabIndex      = 44;
     this.btn_Del1.Text          = "移 除";
     this.btn_Del1.Click        += new System.EventHandler(this.btn_Del1_Click);
     //
     // btn_Add2
     //
     this.btn_Add2._Image        = null;
     this.btn_Add2.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Add2.DefaultScheme = false;
     this.btn_Add2.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_Add2.Image         = null;
     this.btn_Add2.Location      = new System.Drawing.Point(384, 40);
     this.btn_Add2.Name          = "btn_Add2";
     this.btn_Add2.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Add2.Size          = new System.Drawing.Size(57, 23);
     this.btn_Add2.TabIndex      = 44;
     this.btn_Add2.Text          = "增加...";
     this.btn_Add2.Click        += new System.EventHandler(this.btn_Add2_Click);
     //
     // btn_Del2
     //
     this.btn_Del2._Image        = null;
     this.btn_Del2.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Del2.DefaultScheme = false;
     this.btn_Del2.DialogResult  = System.Windows.Forms.DialogResult.None;
     this.btn_Del2.Image         = null;
     this.btn_Del2.Location      = new System.Drawing.Point(384, 72);
     this.btn_Del2.Name          = "btn_Del2";
     this.btn_Del2.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Del2.Size          = new System.Drawing.Size(57, 23);
     this.btn_Del2.TabIndex      = 44;
     this.btn_Del2.Text          = "移 除";
     this.btn_Del2.Click        += new System.EventHandler(this.btn_Del2_Click);
     //
     // btn_OK
     //
     this.btn_OK._Image        = null;
     this.btn_OK.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_OK.DefaultScheme = false;
     this.btn_OK.DialogResult  = System.Windows.Forms.DialogResult.OK;
     this.btn_OK.Image         = null;
     this.btn_OK.Location      = new System.Drawing.Point(232, 160);
     this.btn_OK.Name          = "btn_OK";
     this.btn_OK.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_OK.Size          = new System.Drawing.Size(65, 25);
     this.btn_OK.TabIndex      = 48;
     this.btn_OK.Text          = "确 定";
     this.btn_OK.Click        += new System.EventHandler(this.btn_OK_Click);
     //
     // btn_Cancel
     //
     this.btn_Cancel._Image        = null;
     this.btn_Cancel.BackColor     = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200)));
     this.btn_Cancel.DefaultScheme = false;
     this.btn_Cancel.DialogResult  = System.Windows.Forms.DialogResult.Cancel;
     this.btn_Cancel.Image         = null;
     this.btn_Cancel.Location      = new System.Drawing.Point(328, 160);
     this.btn_Cancel.Name          = "btn_Cancel";
     this.btn_Cancel.Scheme        = WiB.Pinkie.Controls.ButtonXP.Schemes.Blue;
     this.btn_Cancel.Size          = new System.Drawing.Size(65, 25);
     this.btn_Cancel.TabIndex      = 47;
     this.btn_Cancel.Text          = "取 消";
     //
     // ProjectSet
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(466, 199);
     this.Controls.Add(this.btn_OK);
     this.Controls.Add(this.btn_Cancel);
     this.Controls.Add(this.groupbox2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "ProjectSet";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "设置规则";
     this.Load           += new System.EventHandler(this.ProjectSet_Load);
     this.groupbox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #35
0
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.

        private void InitializeComponent()
        {
            this.listData           = new System.Windows.Forms.ListBox();
            this.listCustomControls = new System.Windows.Forms.ListBox();
            this.listEtoForms       = new System.Windows.Forms.ListBox();
            this.listComponents     = new System.Windows.Forms.ListBox();
            this.tabEtoForms        = new System.Windows.Forms.TabPage();
            this.tabComponents      = new System.Windows.Forms.TabPage();
            this.tabData            = new System.Windows.Forms.TabPage();
            this.tabCustomControls  = new System.Windows.Forms.TabPage();
            this.tabControl         = new System.Windows.Forms.TabControl();
            this.tabEtoForms.SuspendLayout();
            this.tabComponents.SuspendLayout();
            this.tabData.SuspendLayout();
            this.tabCustomControls.SuspendLayout();
            this.tabControl.SuspendLayout();
            this.SuspendLayout();
            //
            // listData
            //
            this.listData.BackColor    = System.Drawing.Color.SkyBlue;
            this.listData.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.listData.DrawMode     = System.Windows.Forms.DrawMode.OwnerDrawVariable;
            this.listData.Location     = new System.Drawing.Point(0, 0);
            this.listData.Name         = "listData";
            this.listData.Size         = new System.Drawing.Size(280, 508);
            this.listData.TabIndex     = 0;
            this.listData.DrawItem    += new System.Windows.Forms.DrawItemEventHandler(this.list_DrawItem);
            this.listData.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.list_MeasureItem);
            this.listData.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.list_KeyDown);
            this.listData.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.list_MouseDown);
            //
            // listCustomControls
            //
            this.listCustomControls.BackColor    = System.Drawing.Color.SkyBlue;
            this.listCustomControls.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.listCustomControls.DrawMode     = System.Windows.Forms.DrawMode.OwnerDrawVariable;
            this.listCustomControls.Location     = new System.Drawing.Point(0, 0);
            this.listCustomControls.Name         = "listCustomControls";
            this.listCustomControls.Size         = new System.Drawing.Size(280, 508);
            this.listCustomControls.TabIndex     = 0;
            this.listCustomControls.DrawItem    += new System.Windows.Forms.DrawItemEventHandler(this.list_DrawItem);
            this.listCustomControls.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.list_MeasureItem);
            this.listCustomControls.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.list_KeyDown);
            this.listCustomControls.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.list_MouseDown);
            //
            // listEtoForms
            //
            this.listEtoForms.AllowDrop    = true;
            this.listEtoForms.BackColor    = System.Drawing.Color.SkyBlue;
            this.listEtoForms.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.listEtoForms.DrawMode     = System.Windows.Forms.DrawMode.OwnerDrawVariable;
            this.listEtoForms.Location     = new System.Drawing.Point(0, 0);
            this.listEtoForms.Name         = "listEtoForms";
            this.listEtoForms.Size         = new System.Drawing.Size(280, 508);
            this.listEtoForms.TabIndex     = 0;
            this.listEtoForms.DrawItem    += new System.Windows.Forms.DrawItemEventHandler(this.list_DrawItem);
            this.listEtoForms.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.list_MeasureItem);
            this.listEtoForms.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.list_KeyDown);
            this.listEtoForms.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.list_MouseDown);
            //
            // listComponents
            //
            this.listComponents.BackColor    = System.Drawing.Color.SkyBlue;
            this.listComponents.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.listComponents.DrawMode     = System.Windows.Forms.DrawMode.OwnerDrawVariable;
            this.listComponents.Location     = new System.Drawing.Point(0, 0);
            this.listComponents.Name         = "listComponents";
            this.listComponents.Size         = new System.Drawing.Size(280, 508);
            this.listComponents.TabIndex     = 0;
            this.listComponents.DrawItem    += new System.Windows.Forms.DrawItemEventHandler(this.list_DrawItem);
            this.listComponents.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.list_MeasureItem);
            this.listComponents.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.list_KeyDown);
            this.listComponents.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.list_MouseDown);
            //
            // tabEtoForms
            //
            this.tabEtoForms.BackColor = System.Drawing.Color.SkyBlue;
            this.tabEtoForms.Controls.Add(this.listEtoForms);
            this.tabEtoForms.Location = new System.Drawing.Point(4, 40);
            this.tabEtoForms.Name     = "tabEtoForms";
            this.tabEtoForms.Size     = new System.Drawing.Size(280, 508);
            this.tabEtoForms.TabIndex = 0;
            this.tabEtoForms.Text     = "Eto.Forms";
            //
            // tabComponents
            //
            this.tabComponents.BackColor = System.Drawing.Color.SkyBlue;
            this.tabComponents.Controls.Add(this.listComponents);
            this.tabComponents.Location = new System.Drawing.Point(4, 40);
            this.tabComponents.Name     = "tabComponents";
            this.tabComponents.Size     = new System.Drawing.Size(280, 508);
            this.tabComponents.TabIndex = 1;
            this.tabComponents.Text     = "Components";
            //
            // tabData
            //
            this.tabData.BackColor = System.Drawing.Color.SkyBlue;
            this.tabData.Controls.Add(this.listData);
            this.tabData.Location = new System.Drawing.Point(4, 40);
            this.tabData.Name     = "tabData";
            this.tabData.Size     = new System.Drawing.Size(280, 508);
            this.tabData.TabIndex = 2;
            this.tabData.Text     = "Data";
            //
            // tabCustomControls
            //
            this.tabCustomControls.BackColor = System.Drawing.Color.SkyBlue;
            this.tabCustomControls.Controls.Add(this.listCustomControls);
            this.tabCustomControls.Location = new System.Drawing.Point(4, 40);
            this.tabCustomControls.Name     = "tabCustomControls";
            this.tabCustomControls.Size     = new System.Drawing.Size(280, 508);
            this.tabCustomControls.TabIndex = 3;
            this.tabCustomControls.Text     = "Custom Controls";
            //
            // tabControl
            //
            this.tabControl.Controls.Add(this.tabEtoForms);
            this.tabControl.Controls.Add(this.tabData);
            this.tabControl.Controls.Add(this.tabComponents);
            this.tabControl.Controls.Add(this.tabCustomControls);
            this.tabControl.Dock                  = System.Windows.Forms.DockStyle.Fill;
            this.tabControl.DrawMode              = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
            this.tabControl.Font                  = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tabControl.ItemSize              = new System.Drawing.Size(99, 18);
            this.tabControl.Location              = new System.Drawing.Point(0, 0);
            this.tabControl.Multiline             = true;
            this.tabControl.Name                  = "tabControl";
            this.tabControl.SelectedIndex         = 0;
            this.tabControl.Size                  = new System.Drawing.Size(288, 552);
            this.tabControl.SizeMode              = System.Windows.Forms.TabSizeMode.FillToRight;
            this.tabControl.TabIndex              = 1;
            this.tabControl.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.tabControl_DrawItem);
            this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged);
            //
            // ToolboxPane
            //
            this.BackColor = System.Drawing.Color.Black;
            this.Controls.Add(this.tabControl);
            this.Name   = "ToolboxPane";
            this.Size   = new System.Drawing.Size(288, 552);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.ToolboxPane_Paint);
            this.tabEtoForms.ResumeLayout(false);
            this.tabComponents.ResumeLayout(false);
            this.tabData.ResumeLayout(false);
            this.tabCustomControls.ResumeLayout(false);
            this.tabControl.ResumeLayout(false);
            this.ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(OldfrmIndicatorAddDep));
     this.components    = new System.ComponentModel.Container();
     this.ToolTip1      = new System.Windows.Forms.ToolTip(components);
     this.lstIndicators = new System.Windows.Forms.ListBox();
     this.cmdCancel     = new System.Windows.Forms.Button();
     this.cmdSelect     = new System.Windows.Forms.Button();
     this.Label2        = new System.Windows.Forms.Label();
     this.Label3        = new System.Windows.Forms.Label();
     this.SuspendLayout();
     this.ToolTip1.Active                = true;
     this.StartPosition                  = System.Windows.Forms.FormStartPosition.Manual;
     this.FormBorderStyle                = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Text                           = "Define the required indicators for the selected indicator";
     this.ClientSize                     = new System.Drawing.Size(499, 183);
     this.Location                       = new System.Drawing.Point(4, 28);
     this.MaximizeBox                    = false;
     this.MinimizeBox                    = false;
     this.Font                           = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.AutoScaleMode                  = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor                      = System.Drawing.SystemColors.Control;
     this.ControlBox                     = true;
     this.Enabled                        = true;
     this.KeyPreview                     = false;
     this.Cursor                         = System.Windows.Forms.Cursors.Default;
     this.RightToLeft                    = System.Windows.Forms.RightToLeft.No;
     this.ShowInTaskbar                  = true;
     this.HelpButton                     = false;
     this.WindowState                    = System.Windows.Forms.FormWindowState.Normal;
     this.Name                           = "frmIndicatorAddDep";
     this.lstIndicators.Size             = new System.Drawing.Size(329, 107);
     this.lstIndicators.Location         = new System.Drawing.Point(105, 14);
     this.lstIndicators.SelectionMode    = System.Windows.Forms.SelectionMode.MultiSimple;
     this.lstIndicators.TabIndex         = 2;
     this.lstIndicators.Font             = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.lstIndicators.BorderStyle      = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lstIndicators.BackColor        = System.Drawing.SystemColors.Window;
     this.lstIndicators.CausesValidation = true;
     this.lstIndicators.Enabled          = true;
     this.lstIndicators.ForeColor        = System.Drawing.SystemColors.WindowText;
     this.lstIndicators.IntegralHeight   = true;
     this.lstIndicators.Cursor           = System.Windows.Forms.Cursors.Default;
     this.lstIndicators.RightToLeft      = System.Windows.Forms.RightToLeft.No;
     this.lstIndicators.Sorted           = false;
     this.lstIndicators.TabStop          = true;
     this.lstIndicators.Visible          = true;
     this.lstIndicators.MultiColumn      = false;
     this.lstIndicators.Name             = "lstIndicators";
     this.cmdCancel.TextAlign            = System.Drawing.ContentAlignment.MiddleCenter;
     this.cmdCancel.Text                 = "Cancel";
     this.cmdCancel.Size                 = new System.Drawing.Size(92, 27);
     this.cmdCancel.Location             = new System.Drawing.Point(259, 154);
     this.cmdCancel.TabIndex             = 1;
     this.cmdCancel.Font                 = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.cmdCancel.BackColor            = System.Drawing.SystemColors.Control;
     this.cmdCancel.CausesValidation     = true;
     this.cmdCancel.Enabled              = true;
     this.cmdCancel.ForeColor            = System.Drawing.SystemColors.ControlText;
     this.cmdCancel.Cursor               = System.Windows.Forms.Cursors.Default;
     this.cmdCancel.RightToLeft          = System.Windows.Forms.RightToLeft.No;
     this.cmdCancel.TabStop              = true;
     this.cmdCancel.Name                 = "cmdCancel";
     this.cmdSelect.TextAlign            = System.Drawing.ContentAlignment.MiddleCenter;
     this.cmdSelect.Text                 = "Select";
     this.cmdSelect.Size                 = new System.Drawing.Size(100, 27);
     this.cmdSelect.Location             = new System.Drawing.Point(153, 153);
     this.cmdSelect.TabIndex             = 0;
     this.cmdSelect.Font                 = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.cmdSelect.BackColor            = System.Drawing.SystemColors.Control;
     this.cmdSelect.CausesValidation     = true;
     this.cmdSelect.Enabled              = true;
     this.cmdSelect.ForeColor            = System.Drawing.SystemColors.ControlText;
     this.cmdSelect.Cursor               = System.Windows.Forms.Cursors.Default;
     this.cmdSelect.RightToLeft          = System.Windows.Forms.RightToLeft.No;
     this.cmdSelect.TabStop              = true;
     this.cmdSelect.Name                 = "cmdSelect";
     this.Label2.TextAlign               = System.Drawing.ContentAlignment.TopRight;
     this.Label2.Text                    = "Indicator:";
     this.Label2.Size                    = new System.Drawing.Size(92, 24);
     this.Label2.Location                = new System.Drawing.Point(2, 15);
     this.Label2.TabIndex                = 4;
     this.Label2.Font                    = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.Label2.BackColor               = System.Drawing.SystemColors.Control;
     this.Label2.Enabled                 = true;
     this.Label2.ForeColor               = System.Drawing.SystemColors.ControlText;
     this.Label2.Cursor                  = System.Windows.Forms.Cursors.Default;
     this.Label2.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.Label2.UseMnemonic             = true;
     this.Label2.Visible                 = true;
     this.Label2.AutoSize                = false;
     this.Label2.BorderStyle             = System.Windows.Forms.BorderStyle.None;
     this.Label2.Name                    = "Label2";
     this.Label3.Text                    = "Hold down the Shift key to make multiple selections";
     this.Label3.Size                    = new System.Drawing.Size(325, 23);
     this.Label3.Location                = new System.Drawing.Point(104, 119);
     this.Label3.TabIndex                = 3;
     this.Label3.Font                    = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
     this.Label3.TextAlign               = System.Drawing.ContentAlignment.TopLeft;
     this.Label3.BackColor               = System.Drawing.SystemColors.Control;
     this.Label3.Enabled                 = true;
     this.Label3.ForeColor               = System.Drawing.SystemColors.ControlText;
     this.Label3.Cursor                  = System.Windows.Forms.Cursors.Default;
     this.Label3.RightToLeft             = System.Windows.Forms.RightToLeft.No;
     this.Label3.UseMnemonic             = true;
     this.Label3.Visible                 = true;
     this.Label3.AutoSize                = false;
     this.Label3.BorderStyle             = System.Windows.Forms.BorderStyle.None;
     this.Label3.Name                    = "Label3";
     this.Controls.Add(lstIndicators);
     this.Controls.Add(cmdCancel);
     this.Controls.Add(cmdSelect);
     this.Controls.Add(Label2);
     this.Controls.Add(Label3);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #37
0
 public static int[,] добавитьФайлToolStripMenuItem_Click(System.Windows.Forms.TextBox textBox, System.Windows.Forms.ComboBox comboBox, System.Windows.Forms.ListBox listBox, System.Windows.Forms.OpenFileDialog openFileDialog1, int[,] Intron, System.Windows.Forms.Label Label)
 {
     if (Label.Text == "0") //на открытие
     {
         OpenFileDialog openFileDialog = new OpenFileDialog();
         openFileDialog1.Filter = "text files(*.doc; *.docx)| *.doc; *.docx";
         if (openFileDialog1.ShowDialog() == DialogResult.OK)                           //Открытие диалогового окна для открытия файла
         {
             S_namefiledirect  = openFileDialog1.FileName;                              //Сохранение в переменную пути к выбранному фалу
             S_namefile        = openFileDialog1.SafeFileName;                          //Сохранение в переменную имени выбранного файла
             S_namefile        = S_namefile.Remove(S_namefile.IndexOf(".docx"));
             S_wordapp         = new Word.Application();                                //Создаем объект Word - равносильно запуску Word.
             S_wordapp.Visible = false;
             Object filename = S_namefiledirect;
             S_worddocument = S_wordapp.Documents.Open(ref filename);                   //Открываем конкретный существующий word документ из нужной директории.
             Object     begin     = Type.Missing;                                       //В документе определяем диапазон,вызовом метода Range
             Object     end       = Type.Missing;                                       //с передачей ему начального
             Word.Range wordrange = S_worddocument.Range(ref begin, ref end);           //и конечного значений позиций символов.
             wordrange.Copy();                                                          //Копирование в буфер обмена.
             S_text = Clipboard.GetText();                                              //Сохранение в переменную скопированного текста
             if (S_Osnova != S_STD)
             {
                 System.IO.File.WriteAllText((S_STD + "/" + S_namefile + ".txt"), S_text);                                                                                                                                     //Создание текстового файла txt и запись в него текста из буфера обмена
                 System.IO.File.WriteAllText((S_Osnova + "/" + "The table of semantic fragments" + "/" + S_namefile + ".txt"), "");                                                                                            //Создание текстового файла для таблиц смысловых фрагментов
                 comboBox.Items.Add(S_namefile);                                                                                                                                                                               //Добавление в combobox1 имени файла, с которого мы скопировали текст
                 comboBox.Text = S_namefile;                                                                                                                                                                                   //Надпись комбобокса меняется на имя файла
                 listBox.Items.Clear();                                                                                                                                                                                        //очистка листбкса
                 S_nameFile.Add(S_namefile);                                                                                                                                                                                   //Добавление в список имени файла
                 S_textFile.Add(S_text);                                                                                                                                                                                       //Добавление в список текста файла
                 Intron = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Osnova + "/Text documents/" + S_namefile + ".txt", S_Osnova + "/The table of semantic fragments/" + S_namefile + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b1(listBox, S_Osnova + "/The table of semantic fragments/" + S_namefile + ".txt");
                 Object saveChanges    = Word.WdSaveOptions.wdPromptToSaveChanges;
                 Object originalFormat = Word.WdOriginalFormat.wdWordDocument;
                 Object routeDocument  = Type.Missing;
                 S_wordapp.Quit(ref saveChanges, ref originalFormat, ref routeDocument);    // Закрытие файла
                 S_wordapp = null;
             }
             if (S_Osnova == S_STD)
             {
                 System.IO.File.WriteAllText((S_STD + "/" + S_namefile + ".txt"), S_text);                                                                                                                                     //Создание текстового файла txt и запись в него текста из буфера обмена
                 System.IO.File.WriteAllText((S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_namefile + ".txt"), "");                                                                                            //Создание текстового файла для таблиц смысловых фрагментов
                 comboBox.Items.Add(S_namefile);                                                                                                                                                                               //Добавление в combobox1 имени файла, с которого мы скопировали текст
                 comboBox.Text = S_namefile;                                                                                                                                                                                   //Надпись комбобокса меняется на имя файла
                 listBox.Items.Clear();                                                                                                                                                                                        //очистка листбкса
                 S_nameFile.Add(S_namefile);                                                                                                                                                                                   //Добавление в список имени файла
                 S_textFile.Add(S_text);                                                                                                                                                                                       //Добавление в список текста файла
                 Intron = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_namefile + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_namefile + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_namefile + ".txt");
                 Object saveChanges    = Word.WdSaveOptions.wdPromptToSaveChanges;
                 Object originalFormat = Word.WdOriginalFormat.wdWordDocument;
                 Object routeDocument  = Type.Missing;
                 S_wordapp.Quit(ref saveChanges, ref originalFormat, ref routeDocument);    // Закрытие файла
                 S_wordapp = null;
             }
         }
     }
     else if (Label.Text == "1") //на создание
     {
         OpenFileDialog openFileDialog2 = new OpenFileDialog();
         openFileDialog1.Filter = "text files(*.doc; *.docx)| *.doc; *.docx";
         if (openFileDialog1.ShowDialog() == DialogResult.OK)                           //Открытие диалогового окна для открытия файла
         {
             S_namefiledirect  = openFileDialog1.FileName;                              //Сохранение в переменную пути к выбранному фалу
             S_namefile        = openFileDialog1.SafeFileName;                          //Сохранение в переменную имени выбранного файла
             S_namefile        = S_namefile.Remove(S_namefile.IndexOf(".docx"));
             S_wordapp         = new Word.Application();                                //Создаем объект Word - равносильно запуску Word.
             S_wordapp.Visible = false;
             Object filename = S_namefiledirect;
             S_worddocument = S_wordapp.Documents.Open(ref filename);                   //Открываем конкретный существующий word документ из нужной директории.
             Object     begin     = Type.Missing;                                       //В документе определяем диапазон,вызовом метода Range
             Object     end       = Type.Missing;                                       //с передачей ему начального
             Word.Range wordrange = S_worddocument.Range(ref begin, ref end);           //и конечного значений позиций символов.
             wordrange.Copy();                                                          //Копирование в буфер обмена.
             S_text = Clipboard.GetText();                                              //Сохранение в переменную скопированного текста
             if (S_Osnova != S_STD)
             {
                 System.IO.File.WriteAllText((S_STD + "/" + S_namefile + ".txt"), S_text);                                                                                                                                     //Создание текстового файла txt и запись в него текста из буфера обмена
                 System.IO.File.WriteAllText((S_Osnova + "/" + "The table of semantic fragments" + "/" + S_namefile + ".txt"), "");                                                                                            //Создание текстового файла для таблиц смысловых фрагментов
                 comboBox.Items.Add(S_namefile);                                                                                                                                                                               //Добавление в combobox1 имени файла, с которого мы скопировали текст
                 comboBox.Text = S_namefile;                                                                                                                                                                                   //Надпись комбобокса меняется на имя файла
                 listBox.Items.Clear();                                                                                                                                                                                        //очистка листбкса
                 S_nameFile.Add(S_namefile);                                                                                                                                                                                   //Добавление в список имени файла
                 S_textFile.Add(S_text);                                                                                                                                                                                       //Добавление в список текста файла
                 Intron = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Osnova + "/Text documents/" + S_namefile + ".txt", S_Osnova + "/The table of semantic fragments/" + S_namefile + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b1(listBox, S_Osnova + "/The table of semantic fragments/" + S_namefile + ".txt");
                 Object saveChanges    = Word.WdSaveOptions.wdPromptToSaveChanges;
                 Object originalFormat = Word.WdOriginalFormat.wdWordDocument;
                 Object routeDocument  = Type.Missing;
                 S_wordapp.Quit(ref saveChanges, ref originalFormat, ref routeDocument);    // Закрытие файла
                 S_wordapp = null;
             }
             if (S_Osnova == S_STD)
             {
                 System.IO.File.WriteAllText((S_STD + "/" + S_namefile + ".txt"), S_text);                                                                                                                                     //Создание текстового файла txt и запись в него текста из буфера обмена
                 System.IO.File.WriteAllText((S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_namefile + ".txt"), "");                                                                                            //Создание текстового файла для таблиц смысловых фрагментов
                 comboBox.Items.Add(S_namefile);                                                                                                                                                                               //Добавление в combobox1 имени файла, с которого мы скопировали текст
                 comboBox.Text = S_namefile;                                                                                                                                                                                   //Надпись комбобокса меняется на имя файла
                 listBox.Items.Clear();                                                                                                                                                                                        //очистка листбкса
                 S_nameFile.Add(S_namefile);                                                                                                                                                                                   //Добавление в список имени файла
                 S_textFile.Add(S_text);                                                                                                                                                                                       //Добавление в список текста файла
                 Intron = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_namefile + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_namefile + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_namefile + ".txt");
                 Object saveChanges    = Word.WdSaveOptions.wdPromptToSaveChanges;
                 Object originalFormat = Word.WdOriginalFormat.wdWordDocument;
                 Object routeDocument  = Type.Missing;
                 S_wordapp.Quit(ref saveChanges, ref originalFormat, ref routeDocument);    // Закрытие файла
                 S_wordapp = null;
             }
         }
     }
     return(Intron);
 }
Пример #38
0
    private void InitializeComponent()
    {
        System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmMain));

        this.mnuMain = new System.Windows.Forms.MainMenu();

        this.mnuFile = new System.Windows.Forms.MenuItem();

        this.mnuExit = new System.Windows.Forms.MenuItem();

        this.mnuHelp = new System.Windows.Forms.MenuItem();

        this.mnuAbout = new System.Windows.Forms.MenuItem();

        this.grpViewMetadata = new System.Windows.Forms.GroupBox();

        this.cmdAssemblyDetail = new System.Windows.Forms.Button();

        this.cmdListLoadedAssemblies = new System.Windows.Forms.Button();

        this.lblCurrentlyLoadedAssemblies = new System.Windows.Forms.Label();

        this.lstLoadedAssemblies = new System.Windows.Forms.ListBox();

        this.txtDisplayName = new System.Windows.Forms.TextBox();

        this.lblDisplayName = new System.Windows.Forms.Label();

        this.txtLocation = new System.Windows.Forms.TextBox();

        this.lblLocation = new System.Windows.Forms.Label();

        this.lstTypes = new System.Windows.Forms.ListBox();

        this.lblTypes = new System.Windows.Forms.Label();

        this.lblMembers = new System.Windows.Forms.Label();

        this.lstMembers = new System.Windows.Forms.ListBox();

        this.sbInfo = new System.Windows.Forms.StatusBar();

        this.pnlAssemblies = new System.Windows.Forms.StatusBarPanel();

        this.pnlTypes = new System.Windows.Forms.StatusBarPanel();

        this.pnlMembers = new System.Windows.Forms.StatusBarPanel();

        this.grpViewMetadata.SuspendLayout();

        ((System.ComponentModel.ISupportInitialize) this.pnlAssemblies).BeginInit();

        ((System.ComponentModel.ISupportInitialize) this.pnlTypes).BeginInit();

        ((System.ComponentModel.ISupportInitialize) this.pnlMembers).BeginInit();

        this.SuspendLayout();

        //

        //mnuMain

        //

        this.mnuMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuFile, this.mnuHelp });

        //

        //mnuFile

        //

        this.mnuFile.Index = 0;

        this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuExit });

        this.mnuFile.Text = "&File";

        //

        //mnuExit

        //

        this.mnuExit.Index = 0;

        this.mnuExit.Text   = "E&xit";
        this.mnuExit.Click += new EventHandler(mnuExit_Click);

        //

        //mnuHelp

        //

        this.mnuHelp.Index = 1;

        this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuAbout });

        this.mnuHelp.Text = "&Help";

        //

        //mnuAbout

        //

        this.mnuAbout.Index = 0;

        this.mnuAbout.Text   = "Text Comes from AssemblyInfo";
        this.mnuAbout.Click += new EventHandler(mnuAbout_Click);

        //

        //grpViewMetadata

        //

        this.grpViewMetadata.Controls.AddRange(new System.Windows.Forms.Control[] { this.cmdAssemblyDetail, this.cmdListLoadedAssemblies });

        this.grpViewMetadata.Location = new System.Drawing.Point(16, 16);

        this.grpViewMetadata.Name = "grpViewMetadata";

        this.grpViewMetadata.Size = new System.Drawing.Size(248, 104);

        this.grpViewMetadata.TabIndex = 0;

        this.grpViewMetadata.TabStop = false;

        this.grpViewMetadata.Text = "&View Metadata";

        //

        //cmdAssemblyDetail

        //

        this.cmdAssemblyDetail.Enabled = false;

        this.cmdAssemblyDetail.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.cmdAssemblyDetail.Location = new System.Drawing.Point(24, 64);

        this.cmdAssemblyDetail.Name = "cmdAssemblyDetail";

        this.cmdAssemblyDetail.Size = new System.Drawing.Size(200, 24);

        this.cmdAssemblyDetail.TabIndex = 2;

        this.cmdAssemblyDetail.Text   = "Show &Detail for Selected Assembly";
        this.cmdAssemblyDetail.Click += new EventHandler(cmdAssemblyDetail_Click);

        //

        //cmdListLoadedAssemblies

        //

        this.cmdListLoadedAssemblies.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.cmdListLoadedAssemblies.Location = new System.Drawing.Point(24, 32);

        this.cmdListLoadedAssemblies.Name = "cmdListLoadedAssemblies";

        this.cmdListLoadedAssemblies.Size = new System.Drawing.Size(200, 24);

        this.cmdListLoadedAssemblies.TabIndex = 1;

        this.cmdListLoadedAssemblies.Text   = "List &Loaded Assemblies";
        this.cmdListLoadedAssemblies.Click += new EventHandler(cmdListLoadedAssemblies_Click);

        //

        //lblCurrentlyLoadedAssemblies

        //

        this.lblCurrentlyLoadedAssemblies.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.lblCurrentlyLoadedAssemblies.Location = new System.Drawing.Point(296, 8);

        this.lblCurrentlyLoadedAssemblies.Name = "lblCurrentlyLoadedAssemblies";

        this.lblCurrentlyLoadedAssemblies.Size = new System.Drawing.Size(168, 16);

        this.lblCurrentlyLoadedAssemblies.TabIndex = 3;

        this.lblCurrentlyLoadedAssemblies.Text = "&Currently Loaded Assemblies";

        //

        //lstLoadedAssemblies

        //

        this.lstLoadedAssemblies.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);

        this.lstLoadedAssemblies.Location = new System.Drawing.Point(288, 24);

        this.lstLoadedAssemblies.Name = "lstLoadedAssemblies";

        this.lstLoadedAssemblies.Size = new System.Drawing.Size(214, 95);

        this.lstLoadedAssemblies.Sorted = true;

        this.lstLoadedAssemblies.TabIndex              = 4;
        this.lstLoadedAssemblies.SelectedIndexChanged += new EventHandler(lstLoadedAssemblies_SelectedIndexChanged);

        //

        //txtDisplayName

        //

        this.txtDisplayName.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);

        this.txtDisplayName.Location = new System.Drawing.Point(16, 152);

        this.txtDisplayName.Name = "txtDisplayName";

        this.txtDisplayName.ReadOnly = true;

        this.txtDisplayName.Size = new System.Drawing.Size(486, 20);

        this.txtDisplayName.TabIndex = 6;

        this.txtDisplayName.Text = "";

        //

        //lblDisplayName

        //

        this.lblDisplayName.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.lblDisplayName.Location = new System.Drawing.Point(16, 136);

        this.lblDisplayName.Name = "lblDisplayName";

        this.lblDisplayName.Size = new System.Drawing.Size(288, 16);

        this.lblDisplayName.TabIndex = 5;

        this.lblDisplayName.Text = "F&ully qualified name (DisplayName) for Assembly";

        //

        //txtLocation

        //

        this.txtLocation.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);

        this.txtLocation.Location = new System.Drawing.Point(16, 200);

        this.txtLocation.Name = "txtLocation";

        this.txtLocation.ReadOnly = true;

        this.txtLocation.Size = new System.Drawing.Size(486, 20);

        this.txtLocation.TabIndex = 8;

        this.txtLocation.Text = "";

        //

        //lblLocation

        //

        this.lblLocation.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.lblLocation.Location = new System.Drawing.Point(16, 184);

        this.lblLocation.Name = "lblLocation";

        this.lblLocation.Size = new System.Drawing.Size(288, 16);

        this.lblLocation.TabIndex = 7;

        this.lblLocation.Text = "&Path and File Name of Assembly";

        //

        //lstTypes

        //

        this.lstTypes.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);

        this.lstTypes.Location = new System.Drawing.Point(16, 248);

        this.lstTypes.Name = "lstTypes";

        this.lstTypes.Size = new System.Drawing.Size(496, 121);

        this.lstTypes.Sorted = true;

        this.lstTypes.TabIndex              = 10;
        this.lstTypes.SelectedIndexChanged += new EventHandler(lstTypes_SelectedIndexChanged);

        //

        //lblTypes

        //

        this.lblTypes.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.lblTypes.Location = new System.Drawing.Point(16, 232);

        this.lblTypes.Name = "lblTypes";

        this.lblTypes.Size = new System.Drawing.Size(152, 16);

        this.lblTypes.TabIndex = 9;

        this.lblTypes.Text = "&Types in Assembly";

        //

        //lblMembers

        //

        this.lblMembers.ImeMode = System.Windows.Forms.ImeMode.NoControl;

        this.lblMembers.Location = new System.Drawing.Point(16, 376);

        this.lblMembers.Name = "lblMembers";

        this.lblMembers.Size = new System.Drawing.Size(152, 16);

        this.lblMembers.TabIndex = 11;

        this.lblMembers.Text = "&Members in Selected Type";

        //

        //lstMembers

        //

        this.lstMembers.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);

        this.lstMembers.Location = new System.Drawing.Point(16, 392);

        this.lstMembers.Name = "lstMembers";

        this.lstMembers.Size = new System.Drawing.Size(496, 121);

        this.lstMembers.Sorted = true;

        this.lstMembers.TabIndex = 12;

        //

        //sbInfo

        //

        this.sbInfo.Location = new System.Drawing.Point(0, 523);

        this.sbInfo.Name = "sbInfo";

        this.sbInfo.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.pnlAssemblies, this.pnlTypes, this.pnlMembers });

        this.sbInfo.ShowPanels = true;

        this.sbInfo.Size = new System.Drawing.Size(520, 22);

        this.sbInfo.TabIndex = 13;

        //

        //pnlAssemblies

        //

        this.pnlAssemblies.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;

        this.pnlAssemblies.Text = "Assemblies: {0}";

        this.pnlAssemblies.Width = 168;

        //

        //pnlTypes

        //

        this.pnlTypes.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;

        this.pnlTypes.Text = "Types: {0}";

        this.pnlTypes.Width = 168;

        //

        //pnlMembers

        //

        this.pnlMembers.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;

        this.pnlMembers.Text = "Members: {0}";

        this.pnlMembers.Width = 168;

        //

        //frmMain

        //

        this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

        this.ClientSize = new System.Drawing.Size(520, 545);

        this.Controls.AddRange(new System.Windows.Forms.Control[] { this.sbInfo, this.lblMembers, this.lstMembers, this.lblTypes, this.lstTypes, this.lblLocation, this.txtLocation, this.lblDisplayName, this.txtDisplayName, this.lstLoadedAssemblies, this.lblCurrentlyLoadedAssemblies, this.grpViewMetadata });

        this.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");

        this.MaximizeBox = false;

        this.Menu = this.mnuMain;

        this.Name = "frmMain";

        this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

        this.Text = "Title Comes from Assembly Info";

        this.grpViewMetadata.ResumeLayout(false);

        ((System.ComponentModel.ISupportInitialize) this.pnlAssemblies).EndInit();

        ((System.ComponentModel.ISupportInitialize) this.pnlTypes).EndInit();

        ((System.ComponentModel.ISupportInitialize) this.pnlMembers).EndInit();

        this.ResumeLayout(false);
        this.Load += new EventHandler(frmMain_Load);
    }
Пример #39
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSchoolClasses));
     this.listMain = new System.Windows.Forms.ListBox();
     this.butClose = new OpenDental.UI.Button();
     this.butAdd   = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // listMain
     //
     this.listMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.listMain.Location     = new System.Drawing.Point(16, 12);
     this.listMain.Name         = "listMain";
     this.listMain.Size         = new System.Drawing.Size(265, 381);
     this.listMain.TabIndex     = 4;
     this.listMain.DoubleClick += new System.EventHandler(this.listMain_DoubleClick);
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butClose.Autosize     = true;
     this.butClose.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius = 4F;
     this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butClose.Location     = new System.Drawing.Point(209, 417);
     this.butClose.Name         = "butClose";
     this.butClose.Size         = new System.Drawing.Size(75, 26);
     this.butClose.TabIndex     = 3;
     this.butClose.Text         = "&Close";
     this.butClose.Click       += new System.EventHandler(this.butClose_Click);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butAdd.Autosize     = true;
     this.butAdd.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius = 4F;
     this.butAdd.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location     = new System.Drawing.Point(16, 416);
     this.butAdd.Name         = "butAdd";
     this.butAdd.Size         = new System.Drawing.Size(79, 26);
     this.butAdd.TabIndex     = 10;
     this.butAdd.Text         = "&Add";
     this.butAdd.Click       += new System.EventHandler(this.butAdd_Click);
     //
     // FormSchoolClasses
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.butClose;
     this.ClientSize        = new System.Drawing.Size(300, 459);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butClose);
     this.Controls.Add(this.listMain);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormSchoolClasses";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Dental School Classes";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.FormSchoolClasses_Closing);
     this.Load         += new System.EventHandler(this.FormSchoolClasses_Load);
     this.ResumeLayout(false);
 }
Пример #40
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormQueryFormulate));
     this.butOK        = new OpenDental.UI.Button();
     this.butCancel    = new OpenDental.UI.Button();
     this.list2        = new System.Windows.Forms.ListBox();
     this.textQuery    = new System.Windows.Forms.TextBox();
     this.label1       = new System.Windows.Forms.Label();
     this.textTitle    = new System.Windows.Forms.TextBox();
     this.label2       = new System.Windows.Forms.Label();
     this.textFileName = new System.Windows.Forms.TextBox();
     this.label3       = new System.Windows.Forms.Label();
     this.butAdd       = new OpenDental.UI.Button();
     this.butDelete    = new OpenDental.UI.Button();
     this.SuspendLayout();
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(808, 560);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 3;
     this.butOK.Text         = "&OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(808, 596);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 4;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // list2
     //
     this.list2.Location     = new System.Drawing.Point(32, 20);
     this.list2.Name         = "list2";
     this.list2.Size         = new System.Drawing.Size(186, 524);
     this.list2.TabIndex     = 0;
     this.list2.DoubleClick += new System.EventHandler(this.list2_DoubleClick);
     this.list2.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.list2_MouseDown);
     //
     // textQuery
     //
     this.textQuery.Font      = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textQuery.Location  = new System.Drawing.Point(252, 90);
     this.textQuery.Multiline = true;
     this.textQuery.Name      = "textQuery";
     this.textQuery.ReadOnly  = true;
     this.textQuery.Size      = new System.Drawing.Size(522, 462);
     this.textQuery.TabIndex  = 4;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(252, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 14);
     this.label1.TabIndex = 11;
     this.label1.Text     = "Title";
     //
     // textTitle
     //
     this.textTitle.Location = new System.Drawing.Point(252, 36);
     this.textTitle.Name     = "textTitle";
     this.textTitle.ReadOnly = true;
     this.textTitle.Size     = new System.Drawing.Size(360, 20);
     this.textTitle.TabIndex = 12;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(252, 70);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 14);
     this.label2.TabIndex = 13;
     this.label2.Text     = "Query";
     //
     // textFileName
     //
     this.textFileName.Location = new System.Drawing.Point(250, 592);
     this.textFileName.Name     = "textFileName";
     this.textFileName.ReadOnly = true;
     this.textFileName.Size     = new System.Drawing.Size(360, 20);
     this.textFileName.TabIndex = 16;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(250, 572);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(271, 14);
     this.label3.TabIndex = 15;
     this.label3.Text     = "Save As File Name";
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butAdd.Autosize     = true;
     this.butAdd.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius = 4F;
     this.butAdd.Image        = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location     = new System.Drawing.Point(34, 567);
     this.butAdd.Name         = "butAdd";
     this.butAdd.Size         = new System.Drawing.Size(82, 26);
     this.butAdd.TabIndex     = 34;
     this.butAdd.Text         = "&New";
     this.butAdd.Click       += new System.EventHandler(this.butAdd_Click);
     //
     // butDelete
     //
     this.butDelete.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDelete.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butDelete.Autosize     = true;
     this.butDelete.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDelete.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDelete.CornerRadius = 4F;
     this.butDelete.Image        = global::OpenDental.Properties.Resources.deleteX;
     this.butDelete.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDelete.Location     = new System.Drawing.Point(141, 567);
     this.butDelete.Name         = "butDelete";
     this.butDelete.Size         = new System.Drawing.Size(82, 26);
     this.butDelete.TabIndex     = 35;
     this.butDelete.Text         = "&Delete";
     this.butDelete.Click       += new System.EventHandler(this.butDelete_Click);
     //
     // FormQueryFormulate
     //
     this.AcceptButton      = this.butOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.butCancel;
     this.ClientSize        = new System.Drawing.Size(900, 652);
     this.Controls.Add(this.butAdd);
     this.Controls.Add(this.butDelete);
     this.Controls.Add(this.textFileName);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textTitle);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textQuery);
     this.Controls.Add(this.list2);
     this.Controls.Add(this.butCancel);
     this.Controls.Add(this.butOK);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormQueryFormulate";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Query Favorites";
     this.Load         += new System.EventHandler(this.FormQueryFormulate_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #41
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lst     = new System.Windows.Forms.ListBox();
     this.art     = new TheBox.ArtViewer.ArtViewer();
     this.g1      = new System.Windows.Forms.GroupBox();
     this.p1      = new System.Windows.Forms.CheckBox();
     this.e1      = new System.Windows.Forms.CheckBox();
     this.h1      = new System.Windows.Forms.CheckBox();
     this.l1      = new System.Windows.Forms.CheckBox();
     this.g2      = new System.Windows.Forms.GroupBox();
     this.p2      = new System.Windows.Forms.CheckBox();
     this.e2      = new System.Windows.Forms.CheckBox();
     this.h2      = new System.Windows.Forms.CheckBox();
     this.l2      = new System.Windows.Forms.CheckBox();
     this.g3      = new System.Windows.Forms.GroupBox();
     this.p3      = new System.Windows.Forms.CheckBox();
     this.e3      = new System.Windows.Forms.CheckBox();
     this.h3      = new System.Windows.Forms.CheckBox();
     this.l3      = new System.Windows.Forms.CheckBox();
     this.g4      = new System.Windows.Forms.GroupBox();
     this.p4      = new System.Windows.Forms.CheckBox();
     this.e4      = new System.Windows.Forms.CheckBox();
     this.h4      = new System.Windows.Forms.CheckBox();
     this.l4      = new System.Windows.Forms.CheckBox();
     this.g5      = new System.Windows.Forms.GroupBox();
     this.p5      = new System.Windows.Forms.CheckBox();
     this.e5      = new System.Windows.Forms.CheckBox();
     this.h5      = new System.Windows.Forms.CheckBox();
     this.l5      = new System.Windows.Forms.CheckBox();
     this.g6      = new System.Windows.Forms.GroupBox();
     this.p6      = new System.Windows.Forms.CheckBox();
     this.e6      = new System.Windows.Forms.CheckBox();
     this.h6      = new System.Windows.Forms.CheckBox();
     this.l6      = new System.Windows.Forms.CheckBox();
     this.g7      = new System.Windows.Forms.GroupBox();
     this.p7      = new System.Windows.Forms.CheckBox();
     this.e7      = new System.Windows.Forms.CheckBox();
     this.h7      = new System.Windows.Forms.CheckBox();
     this.l7      = new System.Windows.Forms.CheckBox();
     this.g8      = new System.Windows.Forms.GroupBox();
     this.p8      = new System.Windows.Forms.CheckBox();
     this.e8      = new System.Windows.Forms.CheckBox();
     this.h8      = new System.Windows.Forms.CheckBox();
     this.l8      = new System.Windows.Forms.CheckBox();
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.cmbList = new System.Windows.Forms.ComboBox();
     this.g1.SuspendLayout();
     this.g2.SuspendLayout();
     this.g3.SuspendLayout();
     this.g4.SuspendLayout();
     this.g5.SuspendLayout();
     this.g6.SuspendLayout();
     this.g7.SuspendLayout();
     this.g8.SuspendLayout();
     this.SuspendLayout();
     //
     // lst
     //
     this.lst.Location              = new System.Drawing.Point(8, 40);
     this.lst.Name                  = "lst";
     this.lst.Size                  = new System.Drawing.Size(120, 329);
     this.lst.Sorted                = true;
     this.lst.TabIndex              = 1;
     this.lst.SelectedIndexChanged += new System.EventHandler(this.lst_SelectedIndexChanged);
     //
     // art
     //
     this.art.Animate         = false;
     this.art.Art             = TheBox.ArtViewer.Art.Items;
     this.art.ArtIndex        = 0;
     this.art.Hue             = 0;
     this.art.Location        = new System.Drawing.Point(232, 144);
     this.art.Name            = "art";
     this.art.ResizeTallItems = false;
     this.art.RoomView        = true;
     this.art.ShowID          = false;
     this.art.Size            = new System.Drawing.Size(88, 88);
     this.art.TabIndex        = 2;
     this.art.Text            = "artViewer1";
     //
     // g1
     //
     this.g1.Controls.Add(this.p1);
     this.g1.Controls.Add(this.e1);
     this.g1.Controls.Add(this.h1);
     this.g1.Controls.Add(this.l1);
     this.g1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g1.Location  = new System.Drawing.Point(136, 8);
     this.g1.Name      = "g1";
     this.g1.Size      = new System.Drawing.Size(88, 120);
     this.g1.TabIndex  = 3;
     this.g1.TabStop   = false;
     //
     // p1
     //
     this.p1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p1.Location        = new System.Drawing.Point(8, 88);
     this.p1.Name            = "p1";
     this.p1.Size            = new System.Drawing.Size(64, 24);
     this.p1.TabIndex        = 3;
     this.p1.Text            = "Empty";
     this.p1.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e1
     //
     this.e1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e1.Location        = new System.Drawing.Point(8, 64);
     this.e1.Name            = "e1";
     this.e1.Size            = new System.Drawing.Size(64, 24);
     this.e1.TabIndex        = 2;
     this.e1.Text            = "Even";
     this.e1.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h1
     //
     this.h1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h1.Location        = new System.Drawing.Point(8, 40);
     this.h1.Name            = "h1";
     this.h1.Size            = new System.Drawing.Size(64, 24);
     this.h1.TabIndex        = 1;
     this.h1.Text            = "Higher";
     this.h1.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l1
     //
     this.l1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l1.Location        = new System.Drawing.Point(8, 16);
     this.l1.Name            = "l1";
     this.l1.Size            = new System.Drawing.Size(72, 24);
     this.l1.TabIndex        = 0;
     this.l1.Text            = "Lower";
     this.l1.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g2
     //
     this.g2.Controls.Add(this.p2);
     this.g2.Controls.Add(this.e2);
     this.g2.Controls.Add(this.h2);
     this.g2.Controls.Add(this.l2);
     this.g2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g2.Location  = new System.Drawing.Point(232, 8);
     this.g2.Name      = "g2";
     this.g2.Size      = new System.Drawing.Size(88, 120);
     this.g2.TabIndex  = 4;
     this.g2.TabStop   = false;
     //
     // p2
     //
     this.p2.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p2.Location        = new System.Drawing.Point(8, 88);
     this.p2.Name            = "p2";
     this.p2.Size            = new System.Drawing.Size(64, 24);
     this.p2.TabIndex        = 3;
     this.p2.Text            = "Empty";
     this.p2.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e2
     //
     this.e2.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e2.Location        = new System.Drawing.Point(8, 64);
     this.e2.Name            = "e2";
     this.e2.Size            = new System.Drawing.Size(64, 24);
     this.e2.TabIndex        = 2;
     this.e2.Text            = "Even";
     this.e2.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h2
     //
     this.h2.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h2.Location        = new System.Drawing.Point(8, 40);
     this.h2.Name            = "h2";
     this.h2.Size            = new System.Drawing.Size(64, 24);
     this.h2.TabIndex        = 1;
     this.h2.Text            = "Higher";
     this.h2.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l2
     //
     this.l2.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l2.Location        = new System.Drawing.Point(8, 16);
     this.l2.Name            = "l2";
     this.l2.Size            = new System.Drawing.Size(72, 24);
     this.l2.TabIndex        = 0;
     this.l2.Text            = "Lower";
     this.l2.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g3
     //
     this.g3.Controls.Add(this.p3);
     this.g3.Controls.Add(this.e3);
     this.g3.Controls.Add(this.h3);
     this.g3.Controls.Add(this.l3);
     this.g3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g3.Location  = new System.Drawing.Point(328, 8);
     this.g3.Name      = "g3";
     this.g3.Size      = new System.Drawing.Size(88, 120);
     this.g3.TabIndex  = 5;
     this.g3.TabStop   = false;
     //
     // p3
     //
     this.p3.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p3.Location        = new System.Drawing.Point(8, 88);
     this.p3.Name            = "p3";
     this.p3.Size            = new System.Drawing.Size(64, 24);
     this.p3.TabIndex        = 3;
     this.p3.Text            = "Empty";
     this.p3.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e3
     //
     this.e3.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e3.Location        = new System.Drawing.Point(8, 64);
     this.e3.Name            = "e3";
     this.e3.Size            = new System.Drawing.Size(64, 24);
     this.e3.TabIndex        = 2;
     this.e3.Text            = "Even";
     this.e3.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h3
     //
     this.h3.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h3.Location        = new System.Drawing.Point(8, 40);
     this.h3.Name            = "h3";
     this.h3.Size            = new System.Drawing.Size(64, 24);
     this.h3.TabIndex        = 1;
     this.h3.Text            = "Higher";
     this.h3.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l3
     //
     this.l3.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l3.Location        = new System.Drawing.Point(8, 16);
     this.l3.Name            = "l3";
     this.l3.Size            = new System.Drawing.Size(72, 24);
     this.l3.TabIndex        = 0;
     this.l3.Text            = "Lower";
     this.l3.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g4
     //
     this.g4.Controls.Add(this.p4);
     this.g4.Controls.Add(this.e4);
     this.g4.Controls.Add(this.h4);
     this.g4.Controls.Add(this.l4);
     this.g4.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g4.Location  = new System.Drawing.Point(136, 128);
     this.g4.Name      = "g4";
     this.g4.Size      = new System.Drawing.Size(88, 120);
     this.g4.TabIndex  = 6;
     this.g4.TabStop   = false;
     //
     // p4
     //
     this.p4.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p4.Location        = new System.Drawing.Point(8, 88);
     this.p4.Name            = "p4";
     this.p4.Size            = new System.Drawing.Size(64, 24);
     this.p4.TabIndex        = 3;
     this.p4.Text            = "Empty";
     this.p4.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e4
     //
     this.e4.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e4.Location        = new System.Drawing.Point(8, 64);
     this.e4.Name            = "e4";
     this.e4.Size            = new System.Drawing.Size(64, 24);
     this.e4.TabIndex        = 2;
     this.e4.Text            = "Even";
     this.e4.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h4
     //
     this.h4.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h4.Location        = new System.Drawing.Point(8, 40);
     this.h4.Name            = "h4";
     this.h4.Size            = new System.Drawing.Size(64, 24);
     this.h4.TabIndex        = 1;
     this.h4.Text            = "Higher";
     this.h4.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l4
     //
     this.l4.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l4.Location        = new System.Drawing.Point(8, 16);
     this.l4.Name            = "l4";
     this.l4.Size            = new System.Drawing.Size(72, 24);
     this.l4.TabIndex        = 0;
     this.l4.Text            = "Lower";
     this.l4.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g5
     //
     this.g5.Controls.Add(this.p5);
     this.g5.Controls.Add(this.e5);
     this.g5.Controls.Add(this.h5);
     this.g5.Controls.Add(this.l5);
     this.g5.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g5.Location  = new System.Drawing.Point(328, 128);
     this.g5.Name      = "g5";
     this.g5.Size      = new System.Drawing.Size(88, 120);
     this.g5.TabIndex  = 7;
     this.g5.TabStop   = false;
     //
     // p5
     //
     this.p5.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p5.Location        = new System.Drawing.Point(8, 88);
     this.p5.Name            = "p5";
     this.p5.Size            = new System.Drawing.Size(64, 24);
     this.p5.TabIndex        = 3;
     this.p5.Text            = "Empty";
     this.p5.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e5
     //
     this.e5.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e5.Location        = new System.Drawing.Point(8, 64);
     this.e5.Name            = "e5";
     this.e5.Size            = new System.Drawing.Size(64, 24);
     this.e5.TabIndex        = 2;
     this.e5.Text            = "Even";
     this.e5.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h5
     //
     this.h5.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h5.Location        = new System.Drawing.Point(8, 40);
     this.h5.Name            = "h5";
     this.h5.Size            = new System.Drawing.Size(64, 24);
     this.h5.TabIndex        = 1;
     this.h5.Text            = "Higher";
     this.h5.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l5
     //
     this.l5.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l5.Location        = new System.Drawing.Point(8, 16);
     this.l5.Name            = "l5";
     this.l5.Size            = new System.Drawing.Size(72, 24);
     this.l5.TabIndex        = 0;
     this.l5.Text            = "Lower";
     this.l5.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g6
     //
     this.g6.Controls.Add(this.p6);
     this.g6.Controls.Add(this.e6);
     this.g6.Controls.Add(this.h6);
     this.g6.Controls.Add(this.l6);
     this.g6.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g6.Location  = new System.Drawing.Point(136, 248);
     this.g6.Name      = "g6";
     this.g6.Size      = new System.Drawing.Size(88, 120);
     this.g6.TabIndex  = 8;
     this.g6.TabStop   = false;
     //
     // p6
     //
     this.p6.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p6.Location        = new System.Drawing.Point(8, 88);
     this.p6.Name            = "p6";
     this.p6.Size            = new System.Drawing.Size(64, 24);
     this.p6.TabIndex        = 3;
     this.p6.Text            = "Empty";
     this.p6.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e6
     //
     this.e6.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e6.Location        = new System.Drawing.Point(8, 64);
     this.e6.Name            = "e6";
     this.e6.Size            = new System.Drawing.Size(64, 24);
     this.e6.TabIndex        = 2;
     this.e6.Text            = "Even";
     this.e6.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h6
     //
     this.h6.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h6.Location        = new System.Drawing.Point(8, 40);
     this.h6.Name            = "h6";
     this.h6.Size            = new System.Drawing.Size(64, 24);
     this.h6.TabIndex        = 1;
     this.h6.Text            = "Higher";
     this.h6.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l6
     //
     this.l6.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l6.Location        = new System.Drawing.Point(8, 16);
     this.l6.Name            = "l6";
     this.l6.Size            = new System.Drawing.Size(72, 24);
     this.l6.TabIndex        = 0;
     this.l6.Text            = "Lower";
     this.l6.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g7
     //
     this.g7.Controls.Add(this.p7);
     this.g7.Controls.Add(this.e7);
     this.g7.Controls.Add(this.h7);
     this.g7.Controls.Add(this.l7);
     this.g7.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g7.Location  = new System.Drawing.Point(232, 248);
     this.g7.Name      = "g7";
     this.g7.Size      = new System.Drawing.Size(88, 120);
     this.g7.TabIndex  = 9;
     this.g7.TabStop   = false;
     //
     // p7
     //
     this.p7.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p7.Location        = new System.Drawing.Point(8, 88);
     this.p7.Name            = "p7";
     this.p7.Size            = new System.Drawing.Size(64, 24);
     this.p7.TabIndex        = 3;
     this.p7.Text            = "Empty";
     this.p7.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e7
     //
     this.e7.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e7.Location        = new System.Drawing.Point(8, 64);
     this.e7.Name            = "e7";
     this.e7.Size            = new System.Drawing.Size(64, 24);
     this.e7.TabIndex        = 2;
     this.e7.Text            = "Even";
     this.e7.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h7
     //
     this.h7.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h7.Location        = new System.Drawing.Point(8, 40);
     this.h7.Name            = "h7";
     this.h7.Size            = new System.Drawing.Size(64, 24);
     this.h7.TabIndex        = 1;
     this.h7.Text            = "Higher";
     this.h7.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l7
     //
     this.l7.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l7.Location        = new System.Drawing.Point(8, 16);
     this.l7.Name            = "l7";
     this.l7.Size            = new System.Drawing.Size(72, 24);
     this.l7.TabIndex        = 0;
     this.l7.Text            = "Lower";
     this.l7.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // g8
     //
     this.g8.Controls.Add(this.p8);
     this.g8.Controls.Add(this.e8);
     this.g8.Controls.Add(this.h8);
     this.g8.Controls.Add(this.l8);
     this.g8.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.g8.Location  = new System.Drawing.Point(328, 248);
     this.g8.Name      = "g8";
     this.g8.Size      = new System.Drawing.Size(88, 120);
     this.g8.TabIndex  = 10;
     this.g8.TabStop   = false;
     //
     // p8
     //
     this.p8.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.p8.Location        = new System.Drawing.Point(8, 88);
     this.p8.Name            = "p8";
     this.p8.Size            = new System.Drawing.Size(64, 24);
     this.p8.TabIndex        = 3;
     this.p8.Text            = "Empty";
     this.p8.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // e8
     //
     this.e8.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.e8.Location        = new System.Drawing.Point(8, 64);
     this.e8.Name            = "e8";
     this.e8.Size            = new System.Drawing.Size(64, 24);
     this.e8.TabIndex        = 2;
     this.e8.Text            = "Even";
     this.e8.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // h8
     //
     this.h8.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.h8.Location        = new System.Drawing.Point(8, 40);
     this.h8.Name            = "h8";
     this.h8.Size            = new System.Drawing.Size(64, 24);
     this.h8.TabIndex        = 1;
     this.h8.Text            = "Higher";
     this.h8.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // l8
     //
     this.l8.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.l8.Location        = new System.Drawing.Point(8, 16);
     this.l8.Name            = "l8";
     this.l8.Size            = new System.Drawing.Size(72, 24);
     this.l8.TabIndex        = 0;
     this.l8.Text            = "Lower";
     this.l8.CheckedChanged += new System.EventHandler(this.l1_CheckedChanged);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(424, 16);
     this.button1.Name      = "button1";
     this.button1.TabIndex  = 11;
     this.button1.Text      = "Load";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button2.Location  = new System.Drawing.Point(424, 48);
     this.button2.Name      = "button2";
     this.button2.TabIndex  = 12;
     this.button2.Text      = "Save";
     this.button2.Click    += new System.EventHandler(this.button2_Click);
     //
     // cmbList
     //
     this.cmbList.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbList.Location              = new System.Drawing.Point(8, 16);
     this.cmbList.Name                  = "cmbList";
     this.cmbList.Size                  = new System.Drawing.Size(120, 21);
     this.cmbList.TabIndex              = 13;
     this.cmbList.SelectedIndexChanged += new System.EventHandler(this.cmbList_SelectedIndexChanged);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(512, 378);
     this.Controls.Add(this.cmbList);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.g8);
     this.Controls.Add(this.g7);
     this.Controls.Add(this.g6);
     this.Controls.Add(this.g5);
     this.Controls.Add(this.g4);
     this.Controls.Add(this.g3);
     this.Controls.Add(this.g2);
     this.Controls.Add(this.g1);
     this.Controls.Add(this.art);
     this.Controls.Add(this.lst);
     this.Name = "Form1";
     this.Text = "Tiles Editor";
     this.g1.ResumeLayout(false);
     this.g2.ResumeLayout(false);
     this.g3.ResumeLayout(false);
     this.g4.ResumeLayout(false);
     this.g5.ResumeLayout(false);
     this.g6.ResumeLayout(false);
     this.g7.ResumeLayout(false);
     this.g8.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #42
0
    private void InitializeComponent()
    {
        this.components = new System.ComponentModel.Container();
        this.label1     = new System.Windows.Forms.Label();
        this.label3     = new System.Windows.Forms.Label();
        this.btnOK      = new System.Windows.Forms.Button();
        this.label2     = new System.Windows.Forms.Label();
        this.listColor  = new System.Windows.Forms.ListBox();
        this.btnCancel  = new System.Windows.Forms.Button();
        this.listMake   = new System.Windows.Forms.ListBox();
        this.txtName    = new System.Windows.Forms.TextBox();

        label1.Location    = new System.Drawing.Point(8, 24);
        label1.Text        = "First Name";
        label1.Size        = new System.Drawing.Size(88, 24);
        label1.Font        = new System.Drawing.Font("Microsoft Sans Serif", 10, System.Drawing.FontStyle.Bold);
        label1.TabIndex    = 2;
        label3.Location    = new System.Drawing.Point(8, 104);
        label3.Text        = "Color";
        label3.Size        = new System.Drawing.Size(80, 24);
        label3.Font        = new System.Drawing.Font("Microsoft Sans Serif", 10, System.Drawing.FontStyle.Bold);
        label3.TabIndex    = 4;
        btnOK.Location     = new System.Drawing.Point(24, 144);
        btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
        btnOK.Size         = new System.Drawing.Size(104, 24);
        btnOK.TabIndex     = 0;
        btnOK.Text         = "OK";
        btnOK.Click       += new System.EventHandler(this.btnOK_Click);
        label2.Location    = new System.Drawing.Point(8, 64);
        label2.Text        = "Make";
        label2.Size        = new System.Drawing.Size(88, 24);
        label2.Font        = new System.Drawing.Font("Microsoft Sans Serif", 10, System.Drawing.FontStyle.Bold);
        label2.TabIndex    = 3;
        listColor.Location = new System.Drawing.Point(112, 96);
        listColor.Size     = new System.Drawing.Size(200, 30);
        listColor.TabIndex = 7;
        listColor.Items.AddRange(new object[6] {
            "A", "B", "C", "D", "E", "F"
        });
        btnCancel.Location     = new System.Drawing.Point(184, 144);
        btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        btnCancel.Size         = new System.Drawing.Size(112, 24);
        btnCancel.TabIndex     = 1;
        btnCancel.Text         = "Cancel";
        listMake.Location      = new System.Drawing.Point(112, 48);
        listMake.Size          = new System.Drawing.Size(200, 30);
        listMake.TabIndex      = 6;
        listMake.Items.AddRange(new object[3] {
            "a", "b", "c"
        });
        txtName.Location       = new System.Drawing.Point(112, 16);
        txtName.TabIndex       = 5;
        txtName.Size           = new System.Drawing.Size(200, 20);
        this.Text              = "Add Student Dialog";
        this.MaximizeBox       = false;
        this.StartPosition     = System.Windows.Forms.FormStartPosition.CenterParent;
        this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
        this.FormBorderStyle   = System.Windows.Forms.FormBorderStyle.FixedDialog;
        this.ControlBox        = false;
        this.MinimizeBox       = false;
        this.ClientSize        = new System.Drawing.Size(322, 183);
        this.Controls.Add(this.listColor);
        this.Controls.Add(this.listMake);
        this.Controls.Add(this.txtName);
        this.Controls.Add(this.label3);
        this.Controls.Add(this.label2);
        this.Controls.Add(this.label1);
        this.Controls.Add(this.btnCancel);
        this.Controls.Add(this.btnOK);
    }
Пример #43
0
        }                       // Default size of the scrollbar
        #endregion              // HScrollBar

        #region ListBox
        // Drawing
        public abstract void DrawListBoxItem(ListBox ctrl, DrawItemEventArgs e);
Пример #44
0
 public IntegerCollection(ListBox owner)
 {
     this.owner = owner ?? throw new ArgumentNullException(nameof(owner));
 }
Пример #45
0
 private void InitializeComponent()
 {
     this.templateBox      = new System.Windows.Forms.ComboBox();
     this.stylableElements = new System.Windows.Forms.ListBox();
     this.propertyGrid1    = new PropertyGrid();
     this.label1           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.label3           = new System.Windows.Forms.Label();
     this.splitContainer1  = new SplitContainer();
     this.button1          = new Button();
     this.button2          = new Button();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     this.templateBox.DropDownStyle     = ComboBoxStyle.DropDownList;
     this.templateBox.FormattingEnabled = true;
     this.templateBox.Items.AddRange(new object[1]
     {
         (object)"Select a template"
     });
     this.templateBox.Location                   = new Point(10, 26);
     this.templateBox.Name                       = "templateBox";
     this.templateBox.Size                       = new Size(299, 21);
     this.templateBox.TabIndex                   = 0;
     this.templateBox.SelectedIndexChanged      += new EventHandler(this.templateBox_SelectedIndexChanged);
     this.stylableElements.FormattingEnabled     = true;
     this.stylableElements.Location              = new Point(13, 107);
     this.stylableElements.Name                  = "stylableElements";
     this.stylableElements.Size                  = new Size(296, 173);
     this.stylableElements.TabIndex              = 1;
     this.stylableElements.SelectedIndexChanged += new EventHandler(this.stylableElements_SelectedIndexChanged);
     this.propertyGrid1.Location                 = new Point(20, 26);
     this.propertyGrid1.Name                     = "propertyGrid1";
     this.propertyGrid1.Size                     = new Size(237, 254);
     this.propertyGrid1.TabIndex                 = 2;
     this.label1.AutoSize          = true;
     this.label1.Location          = new Point(10, 10);
     this.label1.Name              = "label1";
     this.label1.Size              = new Size(150, 13);
     this.label1.TabIndex          = 3;
     this.label1.Text              = "Available screen tip templates:";
     this.label2.AutoSize          = true;
     this.label2.Location          = new Point(10, 91);
     this.label2.Name              = "label2";
     this.label2.Size              = new Size(141, 13);
     this.label2.TabIndex          = 4;
     this.label2.Text              = "Screen tip stylable elements:";
     this.label3.AutoSize          = true;
     this.label3.Location          = new Point(7, 10);
     this.label3.Name              = "label3";
     this.label3.Size              = new Size(90, 13);
     this.label3.TabIndex          = 5;
     this.label3.Text              = "Object properties:";
     this.splitContainer1.Dock     = DockStyle.Top;
     this.splitContainer1.Location = new Point(0, 0);
     this.splitContainer1.Name     = "splitContainer1";
     this.splitContainer1.Panel1.Controls.Add((Control)this.stylableElements);
     this.splitContainer1.Panel1.Controls.Add((Control)this.label2);
     this.splitContainer1.Panel1.Controls.Add((Control)this.templateBox);
     this.splitContainer1.Panel1.Controls.Add((Control)this.label1);
     this.splitContainer1.Panel2.Controls.Add((Control)this.propertyGrid1);
     this.splitContainer1.Panel2.Controls.Add((Control)this.label3);
     this.splitContainer1.Size             = new Size(585, 299);
     this.splitContainer1.SplitterDistance = 312;
     this.splitContainer1.TabIndex         = 6;
     this.button1.Location = new Point(417, 306);
     this.button1.Name     = "button1";
     this.button1.Size     = new Size(75, 23);
     this.button1.TabIndex = 7;
     this.button1.Text     = "Ok";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click   += new EventHandler(this.button1_Click);
     this.button2.Location = new Point(498, 306);
     this.button2.Name     = "button2";
     this.button2.Size     = new Size(75, 23);
     this.button2.TabIndex = 8;
     this.button2.Text     = "Cancel";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click      += new EventHandler(this.button2_Click);
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.None;
     this.Controls.Add((Control)this.button2);
     this.Controls.Add((Control)this.button1);
     this.Controls.Add((Control)this.splitContainer1);
     this.Name = nameof(ScreenTipUI);
     this.Size = new Size(585, 340);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.PerformLayout();
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormQuickPasteCat));
     this.butCancel       = new OpenDental.UI.Button();
     this.butOK           = new OpenDental.UI.Button();
     this.textDescription = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.listType        = new System.Windows.Forms.ListBox();
     this.label2          = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(545, 429);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 26);
     this.butCancel.TabIndex     = 0;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // butOK
     //
     this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOK.Autosize     = true;
     this.butOK.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butOK.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butOK.CornerRadius = 4F;
     this.butOK.Location     = new System.Drawing.Point(545, 388);
     this.butOK.Name         = "butOK";
     this.butOK.Size         = new System.Drawing.Size(75, 26);
     this.butOK.TabIndex     = 1;
     this.butOK.Text         = "&OK";
     this.butOK.Click       += new System.EventHandler(this.butOK_Click);
     //
     // textDescription
     //
     this.textDescription.Location = new System.Drawing.Point(125, 28);
     this.textDescription.Name     = "textDescription";
     this.textDescription.Size     = new System.Drawing.Size(357, 20);
     this.textDescription.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(7, 30);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(117, 15);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Description";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // listType
     //
     this.listType.Location      = new System.Drawing.Point(126, 61);
     this.listType.Name          = "listType";
     this.listType.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
     this.listType.Size          = new System.Drawing.Size(120, 394);
     this.listType.TabIndex      = 4;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(7, 63);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(117, 15);
     this.label2.TabIndex  = 5;
     this.label2.Text      = "Default for Types";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // FormQuickPasteCat
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(632, 467);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.listType);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textDescription);
     this.Controls.Add(this.butOK);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormQuickPasteCat";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Edit Quick Paste Category";
     this.Load         += new System.EventHandler(this.FormQuickPasteCat_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #47
0
 public static int[,] удалитьФайлToolStripMenuItem_Click(System.Windows.Forms.ComboBox comboBox, System.Windows.Forms.TextBox textBox, System.Windows.Forms.ListBox listBox, int[,] Intron, System.Windows.Forms.Label Label, System.Windows.Forms.ComboBox comboBox2)
 {
     if (Label.Text == "0") //на открытие)
     {
         if (MessageBox.Show("Удалить текущий документы?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
         {
             for (int i = 0; i < S_nameFile.Count; i++)
             {
                 if (comboBox.Text == S_nameFile[i])
                 {
                     comboBox.Items.Remove(S_nameFile[i]);
                     comboBox2.Items.Remove(S_nameFile[i]);
                     S_Perem1 = S_nameFile[i];
                     S_nameFile.RemoveAt(i);
                     S_textFile.RemoveAt(i);
                     if (i == 0 && S_nameFile.Count != 0)
                     {
                         comboBox.Text  = S_nameFile[i];
                         comboBox2.Text = S_nameFile[i];
                         textBox.Text   = S_textFile[i];
                         Intron         = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Osnova + "/Text documents/" + S_nameFile[i] + ".txt", S_Osnova + "/The table of semantic fragments/" + S_nameFile[i] + ".txt", textBox); // <- Здесь был Ваня
                         Vlad.b1(listBox, S_Osnova + "/The table of semantic fragments/" + S_nameFile[i] + ".txt");                                                                                                                                  //вставка
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                     if (i != 0 && S_nameFile.Count != 0)
                     {
                         comboBox.Text  = S_nameFile[i - 1];
                         comboBox2.Text = S_nameFile[i - 1];
                         textBox.Text   = S_textFile[i - 1];
                         Intron         = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Osnova + "/Text documents/" + S_nameFile[i - 1] + ".txt", S_Osnova + "/The table of semantic fragments/" + S_nameFile[i - 1] + ".txt", textBox); // <- Здесь был Ваня
                         Vlad.b1(listBox, S_Osnova + "/The table of semantic fragments/" + S_nameFile[i - 1] + ".txt");                                                                                                                                      //вставка
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                     if (i == 0 && S_nameFile.Count == 0)
                     {
                         comboBox.Items.Clear();
                         comboBox.Text = "";
                         comboBox2.Items.Clear();
                         comboBox2.Text = "";
                         S_nameFile.Clear();
                         S_textFile.Clear();
                         textBox.Text = "";
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого проекта
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                 }
             }
         }
     }
     else if (Label.Text == "1")
     {
         if (MessageBox.Show("Удалить текущий документы?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
         {
             for (int i = 0; i < S_nameFile.Count; i++)
             {
                 if (comboBox.Text == S_nameFile[i])
                 {
                     comboBox.Items.Remove(S_nameFile[i]);
                     comboBox2.Items.Remove(S_nameFile[i]);
                     S_Perem1 = S_nameFile[i];
                     S_nameFile.RemoveAt(i);
                     S_textFile.RemoveAt(i);
                     if (i == 0 && S_nameFile.Count != 0)
                     {
                         comboBox.Text  = S_nameFile[i];
                         comboBox2.Text = S_nameFile[i];
                         textBox.Text   = S_textFile[i];                                                                                                                                                                                             //
                         Intron         = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_nameFile[i] + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt", textBox); //вставка
                         Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt");                                                                                                                                  //вставка
                         textBox.Text = S_textFile[i];
                         Intron       = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_nameFile[i] + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt", textBox);   // <- Здесь был Ваня
                         Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt");                                                                                                                                  //вставка
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                     if (i != 0 && S_nameFile.Count != 0)
                     {
                         comboBox.Text  = S_nameFile[i - 1];
                         comboBox2.Text = S_nameFile[i - 1];
                         textBox.Text   = S_textFile[i - 1];
                         Intron         = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_nameFile[i - 1] + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i - 1] + ".txt", textBox); // <- Здесь был Ваня
                         Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i - 1] + ".txt");                                                                                                                                      //вставка
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                     if (i == 0 && S_nameFile.Count == 0)
                     {
                         comboBox.Items.Clear();
                         comboBox.Text = "";
                         comboBox2.Items.Clear();
                         comboBox2.Text = "";
                         S_nameFile.Clear();
                         S_textFile.Clear();
                         textBox.Text = "";
                         FileInfo fileInf = new FileInfo(S_STD + "/" + S_Perem1 + ".txt");
                         if (fileInf.Exists)
                         {
                             fileInf.Delete();
                         }
                         if (S_Osnova == S_STD)   //удаление таблици смысловых фрагментов у вновь созданного проекта
                         {
                             FileInfo file = new FileInfo(S_Dobavl + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                         if (S_Osnova != S_STD)    //удаление таблици смысловых фрагментов у существующего открытого проекта
                         {
                             FileInfo file = new FileInfo(S_Osnova + "/" + "The table of semantic fragments" + "/" + S_Perem1 + ".txt");
                             if (file.Exists)
                             {
                                 file.Delete();
                             }
                         }
                     }
                 }
             }
         }
     }
     return(Intron);
 }
Пример #48
0
 public static int[,] ComboBox2_SelectedIndexChanged(System.Windows.Forms.ComboBox comboBox2, System.Windows.Forms.TextBox textBox, System.Windows.Forms.ListBox listBox, int[,] Intron, System.Windows.Forms.Label Label)
 {
     if (Label.Text == "1")
     {
         for (int i = 0; i < S_nameFile.Count; i++)
         {
             if (comboBox2.Text == S_nameFile[i])
             {
                 textBox.Text = S_textFile[i];
                 Intron       = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Dobavl + "/Text documents/" + S_nameFile[i] + ".txt", S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b3(textBox, Intron);
                 Vlad.b1(listBox, S_Dobavl + "/The table of semantic fragments/" + S_nameFile[i] + ".txt");
             }
         }
     }
     else if (Label.Text == "0")
     {
         for (int i = 0; i < S_nameFile.Count; i++)
         {
             if (comboBox2.Text == S_nameFile[i])
             {
                 textBox.Text = S_textFile[i];
                 Intron       = IvanLibrary.GiveMeBlockStructureWithRemainElements.StartWorking(S_Osnova + "/Text documents/" + S_nameFile[i] + ".txt", S_Osnova + "/The table of semantic fragments/" + S_nameFile[i] + ".txt", textBox); // <- Здесь был Ваня
                 Vlad.b3(textBox, Intron);
                 Vlad.b1(listBox, S_Osnova + "/The table of semantic fragments/" + S_nameFile[i] + ".txt");
             }
         }
     }
     return(Intron);
 }
 public SelectedIndexCollection(ListBox owner)
 {
     _owner = owner ?? throw new ArgumentNullException(nameof(owner));
 }
Пример #50
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RegistryMonitorDemoForm));
     this.label1 = new System.Windows.Forms.Label();
     this.comboBoxRegistryHives = new System.Windows.Forms.ComboBox();
     this.label2          = new System.Windows.Forms.Label();
     this.textRegistryKey = new System.Windows.Forms.TextBox();
     this.buttonStart     = new System.Windows.Forms.Button();
     this.buttonStop      = new System.Windows.Forms.Button();
     this.listBox1        = new System.Windows.Forms.ListBox();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(8, 8);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(80, 21);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Registry hive:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // comboBoxRegistryHives
     //
     this.comboBoxRegistryHives.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxRegistryHives.Location      = new System.Drawing.Point(88, 8);
     this.comboBoxRegistryHives.Name          = "comboBoxRegistryHives";
     this.comboBoxRegistryHives.Size          = new System.Drawing.Size(208, 21);
     this.comboBoxRegistryHives.TabIndex      = 1;
     //
     // label2
     //
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label2.Location  = new System.Drawing.Point(8, 40);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(72, 20);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "Registry key:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // textRegistryKey
     //
     this.textRegistryKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.textRegistryKey.Location = new System.Drawing.Point(88, 40);
     this.textRegistryKey.Name     = "textRegistryKey";
     this.textRegistryKey.Size     = new System.Drawing.Size(376, 20);
     this.textRegistryKey.TabIndex = 3;
     this.textRegistryKey.Text     = "";
     //
     // buttonStart
     //
     this.buttonStart.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.buttonStart.Location  = new System.Drawing.Point(8, 80);
     this.buttonStart.Name      = "buttonStart";
     this.buttonStart.TabIndex  = 4;
     this.buttonStart.Text      = "Start";
     this.buttonStart.Click    += new System.EventHandler(this.OnButtonStartClick);
     //
     // buttonStop
     //
     this.buttonStop.Enabled   = false;
     this.buttonStop.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.buttonStop.Location  = new System.Drawing.Point(96, 80);
     this.buttonStop.Name      = "buttonStop";
     this.buttonStop.TabIndex  = 5;
     this.buttonStop.Text      = "Stop";
     this.buttonStop.Click    += new System.EventHandler(this.OnButtonStopClick);
     //
     // listBox1
     //
     this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.listBox1.IntegralHeight = false;
     this.listBox1.Location       = new System.Drawing.Point(8, 112);
     this.listBox1.Name           = "listBox1";
     this.listBox1.Size           = new System.Drawing.Size(456, 147);
     this.listBox1.TabIndex       = 6;
     //
     // RegistryMonitorDemoForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(480, 269);
     this.Controls.Add(this.listBox1);
     this.Controls.Add(this.buttonStop);
     this.Controls.Add(this.buttonStart);
     this.Controls.Add(this.textRegistryKey);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.comboBoxRegistryHives);
     this.Controls.Add(this.label1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "RegistryMonitorDemoForm";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.Text          = "RegistryMonitor Demo";
     this.ResumeLayout(false);
 }
Пример #51
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1  = new System.Windows.Forms.Panel();
     this.panel2  = new System.Windows.Forms.Panel();
     this.panel5  = new System.Windows.Forms.Panel();
     this.button1 = new System.Windows.Forms.Button();
     this.c1      = new System.Windows.Forms.Label();
     this.panel4  = new System.Windows.Forms.Panel();
     this.panel7  = new System.Windows.Forms.Panel();
     this.lb4     = new System.Windows.Forms.ListBox();
     this.lb3     = new System.Windows.Forms.ListBox();
     this.panel6  = new System.Windows.Forms.Panel();
     this.lb2     = new System.Windows.Forms.ListBox();
     this.lb1     = new System.Windows.Forms.ListBox();
     this.panel3  = new System.Windows.Forms.Panel();
     this.label5  = new System.Windows.Forms.Label();
     this.c2      = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel7.SuspendLayout();
     this.panel6.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.panel2);
     this.panel1.Controls.Add(this.panel3);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(780, 400);
     this.panel1.TabIndex = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.panel5);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 36);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(780, 364);
     this.panel2.TabIndex = 14;
     //
     // panel5
     //
     this.panel5.Controls.Add(this.button1);
     this.panel5.Controls.Add(this.panel4);
     this.panel5.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel5.Location = new System.Drawing.Point(0, 0);
     this.panel5.Name     = "panel5";
     this.panel5.Size     = new System.Drawing.Size(780, 364);
     this.panel5.TabIndex = 1;
     //
     // button1
     //
     this.button1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(336, 324);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(108, 36);
     this.button1.TabIndex  = 7;
     this.button1.Text      = "Stop";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // c1
     //
     this.c1.BackColor = System.Drawing.Color.Black;
     this.c1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.c1.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c1.ForeColor = System.Drawing.Color.White;
     this.c1.Location  = new System.Drawing.Point(0, 293);
     this.c1.Name      = "c1";
     this.c1.Size      = new System.Drawing.Size(384, 23);
     this.c1.TabIndex  = 6;
     this.c1.Tag       = "N";
     this.c1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.panel7);
     this.panel4.Controls.Add(this.panel6);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel4.Location = new System.Drawing.Point(0, 0);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(780, 316);
     this.panel4.TabIndex = 0;
     //
     // panel7
     //
     this.panel7.Controls.Add(this.lb4);
     this.panel7.Controls.Add(this.lb3);
     this.panel7.Controls.Add(this.c2);
     this.panel7.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel7.Location = new System.Drawing.Point(384, 0);
     this.panel7.Name     = "panel7";
     this.panel7.Size     = new System.Drawing.Size(396, 316);
     this.panel7.TabIndex = 1;
     //
     // lb4
     //
     this.lb4.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.lb4.ItemHeight = 16;
     this.lb4.Location   = new System.Drawing.Point(136, 0);
     this.lb4.Name       = "lb4";
     this.lb4.Size       = new System.Drawing.Size(260, 292);
     this.lb4.TabIndex   = 6;
     //
     // lb3
     //
     this.lb3.Dock       = System.Windows.Forms.DockStyle.Left;
     this.lb3.ItemHeight = 16;
     this.lb3.Location   = new System.Drawing.Point(0, 0);
     this.lb3.Name       = "lb3";
     this.lb3.Size       = new System.Drawing.Size(136, 292);
     this.lb3.TabIndex   = 4;
     //
     // panel6
     //
     this.panel6.Controls.Add(this.lb2);
     this.panel6.Controls.Add(this.lb1);
     this.panel6.Controls.Add(this.c1);
     this.panel6.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel6.Location = new System.Drawing.Point(0, 0);
     this.panel6.Name     = "panel6";
     this.panel6.Size     = new System.Drawing.Size(384, 316);
     this.panel6.TabIndex = 0;
     //
     // lb2
     //
     this.lb2.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.lb2.ItemHeight = 16;
     this.lb2.Location   = new System.Drawing.Point(136, 0);
     this.lb2.Name       = "lb2";
     this.lb2.Size       = new System.Drawing.Size(248, 292);
     this.lb2.TabIndex   = 5;
     //
     // lb1
     //
     this.lb1.Dock       = System.Windows.Forms.DockStyle.Left;
     this.lb1.ItemHeight = 16;
     this.lb1.Location   = new System.Drawing.Point(0, 0);
     this.lb1.Name       = "lb1";
     this.lb1.Size       = new System.Drawing.Size(136, 292);
     this.lb1.TabIndex   = 3;
     //
     // panel3
     //
     this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.panel3.Controls.Add(this.label5);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(780, 36);
     this.panel3.TabIndex = 13;
     //
     // label5
     //
     this.label5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.label5.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.label5.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
     this.label5.Location  = new System.Drawing.Point(0, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(780, 36);
     this.label5.TabIndex  = 11;
     this.label5.Tag       = "";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // c2
     //
     this.c2.BackColor = System.Drawing.Color.Black;
     this.c2.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.c2.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.c2.ForeColor = System.Drawing.Color.White;
     this.c2.Location  = new System.Drawing.Point(0, 293);
     this.c2.Name      = "c2";
     this.c2.Size      = new System.Drawing.Size(396, 23);
     this.c2.TabIndex  = 7;
     this.c2.Tag       = "N";
     this.c2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // frmTaTransferFromTXT
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 16);
     this.ClientSize        = new System.Drawing.Size(780, 400);
     this.Controls.Add(this.panel1);
     this.Font          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name          = "frmTaTransferFromTXT";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "frmTaTransferFromTXT";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.frmTaTransferFromTXT_Closing);
     this.Load         += new System.EventHandler(this.frmTaTransferFromTXT_Load);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel5.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel7.ResumeLayout(false);
     this.panel6.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #52
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Step5));
     this.labelTitle         = new System.Windows.Forms.Label();
     this.btnDisconnect      = new System.Windows.Forms.Button();
     this.btnConnect         = new System.Windows.Forms.Button();
     this.txtDirectory       = new System.Windows.Forms.TextBox();
     this.txtPassword        = new System.Windows.Forms.TextBox();
     this.txtUserID          = new System.Windows.Forms.TextBox();
     this.txtHost            = new System.Windows.Forms.TextBox();
     this.lblRemoteDirecotry = new System.Windows.Forms.Label();
     this.lblPassword        = new System.Windows.Forms.Label();
     this.lblUserID          = new System.Windows.Forms.Label();
     this.btnTransfer        = new System.Windows.Forms.Button();
     this.lbProgress         = new System.Windows.Forms.ListBox();
     this.lblHost            = new System.Windows.Forms.Label();
     this.labelDescription   = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // labelTitle
     //
     this.labelTitle.BackColor = System.Drawing.Color.Transparent;
     this.labelTitle.Font      = new System.Drawing.Font("Trebuchet MS", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.labelTitle.Location  = new System.Drawing.Point(16, 16);
     this.labelTitle.Name      = "labelTitle";
     this.labelTitle.Size      = new System.Drawing.Size(368, 32);
     this.labelTitle.TabIndex  = 10;
     this.labelTitle.Text      = "Publish Your Website";
     //
     // btnDisconnect
     //
     this.btnDisconnect.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     this.btnDisconnect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnDisconnect.Font      = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnDisconnect.ForeColor = System.Drawing.Color.White;
     this.btnDisconnect.Location  = new System.Drawing.Point(528, 296);
     this.btnDisconnect.Name      = "btnDisconnect";
     this.btnDisconnect.Size      = new System.Drawing.Size(144, 32);
     this.btnDisconnect.TabIndex  = 5;
     this.btnDisconnect.Text      = "&Disconnect";
     this.btnDisconnect.Click    += new System.EventHandler(this.btnDisconnect_Click);
     //
     // btnConnect
     //
     this.btnConnect.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     this.btnConnect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnConnect.Font      = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnConnect.ForeColor = System.Drawing.Color.White;
     this.btnConnect.Location  = new System.Drawing.Point(528, 256);
     this.btnConnect.Name      = "btnConnect";
     this.btnConnect.Size      = new System.Drawing.Size(144, 32);
     this.btnConnect.TabIndex  = 4;
     this.btnConnect.Text      = "&Connect";
     this.btnConnect.Click    += new System.EventHandler(this.btnConnect_Click);
     //
     // txtDirectory
     //
     this.txtDirectory.Location = new System.Drawing.Point(536, 192);
     this.txtDirectory.Name     = "txtDirectory";
     this.txtDirectory.Size     = new System.Drawing.Size(232, 20);
     this.txtDirectory.TabIndex = 3;
     this.txtDirectory.Text     = "(Default)";
     //
     // txtPassword
     //
     this.txtPassword.Location     = new System.Drawing.Point(536, 144);
     this.txtPassword.Name         = "txtPassword";
     this.txtPassword.PasswordChar = '*';
     this.txtPassword.Size         = new System.Drawing.Size(240, 20);
     this.txtPassword.TabIndex     = 2;
     this.txtPassword.Text         = "";
     //
     // txtUserID
     //
     this.txtUserID.Location = new System.Drawing.Point(536, 104);
     this.txtUserID.Name     = "txtUserID";
     this.txtUserID.Size     = new System.Drawing.Size(240, 20);
     this.txtUserID.TabIndex = 1;
     this.txtUserID.Text     = "";
     //
     // txtHost
     //
     this.txtHost.Location = new System.Drawing.Point(536, 64);
     this.txtHost.Name     = "txtHost";
     this.txtHost.Size     = new System.Drawing.Size(240, 20);
     this.txtHost.TabIndex = 0;
     this.txtHost.Text     = "";
     //
     // lblRemoteDirecotry
     //
     this.lblRemoteDirecotry.BackColor = System.Drawing.Color.Transparent;
     this.lblRemoteDirecotry.Font      = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lblRemoteDirecotry.Location  = new System.Drawing.Point(416, 184);
     this.lblRemoteDirecotry.Name      = "lblRemoteDirecotry";
     this.lblRemoteDirecotry.Size      = new System.Drawing.Size(120, 40);
     this.lblRemoteDirecotry.TabIndex  = 47;
     this.lblRemoteDirecotry.Text      = "Remote Directory:";
     //
     // lblPassword
     //
     this.lblPassword.BackColor = System.Drawing.Color.Transparent;
     this.lblPassword.Font      = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lblPassword.Location  = new System.Drawing.Point(416, 144);
     this.lblPassword.Name      = "lblPassword";
     this.lblPassword.Size      = new System.Drawing.Size(120, 23);
     this.lblPassword.TabIndex  = 46;
     this.lblPassword.Text      = "Password:"******"Trebuchet MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lblUserID.Location  = new System.Drawing.Point(416, 104);
     this.lblUserID.Name      = "lblUserID";
     this.lblUserID.Size      = new System.Drawing.Size(120, 23);
     this.lblUserID.TabIndex  = 45;
     this.lblUserID.Text      = "User ID:";
     //
     // btnTransfer
     //
     this.btnTransfer.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
     this.btnTransfer.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnTransfer.Font      = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.btnTransfer.ForeColor = System.Drawing.Color.White;
     this.btnTransfer.Location  = new System.Drawing.Point(528, 368);
     this.btnTransfer.Name      = "btnTransfer";
     this.btnTransfer.Size      = new System.Drawing.Size(144, 48);
     this.btnTransfer.TabIndex  = 6;
     this.btnTransfer.Text      = "&Upload";
     this.btnTransfer.Click    += new System.EventHandler(this.btnTransfer_Click);
     //
     // lbProgress
     //
     this.lbProgress.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(204)), ((System.Byte)(204)));
     this.lbProgress.Location  = new System.Drawing.Point(16, 232);
     this.lbProgress.Name      = "lbProgress";
     this.lbProgress.Size      = new System.Drawing.Size(368, 147);
     this.lbProgress.TabIndex  = 44;
     //
     // lblHost
     //
     this.lblHost.BackColor = System.Drawing.Color.Transparent;
     this.lblHost.Font      = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lblHost.Location  = new System.Drawing.Point(416, 64);
     this.lblHost.Name      = "lblHost";
     this.lblHost.Size      = new System.Drawing.Size(120, 23);
     this.lblHost.TabIndex  = 42;
     this.lblHost.Text      = "Host Name:";
     //
     // labelDescription
     //
     this.labelDescription.BackColor = System.Drawing.Color.Transparent;
     this.labelDescription.Font      = new System.Drawing.Font("Trebuchet MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.labelDescription.Location  = new System.Drawing.Point(16, 64);
     this.labelDescription.Name      = "labelDescription";
     this.labelDescription.Size      = new System.Drawing.Size(368, 152);
     this.labelDescription.TabIndex  = 48;
     this.labelDescription.Text      = "Alright, your website is finished and ready to go online. Simply enter your File " +
                                       "Transfer Protocol (FTP) login information in the boxes to the right and select t" +
                                       "he files you wish to upload. Your FTP information can be found with your web hos" +
                                       "t.";
     //
     // Step5
     //
     this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.Controls.Add(this.labelDescription);
     this.Controls.Add(this.btnDisconnect);
     this.Controls.Add(this.btnConnect);
     this.Controls.Add(this.txtDirectory);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.txtUserID);
     this.Controls.Add(this.txtHost);
     this.Controls.Add(this.lblRemoteDirecotry);
     this.Controls.Add(this.lblPassword);
     this.Controls.Add(this.lblUserID);
     this.Controls.Add(this.btnTransfer);
     this.Controls.Add(this.lbProgress);
     this.Controls.Add(this.lblHost);
     this.Controls.Add(this.labelTitle);
     this.Name  = "Step5";
     this.Size  = new System.Drawing.Size(792, 440);
     this.Load += new System.EventHandler(this.Step5_Load);
     this.ResumeLayout(false);
 }
Пример #53
0
 public static void создатьToolStripMenuItem_Click(System.Windows.Forms.FolderBrowserDialog folderBrowserDialog, System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel, System.Windows.Forms.Label label, int[,] Intron, System.Windows.Forms.ComboBox comboBox1, System.Windows.Forms.ToolStripMenuItem проектToolStripMenuItem, System.Windows.Forms.ComboBox comboBox2, System.Windows.Forms.TextBox textBox, System.Windows.Forms.ListBox listBox)
 {
     label.Text = "1"; //дополнение
     Intron     = new int[0, 2];
     if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
     {
         S_Osnova = folderBrowserDialog.SelectedPath;                                     //запоминаем директорию проекта
         DirectoryInfo dirInfo = new DirectoryInfo(S_Osnova);                             //Создаем папку проекта
         if (!dirInfo.Exists)
         {
             dirInfo.Create();
         }
         Directory.CreateDirectory(S_Osnova + "/" + "The table of semantic fragments"); //Создание папки таблици смысловых фрагментов
         Directory.CreateDirectory(S_Osnova + "/" + "Text documents");                  //Создание папки список текстовых документов
         S_Dobavl = S_Osnova;
         S_Osnova = (folderBrowserDialog.SelectedPath + "/" + "Text documents");
         S_STD    = S_Osnova;
         проектToolStripMenuItem.Enabled = true;
         comboBox1.Items.Clear();
         comboBox1.Text = "";
         comboBox2.Items.Clear();
         comboBox2.Text = "";
         textBox.Text   = "";
         listBox.Items.Clear();
         toolStripStatusLabel.Text = "Проект создан"; //изменение в строке состояний
     }
     else
     {
         проектToolStripMenuItem.Enabled = false;
     }
 }
Пример #54
0
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            var g = e.Graphics;

            #region get colors.
            var backColor   = BackColor;
            var borderColor = BorderColor;
            var arrowColor  = Color.FromArgb(96, 96, 96);
            if (Enabled)
            {
                switch (DropDownStyle)
                {
                case ComboBoxStyle.DropDown:
                    if (Focused || uwfHovered)
                    {
                        backColor   = HoverColor;
                        borderColor = BorderColorHovered;
                    }
                    break;

                case ComboBoxStyle.DropDownList:
                    backColor = Focused || uwfHovered ? HoverColorDropDownList : BackColorDropDownList;
                    break;
                }

                if (Focused || uwfHovered)
                {
                    borderColor = BorderColorHovered;
                }
            }
            else
            {
                backColor   = DisabledColor;
                borderColor = BorderColorDisabled;
            }

            borderPen.Color = borderColor;

            #endregion

            g.uwfFillRectangle(backColor, 0, 0, Width, Height);

            switch (DropDownStyle)
            {
            case ComboBoxStyle.DropDown:

                if (Focused && Enabled)
                {
                    var filterBuffer = g.uwfDrawTextField(filter, Font, ForeColor, 2, 0, Width - DOWN_BUTTON_WIDTH, Height,
                                                          HorizontalAlignment.Left);
                    if (filterBuffer != filter)
                    {
                        if (listBox != null && !listBox.IsDisposed && !listBox.Disposing)
                        {
                            listBox.Dispose();
                            listBox       = null;
                            listBoxOpened = false;
                        }
                        CreateListBox(filterBuffer);
                    }
                    filter = filterBuffer;
                }
                else
                {
                    g.uwfDrawString(Text, Font, ForeColor, 5, 0, Width - DOWN_BUTTON_WIDTH, Height);
                }

                if (uwfHovered)
                {
                    var bRect               = GetButtonRect();
                    var mclient             = PointToClient(MousePosition);
                    var downButtonBackColor = backColor;

                    if (bRect.Contains(mclient))
                    {
                        arrowColor                = Color.Black;
                        downButtonBackColor       = HoverColorDropDownList;
                        downButtonBorderPen.Color = BorderColorHovered;
                    }
                    else
                    {
                        downButtonBorderPen.Color = Color.Transparent;
                    }

                    g.uwfFillRectangle(downButtonBackColor, bRect);
                    g.DrawLine(downButtonBorderPen, bRect.X, bRect.Y, bRect.X, bRect.Y + bRect.Height);
                }
                break;

            case ComboBoxStyle.DropDownList:
                g.uwfDrawString(Text, Font, ForeColor, 5, 0, Width - DOWN_BUTTON_WIDTH, Height);
                break;
            }

            g.uwfDrawImage(uwfAppOwner.Resources.CurvedArrowDown, arrowColor, Width - 16 - 1, Height / 2 - 8, 16, 16);
            g.DrawRectangle(borderPen, 0, 0, Width, Height);
        }
Пример #55
0
 public static void button10_Click(System.Windows.Forms.ComboBox comboBox2, System.Windows.Forms.Button button2, System.Windows.Forms.Button button4, System.Windows.Forms.Button button5, System.Windows.Forms.Button button6, System.Windows.Forms.Button button7, System.Windows.Forms.TextBox textBox, System.Windows.Forms.ListBox listBox, System.Windows.Forms.Button button8, System.Windows.Forms.Button button9, System.Windows.Forms.Button button10, System.Windows.Forms.DataGridView dataGridView1)
 {
     button6.Visible       = true;// окно 2
     button7.Visible       = true;
     button2.Visible       = true;
     comboBox2.Visible     = true;
     textBox.Visible       = true;
     listBox.Visible       = true;
     button4.Visible       = false; // окно 3
     button5.Visible       = false;
     button8.Visible       = false;
     button9.Visible       = false;
     button10.Visible      = false;
     dataGridView1.Visible = false;
 }
Пример #56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.panel1             = new System.Windows.Forms.Panel();
     this.listBox1           = new System.Windows.Forms.ListBox();
     this.panel2             = new System.Windows.Forms.Panel();
     this.groupBox2          = new System.Windows.Forms.GroupBox();
     this.label1             = new System.Windows.Forms.Label();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.htmluiControl1     = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl();
     this.scrollersFrame1    = new Syncfusion.Windows.Forms.ScrollersFrame(this.components);
     this.splitContainerAdv1 = new Syncfusion.Windows.Forms.Tools.SplitContainerAdv();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).BeginInit();
     this.splitContainerAdv1.Panel1.SuspendLayout();
     this.splitContainerAdv1.Panel2.SuspendLayout();
     this.splitContainerAdv1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.White;
     this.panel1.Controls.Add(this.listBox1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Font     = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(208, 481);
     this.panel1.TabIndex = 1;
     //
     // listBox1
     //
     this.listBox1.BackColor           = System.Drawing.Color.White;
     this.listBox1.BorderStyle         = System.Windows.Forms.BorderStyle.FixedSingle;
     this.listBox1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.listBox1.Font                = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.listBox1.HorizontalScrollbar = true;
     this.listBox1.ItemHeight          = 16;
     this.listBox1.Items.AddRange(new object[] {
         "A (Link) ",
         "B (Bold) ",
         "BR (Break line) ",
         "EM (Makes text italic) ",
         "FONT (Inline element for text) ",
         "H1 (Heading 1)",
         "H2 (Heading 2)",
         "H3 (Heading 3)",
         "H4 (Heading 4)",
         "H5 (Heading 5)",
         "H6 (Heading 6)",
         "HR (Horizontal line) ",
         "I (Makes text italic) ",
         "U(Underlines text) ",
         "LINK (Used for attaching CSS document) ",
         "SPAN (Inline element for applying CSS style) ",
         "STRONG (Makes text bold) ",
         "STYLE (Used for attaching CSS inside html document) ",
         "TITLE (You can see it on the top of control) ",
         "INPUT(Windows Forms controls, such a button, textbox, etc...) ",
         "SELECT(ListBox or ComboBox win controls) ",
         "TEXTAREA(Multiline TextBox win control) ",
         "CHECKBOX(CheckBox win control) ",
         "RADIO(RadioBox win control) ",
         "CODE(Inlinetag for representing code sample) ",
         "DIV(Block tag container) ",
         "FORM(Container for win controls) ",
         "BODY(Container of visual document data) ",
         "HEAD(Container for document\'s settings) ",
         "LI(Simple item of the list) ",
         "OL(Ordered list container) ",
         "P(Container of text paragraph) ",
         "PRE(Container of formated text) ",
         "SCRIPT(Container of script code) ",
         "TABLE(Represents table container) ",
         "TR(Container of single row in the table) ",
         "TD(Container of single cell in the table) ",
         "TH(Header of the column in the table) ",
         "UL(Unordered list container) "
     });
     this.listBox1.Location              = new System.Drawing.Point(0, 0);
     this.listBox1.Name                  = "listBox1";
     this.listBox1.Size                  = new System.Drawing.Size(208, 481);
     this.listBox1.TabIndex              = 0;
     this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.White;
     this.panel2.Controls.Add(this.groupBox2);
     this.panel2.Controls.Add(this.groupBox1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(513, 481);
     this.panel2.TabIndex = 2;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Location = new System.Drawing.Point(0, 0);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(513, 206);
     this.groupBox2.TabIndex = 7;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "HTML Tag code:";
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.label1.Font      = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.Black;
     this.label1.Location  = new System.Drawing.Point(10, 22);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(497, 54);
     this.label1.TabIndex  = 5;
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.htmluiControl1);
     this.groupBox1.Location = new System.Drawing.Point(0, 212);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(513, 266);
     this.groupBox1.TabIndex = 6;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "HTML Output:";
     //
     // htmluiControl1
     //
     this.htmluiControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.htmluiControl1.BackColor = System.Drawing.Color.White;
     this.htmluiControl1.DefaultFormat.BackgroundColor = System.Drawing.SystemColors.Control;
     this.htmluiControl1.DefaultFormat.ForeColor       = System.Drawing.SystemColors.ControlText;
     this.htmluiControl1.Font      = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.htmluiControl1.ForeColor = System.Drawing.Color.Black;
     this.htmluiControl1.Location  = new System.Drawing.Point(3, 16);
     this.htmluiControl1.Name      = "htmluiControl1";
     this.htmluiControl1.ShowTitle = false;
     this.htmluiControl1.Size      = new System.Drawing.Size(507, 224);
     this.htmluiControl1.TabIndex  = 4;
     this.htmluiControl1.Text      = resources.GetString("htmluiControl1.Text");
     //
     // scrollersFrame1
     //
     this.scrollersFrame1.AttachedTo            = this.listBox1;
     this.scrollersFrame1.CustomRender          = null;
     this.scrollersFrame1.MetroColorScheme      = Syncfusion.Windows.Forms.MetroColorScheme.Managed;
     this.scrollersFrame1.SizeGripperVisibility = Syncfusion.Windows.Forms.SizeGripperVisibility.Auto;
     this.scrollersFrame1.VisualStyle           = Syncfusion.Windows.Forms.ScrollBarCustomDrawStyles.Metro;
     //
     // splitContainerAdv1
     //
     this.splitContainerAdv1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerAdv1.IsSplitterFixed = true;
     this.splitContainerAdv1.Location        = new System.Drawing.Point(10, 10);
     this.splitContainerAdv1.Name            = "splitContainerAdv1";
     //
     // splitContainerAdv1.Panel1
     //
     this.splitContainerAdv1.Panel1.Controls.Add(this.panel1);
     //
     // splitContainerAdv1.Panel2
     //
     this.splitContainerAdv1.Panel2.Controls.Add(this.panel2);
     this.splitContainerAdv1.Size             = new System.Drawing.Size(728, 481);
     this.splitContainerAdv1.SplitterDistance = 208;
     this.splitContainerAdv1.TabIndex         = 3;
     this.splitContainerAdv1.Text             = "splitContainerAdv1";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BorderColor       = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.CaptionAlign      = System.Windows.Forms.HorizontalAlignment.Center;
     this.ClientSize        = new System.Drawing.Size(748, 501);
     this.Controls.Add(this.splitContainerAdv1);
     this.DropShadow       = true;
     this.Icon             = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.IconAlign        = System.Windows.Forms.HorizontalAlignment.Left;
     this.IconTextRelation = System.Windows.Forms.LeftRightAlignment.Left;
     this.MetroColor       = System.Drawing.Color.White;
     this.MinimumSize      = new System.Drawing.Size(760, 537);
     this.Name             = "Form1";
     this.Padding          = new System.Windows.Forms.Padding(10);
     this.StartPosition    = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text             = "TagsOverview";
     this.Load            += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).EndInit();
     this.splitContainerAdv1.Panel1.ResumeLayout(false);
     this.splitContainerAdv1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerAdv1)).EndInit();
     this.splitContainerAdv1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #57
0
 public static void удалитьВсеДокументыToolStripMenuItem_Click(System.Windows.Forms.ComboBox comboBox, System.Windows.Forms.TextBox textBox, System.Windows.Forms.ListBox listBox, System.Windows.Forms.ComboBox comboBox2)
 {
     if (MessageBox.Show("Удалить все существующие документы?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     {
         comboBox.Items.Clear();
         comboBox.Text = "";
         comboBox2.Items.Clear();
         comboBox2.Text = "";
         S_nameFile.Clear();
         S_textFile.Clear();
         textBox.Text = "";
         listBox.Items.Clear();
         if (S_Osnova == S_STD) //удаление всего из вновь созданного файла
         {
             try
             {
                 DirectoryInfo dirInfo = new DirectoryInfo(S_Dobavl + "/" + "Text documents");
                 dirInfo.Delete(true);
             }
             catch (Exception ex)
             {
                 Console.WriteLine(ex.Message);
             }
             try
             {
                 DirectoryInfo dirInfo = new DirectoryInfo(S_Dobavl + "/" + "The table of semantic fragments");
                 dirInfo.Delete(true);
             }
             catch (Exception ex)
             {
                 Console.WriteLine(ex.Message);
             }
             Directory.CreateDirectory(S_Dobavl + "/" + "The table of semantic fragments"); //Создание папки таблици смысловых фрагментов
             Directory.CreateDirectory(S_Dobavl + "/" + "Text documents");                  //Создание папки список текстовых документов
         }
         if (S_Osnova != S_STD)                                                             //удаление всего из открытого существующего файла
         {
             try
             {
                 DirectoryInfo dirInfo = new DirectoryInfo(S_Osnova + "/" + "Text documents");
                 dirInfo.Delete(true);
             }
             catch (Exception ex)
             {
                 Console.WriteLine(ex.Message);
             }
             try
             {
                 DirectoryInfo dirInfo = new DirectoryInfo(S_Osnova + "/" + "The table of semantic fragments");
                 dirInfo.Delete(true);
             }
             catch (Exception ex)
             {
                 Console.WriteLine(ex.Message);
             }
             Directory.CreateDirectory(S_Dobavl + "/" + "The table of semantic fragments"); //Создание папки таблици смысловых фрагментов
             Directory.CreateDirectory(S_Dobavl + "/" + "Text documents");                  //Создание папки список текстовых документов
         }
     }
 }
Пример #58
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormEmailMessageEdit));
     this.label2                 = new System.Windows.Forms.Label();
     this.textSubject            = new System.Windows.Forms.TextBox();
     this.textToAddress          = new System.Windows.Forms.TextBox();
     this.label1                 = new System.Windows.Forms.Label();
     this.textFromAddress        = new System.Windows.Forms.TextBox();
     this.label3                 = new System.Windows.Forms.Label();
     this.textMsgDateTime        = new System.Windows.Forms.TextBox();
     this.labelSent              = new System.Windows.Forms.Label();
     this.label4                 = new System.Windows.Forms.Label();
     this.listTemplates          = new System.Windows.Forms.ListBox();
     this.panelTemplates         = new System.Windows.Forms.Panel();
     this.butInsert              = new OpenDental.UI.Button();
     this.butDeleteTemplate      = new OpenDental.UI.Button();
     this.butAdd                 = new OpenDental.UI.Button();
     this.listAttachments        = new System.Windows.Forms.ListBox();
     this.contextMenuAttachments = new System.Windows.Forms.ContextMenu();
     this.menuItemOpen           = new System.Windows.Forms.MenuItem();
     this.menuItemRename         = new System.Windows.Forms.MenuItem();
     this.menuItemRemove         = new System.Windows.Forms.MenuItem();
     this.butAttach              = new OpenDental.UI.Button();
     this.butDelete              = new OpenDental.UI.Button();
     this.butSave                = new OpenDental.UI.Button();
     this.textBodyText           = new OpenDental.ODtextBox();
     this.butSend                = new OpenDental.UI.Button();
     this.butCancel              = new OpenDental.UI.Button();
     this.buttonFuchsMailDSF     = new OpenDental.UI.Button();
     this.buttonFuchsMailDMF     = new OpenDental.UI.Button();
     this.panelTemplates.SuspendLayout();
     this.SuspendLayout();
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(210, 65);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(69, 14);
     this.label2.TabIndex  = 3;
     this.label2.Text      = "Subject:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textSubject
     //
     this.textSubject.Location = new System.Drawing.Point(278, 63);
     this.textSubject.Name     = "textSubject";
     this.textSubject.Size     = new System.Drawing.Size(328, 20);
     this.textSubject.TabIndex = 1;
     //
     // textToAddress
     //
     this.textToAddress.Location = new System.Drawing.Point(278, 42);
     this.textToAddress.Name     = "textToAddress";
     this.textToAddress.Size     = new System.Drawing.Size(328, 20);
     this.textToAddress.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(206, 46);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(71, 14);
     this.label1.TabIndex  = 9;
     this.label1.Text      = "To:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textFromAddress
     //
     this.textFromAddress.Location = new System.Drawing.Point(278, 21);
     this.textFromAddress.Name     = "textFromAddress";
     this.textFromAddress.Size     = new System.Drawing.Size(328, 20);
     this.textFromAddress.TabIndex = 10;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(206, 25);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(71, 14);
     this.label3.TabIndex  = 11;
     this.label3.Text      = "From:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textMsgDateTime
     //
     this.textMsgDateTime.BackColor   = System.Drawing.SystemColors.Control;
     this.textMsgDateTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textMsgDateTime.Location    = new System.Drawing.Point(278, 5);
     this.textMsgDateTime.Name        = "textMsgDateTime";
     this.textMsgDateTime.Size        = new System.Drawing.Size(253, 13);
     this.textMsgDateTime.TabIndex    = 12;
     //
     // labelSent
     //
     this.labelSent.Location  = new System.Drawing.Point(207, 4);
     this.labelSent.Name      = "labelSent";
     this.labelSent.Size      = new System.Drawing.Size(71, 14);
     this.labelSent.TabIndex  = 13;
     this.labelSent.Text      = "Date / Time:";
     this.labelSent.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(8, 7);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(124, 14);
     this.label4.TabIndex  = 18;
     this.label4.Text      = "E-mail Template";
     this.label4.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // listTemplates
     //
     this.listTemplates.Location     = new System.Drawing.Point(10, 26);
     this.listTemplates.Name         = "listTemplates";
     this.listTemplates.Size         = new System.Drawing.Size(164, 277);
     this.listTemplates.TabIndex     = 17;
     this.listTemplates.DoubleClick += new System.EventHandler(this.listTemplates_DoubleClick);
     //
     // panelTemplates
     //
     this.panelTemplates.Controls.Add(this.butInsert);
     this.panelTemplates.Controls.Add(this.butDeleteTemplate);
     this.panelTemplates.Controls.Add(this.butAdd);
     this.panelTemplates.Controls.Add(this.label4);
     this.panelTemplates.Controls.Add(this.listTemplates);
     this.panelTemplates.Location = new System.Drawing.Point(8, 9);
     this.panelTemplates.Name     = "panelTemplates";
     this.panelTemplates.Size     = new System.Drawing.Size(180, 370);
     this.panelTemplates.TabIndex = 24;
     //
     // butInsert
     //
     this.butInsert.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butInsert.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.butInsert.Autosize     = true;
     this.butInsert.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butInsert.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butInsert.CornerRadius = 4F;
     this.butInsert.Image        = global::OpenDental.Properties.Resources.Right;
     this.butInsert.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butInsert.Location     = new System.Drawing.Point(102, 305);
     this.butInsert.Name         = "butInsert";
     this.butInsert.Size         = new System.Drawing.Size(74, 26);
     this.butInsert.TabIndex     = 23;
     this.butInsert.Text         = "Insert";
     this.butInsert.Click       += new System.EventHandler(this.butInsert_Click);
     //
     // butDeleteTemplate
     //
     this.butDeleteTemplate.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDeleteTemplate.Autosize            = true;
     this.butDeleteTemplate.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDeleteTemplate.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDeleteTemplate.CornerRadius        = 4F;
     this.butDeleteTemplate.Image      = global::OpenDental.Properties.Resources.deleteX;
     this.butDeleteTemplate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDeleteTemplate.Location   = new System.Drawing.Point(7, 339);
     this.butDeleteTemplate.Name       = "butDeleteTemplate";
     this.butDeleteTemplate.Size       = new System.Drawing.Size(75, 26);
     this.butDeleteTemplate.TabIndex   = 21;
     this.butDeleteTemplate.Text       = "Delete";
     this.butDeleteTemplate.Click     += new System.EventHandler(this.butDeleteTemplate_Click);
     //
     // butAdd
     //
     this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAdd.Autosize            = true;
     this.butAdd.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAdd.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAdd.CornerRadius        = 4F;
     this.butAdd.Image      = global::OpenDental.Properties.Resources.Add;
     this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butAdd.Location   = new System.Drawing.Point(7, 305);
     this.butAdd.Name       = "butAdd";
     this.butAdd.Size       = new System.Drawing.Size(75, 26);
     this.butAdd.TabIndex   = 19;
     this.butAdd.Text       = "&Add";
     this.butAdd.Click     += new System.EventHandler(this.butAdd_Click);
     //
     // listAttachments
     //
     this.listAttachments.Location     = new System.Drawing.Point(612, 27);
     this.listAttachments.Name         = "listAttachments";
     this.listAttachments.Size         = new System.Drawing.Size(315, 56);
     this.listAttachments.TabIndex     = 28;
     this.listAttachments.DoubleClick += new System.EventHandler(this.listAttachments_DoubleClick);
     this.listAttachments.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.listAttachments_MouseDown);
     //
     // contextMenuAttachments
     //
     this.contextMenuAttachments.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemOpen,
         this.menuItemRename,
         this.menuItemRemove
     });
     this.contextMenuAttachments.Popup += new System.EventHandler(this.contextMenuAttachments_Popup);
     //
     // menuItemOpen
     //
     this.menuItemOpen.Index  = 0;
     this.menuItemOpen.Text   = "Open";
     this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click);
     //
     // menuItemRename
     //
     this.menuItemRename.Index  = 1;
     this.menuItemRename.Text   = "Rename";
     this.menuItemRename.Click += new System.EventHandler(this.menuItemRename_Click);
     //
     // menuItemRemove
     //
     this.menuItemRemove.Index  = 2;
     this.menuItemRemove.Text   = "Remove";
     this.menuItemRemove.Click += new System.EventHandler(this.menuItemRemove_Click);
     //
     // butAttach
     //
     this.butAttach.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butAttach.Autosize            = true;
     this.butAttach.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butAttach.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butAttach.CornerRadius        = 4F;
     this.butAttach.Location            = new System.Drawing.Point(612, 2);
     this.butAttach.Name     = "butAttach";
     this.butAttach.Size     = new System.Drawing.Size(75, 22);
     this.butAttach.TabIndex = 27;
     this.butAttach.Text     = "Attach...";
     this.butAttach.Click   += new System.EventHandler(this.butAttach_Click);
     //
     // butDelete
     //
     this.butDelete.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butDelete.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butDelete.Autosize     = true;
     this.butDelete.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butDelete.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butDelete.CornerRadius = 4F;
     this.butDelete.Image        = global::OpenDental.Properties.Resources.deleteX;
     this.butDelete.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butDelete.Location     = new System.Drawing.Point(8, 635);
     this.butDelete.Name         = "butDelete";
     this.butDelete.Size         = new System.Drawing.Size(75, 26);
     this.butDelete.TabIndex     = 26;
     this.butDelete.Text         = "Delete";
     this.butDelete.Click       += new System.EventHandler(this.butDelete_Click);
     //
     // butSave
     //
     this.butSave.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butSave.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.butSave.Autosize     = true;
     this.butSave.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butSave.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butSave.CornerRadius = 4F;
     this.butSave.Location     = new System.Drawing.Point(278, 635);
     this.butSave.Name         = "butSave";
     this.butSave.Size         = new System.Drawing.Size(75, 25);
     this.butSave.TabIndex     = 25;
     this.butSave.Text         = "Save";
     this.butSave.Click       += new System.EventHandler(this.butSave_Click);
     //
     // textBodyText
     //
     this.textBodyText.AcceptsReturn  = true;
     this.textBodyText.Location       = new System.Drawing.Point(278, 84);
     this.textBodyText.Multiline      = true;
     this.textBodyText.Name           = "textBodyText";
     this.textBodyText.QuickPasteType = OpenDentBusiness.QuickPasteType.Email;
     this.textBodyText.ScrollBars     = System.Windows.Forms.ScrollBars.Vertical;
     this.textBodyText.Size           = new System.Drawing.Size(649, 537);
     this.textBodyText.TabIndex       = 0;
     this.textBodyText.TextChanged   += new System.EventHandler(this.textBodyText_TextChanged);
     //
     // butSend
     //
     this.butSend.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butSend.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butSend.Autosize     = true;
     this.butSend.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butSend.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butSend.CornerRadius = 4F;
     this.butSend.Location     = new System.Drawing.Point(771, 635);
     this.butSend.Name         = "butSend";
     this.butSend.Size         = new System.Drawing.Size(75, 25);
     this.butSend.TabIndex     = 2;
     this.butSend.Text         = "&Send";
     this.butSend.Click       += new System.EventHandler(this.butSend_Click);
     //
     // butCancel
     //
     this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.Autosize     = true;
     this.butCancel.BtnShape     = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butCancel.BtnStyle     = OpenDental.UI.enumType.XPStyle.Silver;
     this.butCancel.CornerRadius = 4F;
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Location     = new System.Drawing.Point(852, 635);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(75, 25);
     this.butCancel.TabIndex     = 3;
     this.butCancel.Text         = "&Cancel";
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // buttonFuchsMailDSF
     //
     this.buttonFuchsMailDSF.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.buttonFuchsMailDSF.Autosize            = true;
     this.buttonFuchsMailDSF.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.buttonFuchsMailDSF.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.buttonFuchsMailDSF.CornerRadius        = 4F;
     this.buttonFuchsMailDSF.Location            = new System.Drawing.Point(197, 103);
     this.buttonFuchsMailDSF.Name     = "buttonFuchsMailDSF";
     this.buttonFuchsMailDSF.Size     = new System.Drawing.Size(75, 22);
     this.buttonFuchsMailDSF.TabIndex = 29;
     this.buttonFuchsMailDSF.Text     = "To DSF";
     this.buttonFuchsMailDSF.Visible  = false;
     this.buttonFuchsMailDSF.Click   += new System.EventHandler(this.buttonFuchsMailDSF_Click);
     //
     // buttonFuchsMailDMF
     //
     this.buttonFuchsMailDMF.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.buttonFuchsMailDMF.Autosize            = true;
     this.buttonFuchsMailDMF.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.buttonFuchsMailDMF.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.buttonFuchsMailDMF.CornerRadius        = 4F;
     this.buttonFuchsMailDMF.Location            = new System.Drawing.Point(197, 131);
     this.buttonFuchsMailDMF.Name     = "buttonFuchsMailDMF";
     this.buttonFuchsMailDMF.Size     = new System.Drawing.Size(75, 22);
     this.buttonFuchsMailDMF.TabIndex = 30;
     this.buttonFuchsMailDMF.Text     = "To DMF";
     this.buttonFuchsMailDMF.Visible  = false;
     this.buttonFuchsMailDMF.Click   += new System.EventHandler(this.buttonFuchsMailDMF_Click);
     //
     // FormEmailMessageEdit
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(941, 672);
     this.Controls.Add(this.buttonFuchsMailDMF);
     this.Controls.Add(this.buttonFuchsMailDSF);
     this.Controls.Add(this.listAttachments);
     this.Controls.Add(this.butAttach);
     this.Controls.Add(this.butDelete);
     this.Controls.Add(this.butSave);
     this.Controls.Add(this.panelTemplates);
     this.Controls.Add(this.textBodyText);
     this.Controls.Add(this.textMsgDateTime);
     this.Controls.Add(this.textFromAddress);
     this.Controls.Add(this.textToAddress);
     this.Controls.Add(this.textSubject);
     this.Controls.Add(this.labelSent);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.butSend);
     this.Controls.Add(this.butCancel);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "FormEmailMessageEdit";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Edit E-mail Message";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.FormEmailMessageEdit_Closing);
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormEmailMessageEdit_FormClosing);
     this.Load         += new System.EventHandler(this.FormEmailMessageEdit_Load);
     this.panelTemplates.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.SendBtn  = new System.Windows.Forms.Button();
     this.label1   = new System.Windows.Forms.Label();
     this.label2   = new System.Windows.Forms.Label();
     this.label3   = new System.Windows.Forms.Label();
     this.label4   = new System.Windows.Forms.Label();
     this.label5   = new System.Windows.Forms.Label();
     this.ServSMTP = new System.Windows.Forms.TextBox();
     this.sFrom    = new System.Windows.Forms.TextBox();
     this.sTo      = new System.Windows.Forms.TextBox();
     this.sSubject = new System.Windows.Forms.TextBox();
     this.sMessage = new System.Windows.Forms.TextBox();
     this.LogList  = new System.Windows.Forms.ListBox();
     this.label6   = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // SendBtn
     //
     this.SendBtn.Location = new System.Drawing.Point(216, 280);
     this.SendBtn.Name     = "SendBtn";
     this.SendBtn.Size     = new System.Drawing.Size(75, 23);
     this.SendBtn.TabIndex = 0;
     this.SendBtn.Text     = "Send";
     this.SendBtn.Click   += new System.EventHandler(this.SendBtn_Click);
     //
     // label1
     //
     this.label1.Location    = new System.Drawing.Point(-8, 24);
     this.label1.Name        = "label1";
     this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label1.Size        = new System.Drawing.Size(80, 16);
     this.label1.TabIndex    = 1;
     this.label1.Text        = "SMTP Server";
     //
     // label2
     //
     this.label2.Location    = new System.Drawing.Point(32, 48);
     this.label2.Name        = "label2";
     this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label2.Size        = new System.Drawing.Size(40, 16);
     this.label2.TabIndex    = 1;
     this.label2.Text        = "From";
     //
     // label3
     //
     this.label3.Location    = new System.Drawing.Point(48, 72);
     this.label3.Name        = "label3";
     this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label3.Size        = new System.Drawing.Size(24, 16);
     this.label3.TabIndex    = 1;
     this.label3.Text        = "To";
     //
     // label4
     //
     this.label4.Location    = new System.Drawing.Point(16, 96);
     this.label4.Name        = "label4";
     this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.label4.Size        = new System.Drawing.Size(56, 16);
     this.label4.TabIndex    = 1;
     this.label4.Text        = "Subject";
     //
     // label5
     //
     this.label5.Location    = new System.Drawing.Point(8, 120);
     this.label5.Name        = "label5";
     this.label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.label5.Size        = new System.Drawing.Size(72, 16);
     this.label5.TabIndex    = 1;
     this.label5.Text        = "Message";
     //
     // ServSMTP
     //
     this.ServSMTP.Location = new System.Drawing.Point(80, 24);
     this.ServSMTP.Name     = "ServSMTP";
     this.ServSMTP.Size     = new System.Drawing.Size(208, 20);
     this.ServSMTP.TabIndex = 2;
     this.ServSMTP.Text     = "smtp.gmail.com";
     //
     // sFrom
     //
     this.sFrom.Location = new System.Drawing.Point(80, 48);
     this.sFrom.Name     = "sFrom";
     this.sFrom.Size     = new System.Drawing.Size(208, 20);
     this.sFrom.TabIndex = 3;
     this.sFrom.Text     = "*****@*****.**";
     //
     // sTo
     //
     this.sTo.Location = new System.Drawing.Point(80, 72);
     this.sTo.Name     = "sTo";
     this.sTo.Size     = new System.Drawing.Size(208, 20);
     this.sTo.TabIndex = 4;
     this.sTo.Text     = "*****@*****.**";
     //
     // sSubject
     //
     this.sSubject.Location = new System.Drawing.Point(80, 96);
     this.sSubject.Name     = "sSubject";
     this.sSubject.Size     = new System.Drawing.Size(208, 20);
     this.sSubject.TabIndex = 5;
     this.sSubject.Text     = "Loging";
     //
     // sMessage
     //
     this.sMessage.Location  = new System.Drawing.Point(8, 136);
     this.sMessage.Multiline = true;
     this.sMessage.Name      = "sMessage";
     this.sMessage.Size      = new System.Drawing.Size(501, 136);
     this.sMessage.TabIndex  = 6;
     this.sMessage.Text      = "your message";
     //
     // LogList
     //
     this.LogList.Dock                = System.Windows.Forms.DockStyle.Bottom;
     this.LogList.Location            = new System.Drawing.Point(0, 328);
     this.LogList.Name                = "LogList";
     this.LogList.ScrollAlwaysVisible = true;
     this.LogList.Size                = new System.Drawing.Size(521, 121);
     this.LogList.TabIndex            = 7;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(8, 296);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 16);
     this.label6.TabIndex = 8;
     this.label6.Text     = "Log Report";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(521, 449);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.LogList);
     this.Controls.Add(this.sMessage);
     this.Controls.Add(this.sSubject);
     this.Controls.Add(this.sTo);
     this.Controls.Add(this.sFrom);
     this.Controls.Add(this.ServSMTP);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.SendBtn);
     this.Name = "Form1";
     this.Text = "Send Mail via SMTP";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        public static void addRemoveFields(ListBox listBoxToRemove, ListBox listBoxToAdd)
        {
            if (listBoxToRemove == null || listBoxToAdd == null)
            return;

             if (listBoxToRemove.SelectedItems.Count < 1)
             {
            return;
             }
             else
             {
            List<string> selTexts = new List<string>();
            listBoxToAdd.ClearSelected();
            foreach (object obj in listBoxToRemove.SelectedItems)
            {
               int nIndex = listBoxToAdd.Items.Add(obj);
               listBoxToAdd.SetSelected(nIndex, true);
               selTexts.Add(obj.ToString());
            }

            foreach (string selText in selTexts)
            {
               listBoxToRemove.Items.Remove(selText);
            }

            listBoxToRemove.ClearSelected();
             }
        }