public ClipBoardDgv()
        {
            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
            ContextMenuStrip contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components);
            ToolStripMenuItem copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            ToolStripMenuItem pasteCtrlVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            copyToolStripMenuItem,
            pasteCtrlVToolStripMenuItem});
            contextMenuStrip1.Name = "contextMenuStrip1";
            contextMenuStrip1.Size = new System.Drawing.Size(145, 48);

            copyToolStripMenuItem.Name = "copyToolStripMenuItem";
            copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
            copyToolStripMenuItem.Size = new System.Drawing.Size(144, 22);
            copyToolStripMenuItem.Text = "&Copy";
            copyToolStripMenuItem.Click += new System.EventHandler(CopyToolStripMenuItem_Click);

            pasteCtrlVToolStripMenuItem.Name = "pasteCtrlVToolStripMenuItem";
            pasteCtrlVToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
            pasteCtrlVToolStripMenuItem.Size = new System.Drawing.Size(144, 22);
            pasteCtrlVToolStripMenuItem.Text = "Paste";
            pasteCtrlVToolStripMenuItem.Click += new System.EventHandler(PasteCtrlVToolStripMenuItem_Click);
            
            ContextMenuStrip = contextMenuStrip1;
        }
Esempio n. 2
0
        public frmLogin()
        {
            InitializeComponent();
            this.btnExit.Image = FWImageDic.EXIT_IMAGE16;
            this.btnConfig.Image = FWImageDic.CONFIG_IMAGE16;
            this.btnLogin.Image = FWImageDic.LOGIN_IMAGE16;
            this.Icon = FrameworkParams.ApplicationIcon;
            components = new System.ComponentModel.Container();
            user = new User();
            user.loadCookies();
            txtUsername.EditValue = user.username;
            txtPassword.EditValue = user.password;
            if (user.savePass == "Y") chkRememberPwd.Checked = true;
            if (user.isAutoLogin == "Y") chkAutoLogin.Checked = true;
            if (chkAutoLogin.Checked) FrameworkParams.isSkipLogin = true;
            // init skin
            FrameworkParams.currentSkin = new PLSkin(this.components);
            FrameworkParams.option = new Option();
            FrameworkParams.option.load();

            Application.CurrentCulture = ApplyFormatAction.GetCultureInfo();

            FrameworkParams.currentSkin.SelectSkin(HelpNumber.ParseInt32(FrameworkParams.option.Skin));
            this.Shown += new EventHandler(frmLogin_Shown);
        }
        public ActionResult TurnOn()
        {
            var components = new System.ComponentModel.Container();
            var arduinoPort = new System.IO.Ports.SerialPort(components) {PortName = "COM7"};
            arduinoPort.Open();
            string on = "H";
            arduinoPort.WriteLine(on);
            arduinoPort.Close();

            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }
        // constructor
        public TerrainForm()
        {
            this.components = new System.ComponentModel.Container();
            this.Size = new System.Drawing.Size(SCREEN_SIZE, SCREEN_SIZE);
            this.Text = "Terrain Viewer";
            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
            this.Icon = TerrainGenerator.Properties.Resources.Ico;
            this.CenterToScreen();

            terrainSettings = new TerrainSettings();
            heightMap = new HeightMap();
        }
Esempio n. 5
0
 public GraphControl()
 {
     // This is mostly just for the right-click menu now... We probably
     // no longer need to derive from HyperGraph.GraphControl -- instead, just turn this
     // into a helper class.
     // But, then again, maybe even HyperGraph.GraphControl could be split into several
     // small pieces using the ATF AdaptableControl type stuff...?
     _components = new System.ComponentModel.Container();
     _nodeMenu = CreateNodeMenu();
     _emptySpaceMenu = CreateEmptySpaceMenu();
     ConnectorDoubleClick += OnConnectorDoubleClick;
     ShowElementMenu += OnShowElementMenu;
 }
 public SystemTrayApplicationContext()
 {
     components = new System.ComponentModel.Container();
       notifyIcon = new NotifyIcon(components)
       {
     ContextMenuStrip = new ContextMenuStrip(),
     Text = Application.ProductName,
     Visible = true
       };
       notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
       notifyIcon.DoubleClick += notifyIcon_DoubleClick;
       //notifyIcon.Click += notifyIcon_Click;
       notifyIcon.MouseUp += notifyIcon_MouseUp;
 }
        private void InitializeContext()
        {
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)

            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon = new Icon("../../" + IconFileName),
                Text = DefaultTooltip,
                Visible = true
            };
            notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
               //notifyIcon.DoubleClick += notifyIcon_DoubleClick;
        }
Esempio n. 8
0
        private void InitializeContext()
        {
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)
             {
                 ContextMenuStrip = new ContextMenuStrip(),
                 Icon = Properties.Resources.bike,
                 Text = DefaultTooltip,
                 Visible = true

             };
            notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
            notifyIcon.DoubleClick += showCycliAgentForm_DblClick;
              // Start the data sender
            CycliInterface.Instance().Initialise();
        }
			//NOTE: The following procedure is required by the Windows Form Designer
			//It can be modified using the Windows Form Designer.
			//Do not modify it using the code editor.
			[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
			{
				this.components = new System.ComponentModel.Container();
				this.ErrorNotify = new System.Windows.Forms.ErrorProvider(this.components);
				this.DockingContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
				this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
				this.mnuClose = new System.Windows.Forms.ToolStripMenuItem();
				this.mnuClose.Click += new System.EventHandler(mnuClose_Click);
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).BeginInit();
				this.DockingContextMenu.SuspendLayout();
				this.SuspendLayout();
				//
				//ErrorNotify
				//
				this.ErrorNotify.ContainerControl = this;
				//
				//DockingContextMenu
				//
				this.DockingContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.ToolStripMenuItem1, this.mnuClose});
				this.DockingContextMenu.Name = "DockingContextMenu";
				this.DockingContextMenu.Size = new System.Drawing.Size(151, 32);
				//
				//ToolStripMenuItem1
				//
				this.ToolStripMenuItem1.Name = "ToolStripMenuItem1";
				this.ToolStripMenuItem1.Size = new System.Drawing.Size(147, 6);
				//
				//mnuClose
				//
				this.mnuClose.Name = "mnuClose";
				this.mnuClose.Size = new System.Drawing.Size(150, 22);
				this.mnuClose.Text = "&Close Window";
				//
				//DockableForm
				//
				this.AutoScaleDimensions = new System.Drawing.SizeF(6.0, 13.0);
				this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
				this.ClientSize = new System.Drawing.Size(335, 278);
				this.KeyPreview = true;
				this.Name = "DockableForm";
				this.TabPageContextMenuStrip = this.DockingContextMenu;
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).EndInit();
				this.DockingContextMenu.ResumeLayout(false);
				this.ResumeLayout(false);
				
			}
Esempio n. 10
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Program));
     this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.btnStop = new System.Windows.Forms.ToolStripMenuItem();
     //this.btnStartAutomatically = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
     Stream imgStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WallpaperChange.favicon.ico");
     Icon ico = new Icon(imgStream);
     this.notifyIcon1.Icon = ico;//((System.Drawing.Icon)(resources.GetObject("favicon.ico")));
     this.notifyIcon1.Tag = "WallpaperChanger";
     this.notifyIcon1.Text = "WallpaperChanger";
     this.notifyIcon1.Visible = true;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnStop });
     //this.btnStartAutomatically,
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(176, 76);
     //
     // toolStripMenuItem1
     //
     this.btnStop.Name = "btnStop";
     this.btnStop.Size = new System.Drawing.Size(175, 22);
     this.btnStop.Text = "Stop";
     this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
     //
     // btnStartAutomatically
     //
     //this.btnStartAutomatically.CheckOnClick = true;
     //this.btnStartAutomatically.Name = "btnStartAutomatically";
     //this.btnStartAutomatically.Size = new System.Drawing.Size(175, 22);
     //this.btnStartAutomatically.Text = "Start Automatically";
     //this.btnStartAutomatically.Click += new System.EventHandler(this.btnStartAutomatically_Click);
     //
     // Changer
     //
     this.contextMenuStrip1.ResumeLayout(false);
 }
        public String GetTurnLed(Boolean OnOrOff)
        {
            var components = new System.ComponentModel.Container();
            var arduinoPort = new System.IO.Ports.SerialPort(components) { PortName = "COM7" };
            arduinoPort.Open();
            string on;
            if (OnOrOff == true)
            {
                on = "H";
            }
            else
            {
                on = "L";
            }
            arduinoPort.WriteLine(on);
            arduinoPort.Close();

            return message;
        }
Esempio n. 12
0
        public static bool _Add_System_ComponentModel_Container_System_ComponentModel_IComponent_System_String( )
        {
            //class object
            System.ComponentModel.Container _System_ComponentModel_Container = new System.ComponentModel.Container();

            //Parameters
            System.ComponentModel.IComponent component = null;
            System.String name = null;


            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                _System_ComponentModel_Container.Add(component, name);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                _System_ComponentModel_Container.Add(component, name);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Message == exception_Intercepted.Message));
        }
Esempio n. 13
0
        private void InitializeContextMenu()
        {
            try
            {
                System.ComponentModel.Container components = new System.ComponentModel.Container();

                notifyIcon = new NotifyIcon(components)
                {
                    ContextMenuStrip = new ContextMenuStrip(),
                    Icon             = Properties.Resources.TrayIcon, //, new System.Drawing.Icon(IconFileName),
                    Text             = "Minimalistic - Hue",
                    Visible          = true
                };


                ToolStripMenuItem_ActivateDeactivateMainWindow        = new ToolStripMenuItem("&Hide Settings", null, null, "ActivateMainWindow");
                ToolStripMenuItem_ActivateDeactivateMainWindow.Click += ToolStripMenuItem_ActivateMainWindow_Click;
                notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItem_ActivateDeactivateMainWindow);

                notifyIcon.ContextMenuStrip.Items.Add("-");

                ToolStripMenuItem ToolStripMenuItem_Help = new ToolStripMenuItem("&Help", null, null, "Help");
                ToolStripMenuItem_Help.Enabled = false;
                ToolStripMenuItem_Help.Click  += ToolStripMenuItem_Help_Click;
                notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItem_Help);

                ToolStripMenuItem ToolStripMenuItem_About = new ToolStripMenuItem("&About", null, null, "About");
                ToolStripMenuItem_About.Enabled = false;
                ToolStripMenuItem_About.Click  += ToolStripMenuItem_About_Click;
                notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItem_About);

                notifyIcon.ContextMenuStrip.Items.Add(new ToolStripSeparator());

                ToolStripMenuItem ToolStripMenuItem_Exit = new ToolStripMenuItem("&Exit", null, null, "Exit");
                ToolStripMenuItem_Exit.Click += ToolStripMenuItem_Exit_Click;
                notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItem_Exit);
            }
            catch (Exception error)
            {
                //PublicClass.ErrorLog(error);
            }
        }
        /// <summary>
        /// Initializes the context.
        /// </summary>
        private void InitializeContext()
        {
            string DefaultTooltip = "Pandora Tray";

            _Components = new System.ComponentModel.Container();
            _NotifyIcon = new NotifyIcon(_Components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon             = Properties.Resources.Metro_Keyboard_Blue,
                BalloonTipIcon   = ToolTipIcon.Info,
                BalloonTipText   = "Control PandoraOne with the media keys on your keyboard!",
                BalloonTipTitle  = DefaultTooltip,
                Text             = DefaultTooltip,

                Visible = true
            };

            _NotifyIcon.DoubleClick += new EventHandler(notifyIcon_DoubleClick);
            _NotifyIcon.ShowBalloonTip(1000);
        }
        /// <summary>
        /// Initializes the context.
        /// </summary>
        private void InitializeContext()
        {
            string DefaultTooltip = "Pandora Tray";

            _Components = new System.ComponentModel.Container();
            _NotifyIcon = new NotifyIcon(_Components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon = Properties.Resources.Metro_Keyboard_Blue,
                BalloonTipIcon = ToolTipIcon.Info,
                BalloonTipText = "Control PandoraOne with the media keys on your keyboard!",
                BalloonTipTitle = DefaultTooltip,
                Text = DefaultTooltip,
                
                Visible = true
            };

            _NotifyIcon.DoubleClick += new EventHandler(notifyIcon_DoubleClick);
            _NotifyIcon.ShowBalloonTip(1000);
        }
 public ComboBoxAutocompleteSuggestion()
 {
     m_bInitItems          = true;
     m_bInitSuggestionList = true;
     m_bInitDisplay        = true;
     m_Cols               = new CCBColumnCollection();
     m_slSuggestions      = new StringList();
     ListSuggestions      = new List <ListItemSuggestions>();
     m_kcLastKey          = Keys.Space;
     Suggest              = true;
     m_iSelectedIndex     = -1;
     DropDownOnSuggestion = true;
     if (components == null)
     {
         components = null;
     }
     DataSourceSettig = new DataTable(); //Make sure the DataTable is not blank
     DataInter        = new DataTable();
     Init();
 }
Esempio n. 17
0
        public ArduinoPressureSensor()
        {
            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
            serialPort1          = new System.IO.Ports.SerialPort(components);
            serialPort1.PortName = "COM3";
            serialPort1.BaudRate = 9600;

            serialPort1.Open();
            if (!serialPort1.IsOpen)
            {
                Console.WriteLine("Arudino Serial Failed to Open");
                return;
            }

            // this turns on !
            serialPort1.DtrEnable = true;

            // callback for text coming back from the arduino
            serialPort1.DataReceived += OnReceived;
        }
Esempio n. 18
0
        public ArduinoPressureSensor()
        {
            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
            serialPort1 = new System.IO.Ports.SerialPort(components);
            serialPort1.PortName = "COM3";
            serialPort1.BaudRate = 9600;

            serialPort1.Open();
            if (!serialPort1.IsOpen)
            {
                Console.WriteLine("Arudino Serial Failed to Open");
                return;
            }

            // this turns on !
            serialPort1.DtrEnable = true;

            // callback for text coming back from the arduino
            serialPort1.DataReceived += OnReceived;
        }
Esempio n. 19
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.Size       = new System.Drawing.Size(650, 550);
            this.Text       = "Dijkstra's algorithm v. 1.0";

            this.BackColor  = Color.White;
            this.Resize    += new EventHandler(MainForm_Resize);
            this.Paint     += new System.Windows.Forms.PaintEventHandler(MainForm_Paint);
            this.MouseDown += new System.Windows.Forms.MouseEventHandler(MainForm_MouseDown);
            this.MouseUp   += new System.Windows.Forms.MouseEventHandler(MainForm_MouseUp);
            this.KeyPress  += new KeyPressEventHandler(MainForm_KeyPress);
            this.KeyDown   += new KeyEventHandler(MainForm_KeyDown);
            this.KeyUp     += new KeyEventHandler(MainForm_KeyUp);
            this.KeyPreview = true;

            EnableDoubleBuffering(GlobalVisual.DoubleBuffered);

            ShowHelp();
        }
Esempio n. 20
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon             = Properties.Resources.TrayIcon64x64,
                Text             = _DefaultTooltip,
                Visible          = true
            };

            _uiThreadContext = new WindowsFormsSynchronizationContext();
            notifyIcon.ContextMenuStrip.Opening += ContextMenuStrip_Opening;
            notifyIcon.Click += NotifyIcon_Click;
            // notifyIcon.DoubleClick += notifyIcon_DoubleClick;
            remoteService                       = new RemoteWindowService();
            remoteService.OnScanEvent          += HandleScanEvent;
            remoteService.OnScanDeliveredEvent += HandleScanDeliveredEvent;
            remoteService.Activate();
        }
Esempio n. 21
0
        public CustomApplicationContext()
        {
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = CreateContextMenuStrip(),
                Icon = Properties.Resources.Clock,
                Text = "Work Track Lite",
                Visible = true
            };
            //notifyIcon.DoubleClick += notifyIcon_DoubleClick;
            notifyIcon.BalloonTipClicked += new EventHandler(notifyIcon_BalloonTipClicked);

            settings = Properties.Settings.Default;
            dataStore = new DataStore();

            timer = new Timer(components);
            timer.Tick += new EventHandler(timer_Tick);
            ConfigureInitialTimer();
        }
Esempio n. 22
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmIcons));
     this.m_imgListOfIcons = new System.Windows.Forms.ImageList(this.components);
     //
     //m_imgListOfIcons
     //
     this.m_imgListOfIcons.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.m_imgListOfIcons.ImageSize = new System.Drawing.Size(16, 16);
     this.m_imgListOfIcons.ImageStream = (System.Windows.Forms.ImageListStreamer) (resources.GetObject("m_imgListOfIcons.ImageStream"));
     this.m_imgListOfIcons.TransparentColor = System.Drawing.Color.Transparent;
     //
     //frmIcons
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(219, 34);
     this.Name = "frmIcons";
     this.Text = "frmIcons";
 }
        public VolumeControlContext()
        {
            components = new System.ComponentModel.Container();
            Icon volumeControlIcon = new Icon(Properties.Resources.VolumeControl, SystemInformation.SmallIconSize);

            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon             = volumeControlIcon,
                Text             = DefaultToolTip,
                Visible          = true
            };

            notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItemWithHandler("Settings", notifyIcon_SettingsClick));
            notifyIcon.ContextMenuStrip.Items.Add(new ToolStripSeparator());
            notifyIcon.ContextMenuStrip.Items.Add(ToolStripMenuItemWithHandler("Exit", notifyIcon_ExitClick));

            volumeManager = new VolumeManager();
            RefreshHotkeys();
        }
Esempio n. 24
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            this.components = new System.ComponentModel.Container();
            this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);

            var exitMenu = new System.Windows.Forms.MenuItem("Exit");

            exitMenu.Index  = 0;
            exitMenu.Click += NotifyIconContextMenuExitItem_Click;

            var contextMenu = new System.Windows.Forms.ContextMenu();

            contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { exitMenu });
            this.notifyIcon.ContextMenu = contextMenu;

            this.notifyIcon.Icon    = new System.Drawing.Icon(VirtualDesktopKnock.Properties.Resources.TrayIcon, System.Windows.Forms.SystemInformation.SmallIconSize);
            this.notifyIcon.Text    = "Virtual Desktop Knock";
            this.notifyIcon.Visible = true;
        }
Esempio n. 25
0
        private void UpdateAyam()
        {
            try
            {
                System.ComponentModel.IContainer components = new System.ComponentModel.Container();
                myport = new SerialPort(components);
                myport.BaudRate = 9600;
                myport.PortName = portname;
                myport.Open();

                string RXstring = myport.ReadLine();
                myport.WriteLine("5");
                ayam.suhu = RXstring + " °C";
                myport.WriteLine("6");
                RXstring = myport.ReadLine();
                ayam.kelembaban = RXstring + " %";
            }
            catch (Exception)
            {
            }
        }
Esempio n. 26
0
        private static void Initialize()
        {
            string port = RaceSettings.RS.CommunicationPort;

            System.ComponentModel.IContainer components = new System.ComponentModel.Container();

            _com = new System.IO.Ports.SerialPort(components); // Creating the new object.
            try
            {
                _com.PortName  = port; // Setting what port number.
                _com.BaudRate  = 9600; // Setting baudrate.
                _com.DtrEnable = true; // Enable the Data Terminal Ready
                _com.Open();           // Open the port for use.
                _com.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(DataReceived);
                //ConnectionStatus(0, null);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
        public static bool _Dispose_System_ComponentModel_Container( )
        {
            //class object
            System.ComponentModel.Container _System_ComponentModel_Container = new System.ComponentModel.Container();

            //Parameters


            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                _System_ComponentModel_Container.Dispose();
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                _System_ComponentModel_Container.Dispose();
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Message == exception_Intercepted.Message));
        }
Esempio n. 28
0
        private void LoadData()
        {
            ChartTypeComboBox.Items.Clear();
            TableComboBox.Items.Clear();
            FillComboBox();
            FillComboBox2();
            components = new System.ComponentModel.Container();
            ChartArea chartArea1 = new ChartArea();
            Legend    legend1    = new Legend();

            this.chart1 = new Chart();
            ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();
            this.SuspendLayout();
            //
            // chart1
            //
            chartArea1.Name = "ChartArea1";
            this.chart1.ChartAreas.Add(chartArea1);
            this.chart1.Dock = DockStyle.Fill;
            legend1.Name     = "Legend1";
            this.chart1.Legends.Add(legend1);
            this.chart1.Location = new System.Drawing.Point(0, 50);
            this.chart1.Name     = "Orders Per Department";
            // this.chart1.Size = new System.Drawing.Size(284, 212);
            this.chart1.TabIndex = 0;
            this.chart1.Text     = "chart1";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(284, 262);
            this.Controls.Add(this.chart1);
            this.Name  = "Form1";
            this.Text  = "FakeChart";
            this.Load += new EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();
            this.ResumeLayout(false);
        }
Esempio n. 29
0
        public static void InitTrayIcon()
        {
            var exit = new MenuItem();

            exit.Text   = "Exit";
            exit.Click += new System.EventHandler(exitItem_Click);

            var options = new MenuItem();

            options.Text   = "Options";
            options.Click += new System.EventHandler(optionsItem_Click);

            var start = new MenuItem();

            start.Text   = "Start League";
            start.Click += new System.EventHandler(startItem_Click);

            var contextMenu = new ContextMenu();

            contextMenu.MenuItems.AddRange(new MenuItem[] { start, options, exit });

            var components = new System.ComponentModel.Container();

            notifyIcon             = new NotifyIcon(components);
            notifyIcon.Icon        = Properties.Resources.icon;
            notifyIcon.ContextMenu = contextMenu;
            notifyIcon.Text        = "LoL AutoLogin";
            notifyIcon.Visible     = true;

            notifyIcon.BalloonTipTitle = notifyIcon.Text;
            notifyIcon.BalloonTipText  = ""
                                         + "Newer version is available"
                                         + Environment.NewLine
                                         + "Click there to go to download page on github.com";
            notifyIcon.BalloonTipClicked += (sender, e) =>
            {
                System.Diagnostics.Process.Start(UpdateChecker.DownloadUrl);
            };
        }
Esempio n. 30
0
        //private ViewHostDialog activitiesDialog;
        //private ViewHostDialog usersDialog;
        //private ViewHostDialog editWorkDialog;
        public CustomApplicationContext()
        {
            CreateToolStripItems();
            components = new System.ComponentModel.Container();
            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon = Properties.Resources.ClockProcessing,
                Text = "Work Track",
                Visible = true
            };

            var connectionInfo = SettingsToConnectionInfo(Properties.Settings.Default);

            if (!string.IsNullOrEmpty(connectionInfo.ServerName))
            {
                var failMessage = InitializeConnection(connectionInfo);
                if (failMessage != null)
                {
                    notifyIcon.Icon = Properties.Resources.ClockDisconnected;
                    string msg = "There was an error connecting to the WorkTrack database. " + failMessage;
                    notifyIcon.ShowBalloonTip(balloonTimeoutMs, "WorkTrack", msg, ToolTipIcon.Error);
                }
                else
                {
                    notifyIcon.Icon = Properties.Resources.Clock;
                }
            }
            else
            {
                notifyIcon.Icon = Properties.Resources.ClockDisconnected;
                string msg = "Database connection has not been defined.";
                notifyIcon.ShowBalloonTip(balloonTimeoutMs, "WorkTrack", msg, ToolTipIcon.Warning);
            }

            notifyIcon.ContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(ContextMenuStrip_Opening);

            //notifyIcon.DoubleClick += notifyIcon_DoubleClick;
        }
Esempio n. 31
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            ChartArea chartArea1 = new ChartArea();
            Legend    legend1    = new Legend();

            RateCurveChart = new Chart();
            ((System.ComponentModel.ISupportInitialize)(RateCurveChart)).BeginInit();
            SuspendLayout();
            //
            // RateCurveChart
            //
            chartArea1.Name                = "ChartArea1";
            chartArea1.AxisX.Minimum       = 0;
            chartArea1.AxisX.Maximum       = 30;
            chartArea1.AxisX.Interval      = 5;
            chartArea1.AxisX.LogarithmBase = Math.E;
            RateCurveChart.ChartAreas.Add(chartArea1);
            RateCurveChart.Dock = DockStyle.Fill;
            legend1.Name        = "Legend1";
            RateCurveChart.Legends.Add(legend1);
            RateCurveChart.Location = new System.Drawing.Point(0, 50);
            RateCurveChart.Name     = "RateCurve";
            // this.chart1.Size = new System.Drawing.Size(284, 212);
            RateCurveChart.TabIndex = 0;
            RateCurveChart.Text     = "Interest Rate Curve";
            //
            // RateCurve Form
            //
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new System.Drawing.Size(484, 462);
            Controls.Add(RateCurveChart);
            Name  = "RandomChart";
            Text  = "Rate Curve";
            Load += new EventHandler(RateCurveChart_Load);
            ((System.ComponentModel.ISupportInitialize)(RateCurveChart)).EndInit();
            ResumeLayout(false);
        }
Esempio n. 32
0
        public CCSListView()
        {
            //  this.ColumnReordered;

            this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint , true);
            this.SetStyle(ControlStyles.EnableNotifyMessage , true);
            ColumnFormatList = new List<ColumnFormat>();
            sortedId = 0;
            dir = direction.ASCENDING;

            this.SmallImageList = new ImageList();

            // this.SmallImageList.Images.Add("ASCENDING", AppStatus.Properties.Resources.sortAscending);
            //this.SmallImageList.Images.Add("DESCENDING", AppStatus.Properties.Resources.sortDescending);
            listBox1 = new ListBox();
            listBox1.Anchor = AnchorStyles.Bottom;
            listBox1.ResumeLayout(false);
               // this.Controls.Add(listBox1);
            System.ComponentModel.IContainer components;
            components = new System.ComponentModel.Container();
            components.Add(listBox1);
        }
Esempio n. 33
0
        private void Initialize()
        {
            var iconStream = typeof(TrayItemController).Assembly.GetManifestResourceStream("BlackMesa.PreferenceManagement.Assets.Coffee.ico");
            _components = new System.ComponentModel.Container();
            _notifyIcon = new NotifyIcon(_components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Icon = new Icon(iconStream),
                Text = "Kewl",
                Visible = true
            };

            _notifyIcon.ContextMenu = new ContextMenu();

            var j = new MenuItem("Shutdown");
            j.Click += j_Click;
            _notifyIcon.ContextMenu.MenuItems.Add(j);

            var i = new MenuItem("Configure");
            i.Click += i_Click;
            _notifyIcon.ContextMenu.MenuItems.Add(i);
        }
        public static bool _Add_System_ComponentModel_Container_System_ComponentModel_IComponent_System_String( )
        {
            //class object
            System.ComponentModel.Container _System_ComponentModel_Container = new System.ComponentModel.Container();

               //Parameters
               System.ComponentModel.IComponent component = null;
               System.String name = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
            _System_ComponentModel_Container.Add(component,name);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
            _System_ComponentModel_Container.Add(component,name);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Message == exception_Intercepted.Message ));
        }
			//NOTE: The following procedure is required by the Windows Form Designer
			//It can be modified using the Windows Form Designer.
			//Do not modify it using the code editor.
			[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
			{
				this.components = new System.ComponentModel.Container();
				this.ErrorNotify = new System.Windows.Forms.ErrorProvider(this.components);
				this.KryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).BeginInit();
				this.SuspendLayout();
				//
				//ErrorNotify
				//
				this.ErrorNotify.ContainerControl = this;
				//
				//DocklessForm
				//
				this.AutoScaleDimensions = new System.Drawing.SizeF(6.0, 13.0);
				this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
				this.ClientSize = new System.Drawing.Size(335, 278);
				this.KeyPreview = true;
				this.Name = "DocklessForm";
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).EndInit();
				this.ResumeLayout(false);
				
			}
Esempio n. 36
0
 private void InitializeComponent()
 {
     this.sentinel = new PdnMenuItem();
     //
     // sentinel
     //
     this.sentinel.Name = null;
     //
     // components
     //
     this.components = new System.ComponentModel.Container();
     //
     // invalidateTimer
     //
     this.invalidateTimer          = new System.Windows.Forms.Timer(this.components);
     this.invalidateTimer.Enabled  = false;
     this.invalidateTimer.Tick    += InvalidateTimer_Tick;
     this.invalidateTimer.Interval = effectRefreshInterval;
     //
     // EffectMenuBase
     //
     this.DropDownItems.Add(sentinel);
 }
Esempio n. 37
0
        public SemaFlagsTray()
        {
            Running = true;

            trayMenu = new ContextMenu();

            MenuItem exitMenuItem = new MenuItem();

            exitMenuItem.Index  = 0;
            exitMenuItem.Text   = "E&xit";
            exitMenuItem.Click += new System.EventHandler(this.ExitSemaFlags);

            trayMenu.MenuItems.Add(exitMenuItem);

            System.ComponentModel.Container components = new System.ComponentModel.Container();
            trayIcon         = new NotifyIcon(components);
            trayIcon.Text    = "SemaFlags";
            trayIcon.Icon    = new Icon(SystemIcons.Application, 40, 40);
            trayIcon.Visible = true;

            trayIcon.ContextMenu = trayMenu;
            trayIcon.Click      += new System.EventHandler(this.Click_SemaFlagsTray);
        }
        public static bool _ctor_System_ComponentModel_Container( )
        {
            //class object
            System.ComponentModel.Container _System_ComponentModel_Container = new System.ComponentModel.Container();

               //Parameters

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
              _System_ComponentModel_Container.ctor();
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
              _System_ComponentModel_Container.ctor();
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Message == exception_Intercepted.Message ));
        }
Esempio n. 39
0
        public static void PlayFile(string filename)
        {
            readMidiFile(new MidiFile(filename));

            System.ComponentModel.IContainer components = new System.ComponentModel.Container();
            mmTimer = new Timer(components);

            long msec = 0;

            mmTimer.Mode       = TimerMode.Periodic;
            mmTimer.Period     = 1;
            mmTimer.Resolution = 1;
            //    mmTimer.SynchronizingObject = this;

            if (notes.ContainsKey(0))
            {
                foreach (int note in notes[0])
                {
                    Send(note);
                }
            }

            mmTimer.Start();

            mmTimer.Tick += new System.EventHandler((e, s) =>
            {
                msec++;
                if (notes.ContainsKey(msec))
                {
                    foreach (int note in notes[msec])
                    {
                        Send(note);
                    }
                }
            });
        }
Esempio n. 40
0
        /// <summary>
        /// Initializes the tray icons
        /// </summary>
        private void InitializeTray()
        {
            MenuItem _keyboardEnabled = new MenuItem("Keyboard enabled", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.keyboardEnabled = (sender as MenuItem).Checked;
                KeyboardEnabledBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            MenuItem _mouseEnabled = new MenuItem("Mouse enabled", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.mouseEnabled = (sender as MenuItem).Checked;
                MouseEnabledBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            MenuItem _mousematEnabled = new MenuItem("Mousemat enabled", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.mousematEnabled = (sender as MenuItem).Checked;
                PadEnabledBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            MenuItem _ambiModeEnabled = new MenuItem("'Real' Ambilight mode", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.ambiEnabled = (sender as MenuItem).Checked;
                AmbiModeBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            MenuItem _ultrawideModeEnabled = new MenuItem("Ultrawide Monitor mode", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.ultrawideEnabled = (sender as MenuItem).Checked;
                UltrawideModeBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            MenuItem _autostart = new MenuItem("Autostart", (sender, args) =>
            {
                EnableMenuItemOnClick(sender, args);
                Properties.Settings.Default.autostartEnabled = (sender as MenuItem).Checked;
                changeAutoStart();
                AutostartEnabledBool = (sender as MenuItem).Checked;
                Properties.Settings.Default.Save();
            });

            _keyboardEnabled.Checked      = Properties.Settings.Default.keyboardEnabled;
            KeyboardEnabledBool           = Properties.Settings.Default.keyboardEnabled;
            _mouseEnabled.Checked         = Properties.Settings.Default.mouseEnabled;
            MouseEnabledBool              = Properties.Settings.Default.mouseEnabled;
            _mousematEnabled.Checked      = Properties.Settings.Default.mousematEnabled;
            PadEnabledBool                = Properties.Settings.Default.mousematEnabled;
            _ambiModeEnabled.Checked      = Properties.Settings.Default.ambiEnabled;
            AmbiModeBool                  = Properties.Settings.Default.ambiEnabled;
            _ultrawideModeEnabled.Checked = Properties.Settings.Default.ambiEnabled;
            UltrawideModeBool             = Properties.Settings.Default.ultrawideEnabled;
            _autostart.Checked            = checkAutostart(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "/Ambilight.lnk");
            AutostartEnabledBool          = Properties.Settings.Default.autostartEnabled;

            var components  = new System.ComponentModel.Container();
            var contextMenu = new ContextMenu();

            contextMenu.MenuItems.Add("Exit", (sender, args) => { notifyIcon.Dispose(); Environment.Exit(0); });
            contextMenu.MenuItems.Add("Change max fps", ChangeTickrateHandler);
            contextMenu.MenuItems.Add("Change Saturation", ChangeSaturationHandler);
            contextMenu.MenuItems.Add("Set Manual keyboard size", changeKeyboardSizeHandler);
            contextMenu.MenuItems.Add("-");
            contextMenu.MenuItems.Add(_ambiModeEnabled);
            contextMenu.MenuItems.Add(_ultrawideModeEnabled);
            contextMenu.MenuItems.Add(_autostart);
            contextMenu.MenuItems.Add("-");

            contextMenu.MenuItems.Add(_keyboardEnabled);
            contextMenu.MenuItems.Add(_mouseEnabled);
            contextMenu.MenuItems.Add(_mousematEnabled);

            notifyIcon = new NotifyIcon(components)
            {
                Icon    = new Icon("Color_Wheel.ico"),
                Text    = "Razer Ambilight",
                Visible = true
            };

            logger.Info("Keyboard Enabled: " + _keyboardEnabled.Checked);
            logger.Info("Mouse Enabled: " + _mouseEnabled.Checked);
            logger.Info("Mousemat Enabled: " + _mousematEnabled.Checked);
            logger.Info("Ambilight mode: " + _ambiModeEnabled.Checked);
            logger.Info("Ultrawide mode: " + _ultrawideModeEnabled.Checked);

            notifyIcon.ContextMenu = contextMenu;
            Application.Run();
        }
 //NOTA: el Diseñador de Windows Forms necesita el siguiente procedimiento
 //Se puede modificar usando el Diseñador de Windows Forms.
 //No lo modifique con el editor de código.
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components   = new System.ComponentModel.Container();
     this.Load        += new System.EventHandler(Form1_Load);
     base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(Form1_FormClosing);
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormContinuousMode));
     this.lblStation = new System.Windows.Forms.Label();
     this.chbPort1   = new System.Windows.Forms.CheckBox();
     this.lblTemp1   = new System.Windows.Forms.Label();
     this.lblStatus1 = new System.Windows.Forms.Label();
     this.lblPwr1    = new System.Windows.Forms.Label();
     this.lblPwr2    = new System.Windows.Forms.Label();
     this.lblStatus2 = new System.Windows.Forms.Label();
     this.lblTemp2   = new System.Windows.Forms.Label();
     this.lblPwr3    = new System.Windows.Forms.Label();
     this.lblStatus3 = new System.Windows.Forms.Label();
     this.lblTemp3   = new System.Windows.Forms.Label();
     this.lblPwr4    = new System.Windows.Forms.Label();
     this.lblStatus4 = new System.Windows.Forms.Label();
     this.lblTemp4   = new System.Windows.Forms.Label();
     this.Label14    = new System.Windows.Forms.Label();
     this.Label15    = new System.Windows.Forms.Label();
     this.Label16    = new System.Windows.Forms.Label();
     this.chbPort4   = new System.Windows.Forms.CheckBox();
     this.chbPort3   = new System.Windows.Forms.CheckBox();
     this.chbPort2   = new System.Windows.Forms.CheckBox();
     this.cbxSpeed   = new System.Windows.Forms.ComboBox();
     this.cbxSpeed.SelectedIndexChanged    += new System.EventHandler(this.cbxSpeed_SelectedIndexChanged);
     this.CSpeedContinuousModeBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.butStart        = new System.Windows.Forms.Button();
     this.butStart.Click += new System.EventHandler(this.butStart_Click);
     this.butStop         = new System.Windows.Forms.Button();
     this.butStop.Click  += new System.EventHandler(this.butStop_Click);
     this.lblSeq          = new System.Windows.Forms.Label();
     this.lblTrans        = new System.Windows.Forms.Label();
     this.cbxTick         = new System.Windows.Forms.ComboBox();
     this.cbxTick.SelectedIndexChanged += new System.EventHandler(this.cbxTick_SelectedIndexChanged);
     this.Label1 = new System.Windows.Forms.Label();
     this.Label2 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize) this.CSpeedContinuousModeBindingSource).BeginInit();
     this.SuspendLayout();
     //
     //lblStation
     //
     this.lblStation.AutoSize = true;
     this.lblStation.Location = new System.Drawing.Point(13, 13);
     this.lblStation.Name     = "lblStation";
     this.lblStation.Size     = new System.Drawing.Size(120, 13);
     this.lblStation.TabIndex = 1;
     this.lblStation.Text     = "Station: UNDETECTED";
     //
     //chbPort1
     //
     this.chbPort1.AutoSize = true;
     this.chbPort1.Location = new System.Drawing.Point(16, 59);
     this.chbPort1.Name     = "chbPort1";
     this.chbPort1.Size     = new System.Drawing.Size(51, 17);
     this.chbPort1.TabIndex = 2;
     this.chbPort1.Text     = "Port1";
     this.chbPort1.UseVisualStyleBackColor = true;
     //
     //lblTemp1
     //
     this.lblTemp1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblTemp1.Location    = new System.Drawing.Point(73, 56);
     this.lblTemp1.Name        = "lblTemp1";
     this.lblTemp1.Size        = new System.Drawing.Size(100, 20);
     this.lblTemp1.TabIndex    = 3;
     this.lblTemp1.Text        = "0 ºC";
     this.lblTemp1.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblStatus1
     //
     this.lblStatus1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStatus1.Location    = new System.Drawing.Point(271, 56);
     this.lblStatus1.Name        = "lblStatus1";
     this.lblStatus1.Size        = new System.Drawing.Size(100, 20);
     this.lblStatus1.TabIndex    = 4;
     this.lblStatus1.Text        = "NONE";
     this.lblStatus1.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblPwr1
     //
     this.lblPwr1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblPwr1.Location    = new System.Drawing.Point(172, 56);
     this.lblPwr1.Name        = "lblPwr1";
     this.lblPwr1.Size        = new System.Drawing.Size(100, 20);
     this.lblPwr1.TabIndex    = 5;
     this.lblPwr1.Text        = "0.0 %";
     this.lblPwr1.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblPwr2
     //
     this.lblPwr2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblPwr2.Location    = new System.Drawing.Point(172, 79);
     this.lblPwr2.Name        = "lblPwr2";
     this.lblPwr2.Size        = new System.Drawing.Size(100, 20);
     this.lblPwr2.TabIndex    = 8;
     this.lblPwr2.Text        = "0.0 %";
     this.lblPwr2.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblStatus2
     //
     this.lblStatus2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStatus2.Location    = new System.Drawing.Point(271, 79);
     this.lblStatus2.Name        = "lblStatus2";
     this.lblStatus2.Size        = new System.Drawing.Size(100, 20);
     this.lblStatus2.TabIndex    = 7;
     this.lblStatus2.Text        = "NONE";
     this.lblStatus2.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblTemp2
     //
     this.lblTemp2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblTemp2.Location    = new System.Drawing.Point(73, 79);
     this.lblTemp2.Name        = "lblTemp2";
     this.lblTemp2.Size        = new System.Drawing.Size(100, 20);
     this.lblTemp2.TabIndex    = 6;
     this.lblTemp2.Text        = "0 ºC";
     this.lblTemp2.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblPwr3
     //
     this.lblPwr3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblPwr3.Location    = new System.Drawing.Point(172, 102);
     this.lblPwr3.Name        = "lblPwr3";
     this.lblPwr3.Size        = new System.Drawing.Size(100, 20);
     this.lblPwr3.TabIndex    = 11;
     this.lblPwr3.Text        = "0.0 %";
     this.lblPwr3.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblStatus3
     //
     this.lblStatus3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStatus3.Location    = new System.Drawing.Point(271, 102);
     this.lblStatus3.Name        = "lblStatus3";
     this.lblStatus3.Size        = new System.Drawing.Size(100, 20);
     this.lblStatus3.TabIndex    = 10;
     this.lblStatus3.Text        = "NONE";
     this.lblStatus3.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblTemp3
     //
     this.lblTemp3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblTemp3.Location    = new System.Drawing.Point(73, 102);
     this.lblTemp3.Name        = "lblTemp3";
     this.lblTemp3.Size        = new System.Drawing.Size(100, 20);
     this.lblTemp3.TabIndex    = 9;
     this.lblTemp3.Text        = "0 ºC";
     this.lblTemp3.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblPwr4
     //
     this.lblPwr4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblPwr4.Location    = new System.Drawing.Point(172, 125);
     this.lblPwr4.Name        = "lblPwr4";
     this.lblPwr4.Size        = new System.Drawing.Size(100, 20);
     this.lblPwr4.TabIndex    = 14;
     this.lblPwr4.Text        = "0.0 %";
     this.lblPwr4.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblStatus4
     //
     this.lblStatus4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblStatus4.Location    = new System.Drawing.Point(271, 125);
     this.lblStatus4.Name        = "lblStatus4";
     this.lblStatus4.Size        = new System.Drawing.Size(100, 20);
     this.lblStatus4.TabIndex    = 13;
     this.lblStatus4.Text        = "NONE";
     this.lblStatus4.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblTemp4
     //
     this.lblTemp4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblTemp4.Location    = new System.Drawing.Point(73, 125);
     this.lblTemp4.Name        = "lblTemp4";
     this.lblTemp4.Size        = new System.Drawing.Size(100, 20);
     this.lblTemp4.TabIndex    = 12;
     this.lblTemp4.Text        = "0 ºC";
     this.lblTemp4.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //Label14
     //
     this.Label14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Label14.Location    = new System.Drawing.Point(172, 37);
     this.Label14.Name        = "Label14";
     this.Label14.Size        = new System.Drawing.Size(100, 20);
     this.Label14.TabIndex    = 17;
     this.Label14.Text        = "Power";
     this.Label14.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //Label15
     //
     this.Label15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Label15.Location    = new System.Drawing.Point(271, 37);
     this.Label15.Name        = "Label15";
     this.Label15.Size        = new System.Drawing.Size(100, 20);
     this.Label15.TabIndex    = 16;
     this.Label15.Text        = "Status";
     this.Label15.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //Label16
     //
     this.Label16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Label16.Location    = new System.Drawing.Point(73, 37);
     this.Label16.Name        = "Label16";
     this.Label16.Size        = new System.Drawing.Size(100, 20);
     this.Label16.TabIndex    = 15;
     this.Label16.Text        = "Temperature";
     this.Label16.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //chbPort4
     //
     this.chbPort4.AutoSize = true;
     this.chbPort4.Location = new System.Drawing.Point(16, 128);
     this.chbPort4.Name     = "chbPort4";
     this.chbPort4.Size     = new System.Drawing.Size(51, 17);
     this.chbPort4.TabIndex = 18;
     this.chbPort4.Text     = "Port4";
     this.chbPort4.UseVisualStyleBackColor = true;
     //
     //chbPort3
     //
     this.chbPort3.AutoSize = true;
     this.chbPort3.Location = new System.Drawing.Point(16, 105);
     this.chbPort3.Name     = "chbPort3";
     this.chbPort3.Size     = new System.Drawing.Size(51, 17);
     this.chbPort3.TabIndex = 19;
     this.chbPort3.Text     = "Port3";
     this.chbPort3.UseVisualStyleBackColor = true;
     //
     //chbPort2
     //
     this.chbPort2.AutoSize = true;
     this.chbPort2.Location = new System.Drawing.Point(16, 82);
     this.chbPort2.Name     = "chbPort2";
     this.chbPort2.Size     = new System.Drawing.Size(51, 17);
     this.chbPort2.TabIndex = 20;
     this.chbPort2.Text     = "Port2";
     this.chbPort2.UseVisualStyleBackColor = true;
     //
     //cbxSpeed
     //
     this.cbxSpeed.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbxSpeed.FormattingEnabled = true;
     this.cbxSpeed.Location          = new System.Drawing.Point(190, 180);
     this.cbxSpeed.Name     = "cbxSpeed";
     this.cbxSpeed.Size     = new System.Drawing.Size(100, 21);
     this.cbxSpeed.TabIndex = 21;
     //
     //CSpeedContinuousModeBindingSource
     //
     this.CSpeedContinuousModeBindingSource.DataSource = typeof(JBC_Connect.SpeedContinuousMode);
     //
     //butStart
     //
     this.butStart.Location = new System.Drawing.Point(296, 149);
     this.butStart.Name     = "butStart";
     this.butStart.Size     = new System.Drawing.Size(75, 23);
     this.butStart.TabIndex = 22;
     this.butStart.Text     = "Start";
     this.butStart.UseVisualStyleBackColor = true;
     //
     //butStop
     //
     this.butStop.Location = new System.Drawing.Point(296, 178);
     this.butStop.Name     = "butStop";
     this.butStop.Size     = new System.Drawing.Size(75, 23);
     this.butStop.TabIndex = 23;
     this.butStop.Text     = "Stop";
     this.butStop.UseVisualStyleBackColor = true;
     //
     //lblSeq
     //
     this.lblSeq.Location  = new System.Drawing.Point(139, 9);
     this.lblSeq.Name      = "lblSeq";
     this.lblSeq.Size      = new System.Drawing.Size(126, 20);
     this.lblSeq.TabIndex  = 24;
     this.lblSeq.Text      = "Sequence: 0";
     this.lblSeq.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //lblTrans
     //
     this.lblTrans.Location  = new System.Drawing.Point(271, 9);
     this.lblTrans.Name      = "lblTrans";
     this.lblTrans.Size      = new System.Drawing.Size(100, 20);
     this.lblTrans.TabIndex  = 25;
     this.lblTrans.Text      = "tck: 1000 / tr: 0";
     this.lblTrans.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     //cbxTick
     //
     this.cbxTick.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbxTick.FormattingEnabled = true;
     this.cbxTick.Items.AddRange(new object[] { "1000", "500", "100", "50" });
     this.cbxTick.Location = new System.Drawing.Point(84, 180);
     this.cbxTick.Name     = "cbxTick";
     this.cbxTick.Size     = new System.Drawing.Size(100, 21);
     this.cbxTick.TabIndex = 26;
     //
     //Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(92, 159);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(86, 13);
     this.Label1.TabIndex = 27;
     this.Label1.Text     = "Refresh tick (ms)";
     //
     //Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(196, 159);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(88, 13);
     this.Label2.TabIndex = 28;
     this.Label2.Text     = "Trans period (ms)";
     //
     //Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF((float)(6.0F), (float)(13.0F));
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(382, 211);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.cbxTick);
     this.Controls.Add(this.lblTrans);
     this.Controls.Add(this.lblSeq);
     this.Controls.Add(this.butStop);
     this.Controls.Add(this.butStart);
     this.Controls.Add(this.cbxSpeed);
     this.Controls.Add(this.chbPort2);
     this.Controls.Add(this.chbPort3);
     this.Controls.Add(this.chbPort4);
     this.Controls.Add(this.Label14);
     this.Controls.Add(this.Label15);
     this.Controls.Add(this.Label16);
     this.Controls.Add(this.lblPwr4);
     this.Controls.Add(this.lblStatus4);
     this.Controls.Add(this.lblTemp4);
     this.Controls.Add(this.lblPwr3);
     this.Controls.Add(this.lblStatus3);
     this.Controls.Add(this.lblTemp3);
     this.Controls.Add(this.lblPwr2);
     this.Controls.Add(this.lblStatus2);
     this.Controls.Add(this.lblTemp2);
     this.Controls.Add(this.lblPwr1);
     this.Controls.Add(this.lblStatus1);
     this.Controls.Add(this.lblTemp1);
     this.Controls.Add(this.chbPort1);
     this.Controls.Add(this.lblStation);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = (System.Drawing.Icon)(resources.GetObject("$this.Icon"));
     this.Name            = "Form1";
     this.Text            = "JBC - Continuous mode test";
     ((System.ComponentModel.ISupportInitialize) this.CSpeedContinuousModeBindingSource).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load      += new System.EventHandler(frmTemplate_Load);
     System.Windows.Forms.TreeNode TreeNode1  = new System.Windows.Forms.TreeNode("Nodo10");
     System.Windows.Forms.TreeNode TreeNode2  = new System.Windows.Forms.TreeNode("Nodo11");
     System.Windows.Forms.TreeNode TreeNode3  = new System.Windows.Forms.TreeNode("<portA>", new System.Windows.Forms.TreeNode[] { TreeNode1, TreeNode2 });
     System.Windows.Forms.TreeNode TreeNode4  = new System.Windows.Forms.TreeNode("Nodo2");
     System.Windows.Forms.TreeNode TreeNode5  = new System.Windows.Forms.TreeNode("Nodo3");
     System.Windows.Forms.TreeNode TreeNode6  = new System.Windows.Forms.TreeNode("Nodo7");
     System.Windows.Forms.TreeNode TreeNode7  = new System.Windows.Forms.TreeNode("<stationA>", new System.Windows.Forms.TreeNode[] { TreeNode3, TreeNode4, TreeNode5, TreeNode6 });
     System.Windows.Forms.TreeNode TreeNode8  = new System.Windows.Forms.TreeNode("Nodo12");
     System.Windows.Forms.TreeNode TreeNode9  = new System.Windows.Forms.TreeNode("Nodo13");
     System.Windows.Forms.TreeNode TreeNode10 = new System.Windows.Forms.TreeNode("Nodo5", new System.Windows.Forms.TreeNode[] { TreeNode8, TreeNode9 });
     System.Windows.Forms.TreeNode TreeNode11 = new System.Windows.Forms.TreeNode("Nodo6");
     System.Windows.Forms.TreeNode TreeNode12 = new System.Windows.Forms.TreeNode("Nodo8");
     System.Windows.Forms.TreeNode TreeNode13 = new System.Windows.Forms.TreeNode("Nodo9");
     System.Windows.Forms.TreeNode TreeNode14 = new System.Windows.Forms.TreeNode("Nodo4", new System.Windows.Forms.TreeNode[] { TreeNode10, TreeNode11, TreeNode12, TreeNode13 });
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmTemplate));
     this.lbxTemplateList = new System.Windows.Forms.ListBox();
     this.lbxTemplateList.SelectedIndexChanged += new System.EventHandler(this.lbxTemplateList_SelectedIndexChanged);
     this.lblTemplateList             = new System.Windows.Forms.Label();
     this.trvTemplate                 = new System.Windows.Forms.TreeView();
     this.trvTemplate.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.trvTemplate_NodeMouseClick);
     this.gbTemplateParams            = new System.Windows.Forms.GroupBox();
     this.butCancel                    = new System.Windows.Forms.Button();
     this.butCancel.Click             += new System.EventHandler(this.butCancel_Click);
     this.lblTriggerType               = new System.Windows.Forms.Label();
     this.lblPort                      = new System.Windows.Forms.Label();
     this.lblStation                   = new System.Windows.Forms.Label();
     this.cbxPortTrigger               = new System.Windows.Forms.ComboBox();
     this.cbxStationTrigger            = new System.Windows.Forms.ComboBox();
     this.cbxStationTrigger.DropDown  += new System.EventHandler(this.cbxStationTrigger_DropDown);
     this.butApply                     = new System.Windows.Forms.Button();
     this.butApply.Click              += new System.EventHandler(this.butApply_Click);
     this.lblTriggerTool               = new System.Windows.Forms.Label();
     this.lblSeriesTree                = new System.Windows.Forms.Label();
     this.cmsTreeNodeEdit              = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.cmsTreeNodeEdit.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.cmsTreeNodeEdit_ItemClicked);
     this.gbTemplateParams.SuspendLayout();
     this.SuspendLayout();
     //
     //lbxTemplateList
     //
     this.lbxTemplateList.FormattingEnabled = true;
     this.lbxTemplateList.Location          = new System.Drawing.Point(12, 25);
     this.lbxTemplateList.Name     = "lbxTemplateList";
     this.lbxTemplateList.Size     = new System.Drawing.Size(178, 238);
     this.lbxTemplateList.TabIndex = 0;
     //
     //lblTemplateList
     //
     this.lblTemplateList.AutoSize = true;
     this.lblTemplateList.Location = new System.Drawing.Point(12, 9);
     this.lblTemplateList.Name     = "lblTemplateList";
     this.lblTemplateList.Size     = new System.Drawing.Size(70, 13);
     this.lblTemplateList.TabIndex = 1;
     this.lblTemplateList.Text     = "Template List";
     //
     //trvTemplate
     //
     this.trvTemplate.Location = new System.Drawing.Point(6, 39);
     this.trvTemplate.Name     = "trvTemplate";
     TreeNode1.Name            = "Nodo10";
     TreeNode1.Text            = "Nodo10";
     TreeNode2.Name            = "Nodo11";
     TreeNode2.Text            = "Nodo11";
     TreeNode3.Name            = "Nodo1";
     TreeNode3.Text            = "<portA>";
     TreeNode4.Name            = "Nodo2";
     TreeNode4.Text            = "Nodo2";
     TreeNode5.Name            = "Nodo3";
     TreeNode5.Text            = "Nodo3";
     TreeNode6.Name            = "Nodo7";
     TreeNode6.Text            = "Nodo7";
     TreeNode7.Name            = "Nodo0";
     TreeNode7.Text            = "<stationA>";
     TreeNode8.Name            = "Nodo12";
     TreeNode8.Text            = "Nodo12";
     TreeNode9.Name            = "Nodo13";
     TreeNode9.Text            = "Nodo13";
     TreeNode10.Name           = "Nodo5";
     TreeNode10.Text           = "Nodo5";
     TreeNode11.Name           = "Nodo6";
     TreeNode11.Text           = "Nodo6";
     TreeNode12.Name           = "Nodo8";
     TreeNode12.Text           = "Nodo8";
     TreeNode13.Name           = "Nodo9";
     TreeNode13.Text           = "Nodo9";
     TreeNode14.Name           = "Nodo4";
     TreeNode14.Text           = "Nodo4";
     this.trvTemplate.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { TreeNode7, TreeNode14 });
     this.trvTemplate.ShowPlusMinus = false;
     this.trvTemplate.ShowRootLines = false;
     this.trvTemplate.Size          = new System.Drawing.Size(164, 206);
     this.trvTemplate.TabIndex      = 6;
     //
     //gbTemplateParams
     //
     this.gbTemplateParams.Controls.Add(this.butCancel);
     this.gbTemplateParams.Controls.Add(this.lblTriggerType);
     this.gbTemplateParams.Controls.Add(this.lblPort);
     this.gbTemplateParams.Controls.Add(this.lblStation);
     this.gbTemplateParams.Controls.Add(this.cbxPortTrigger);
     this.gbTemplateParams.Controls.Add(this.cbxStationTrigger);
     this.gbTemplateParams.Controls.Add(this.butApply);
     this.gbTemplateParams.Controls.Add(this.lblTriggerTool);
     this.gbTemplateParams.Controls.Add(this.lblSeriesTree);
     this.gbTemplateParams.Controls.Add(this.trvTemplate);
     this.gbTemplateParams.Location = new System.Drawing.Point(196, 12);
     this.gbTemplateParams.Name     = "gbTemplateParams";
     this.gbTemplateParams.Size     = new System.Drawing.Size(337, 253);
     this.gbTemplateParams.TabIndex = 7;
     this.gbTemplateParams.TabStop  = false;
     this.gbTemplateParams.Text     = "Template Parameters";
     //
     //butCancel
     //
     this.butCancel.Location = new System.Drawing.Point(256, 224);
     this.butCancel.Name     = "butCancel";
     this.butCancel.Size     = new System.Drawing.Size(75, 23);
     this.butCancel.TabIndex = 15;
     this.butCancel.Text     = "Cancel";
     this.butCancel.UseVisualStyleBackColor = true;
     //
     //lblTriggerType
     //
     this.lblTriggerType.AutoSize = true;
     this.lblTriggerType.Location = new System.Drawing.Point(187, 45);
     this.lblTriggerType.Name     = "lblTriggerType";
     this.lblTriggerType.Size     = new System.Drawing.Size(57, 13);
     this.lblTriggerType.TabIndex = 14;
     this.lblTriggerType.Text     = "NO_TYPE";
     //
     //lblPort
     //
     this.lblPort.AutoSize = true;
     this.lblPort.Location = new System.Drawing.Point(188, 121);
     this.lblPort.Name     = "lblPort";
     this.lblPort.Size     = new System.Drawing.Size(26, 13);
     this.lblPort.TabIndex = 13;
     this.lblPort.Text     = "Port";
     //
     //lblStation
     //
     this.lblStation.AutoSize = true;
     this.lblStation.Location = new System.Drawing.Point(188, 70);
     this.lblStation.Name     = "lblStation";
     this.lblStation.Size     = new System.Drawing.Size(40, 13);
     this.lblStation.TabIndex = 12;
     this.lblStation.Text     = "Station";
     //
     //cbxPortTrigger
     //
     this.cbxPortTrigger.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbxPortTrigger.FormattingEnabled = true;
     this.cbxPortTrigger.Items.AddRange(new object[] { "1", "2", "3", "4" });
     this.cbxPortTrigger.Location = new System.Drawing.Point(191, 137);
     this.cbxPortTrigger.Name     = "cbxPortTrigger";
     this.cbxPortTrigger.Size     = new System.Drawing.Size(60, 21);
     this.cbxPortTrigger.TabIndex = 11;
     //
     //cbxStationTrigger
     //
     this.cbxStationTrigger.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbxStationTrigger.FormattingEnabled = true;
     this.cbxStationTrigger.Location          = new System.Drawing.Point(191, 86);
     this.cbxStationTrigger.Name     = "cbxStationTrigger";
     this.cbxStationTrigger.Size     = new System.Drawing.Size(140, 21);
     this.cbxStationTrigger.TabIndex = 10;
     //
     //butApply
     //
     this.butApply.Location = new System.Drawing.Point(256, 195);
     this.butApply.Name     = "butApply";
     this.butApply.Size     = new System.Drawing.Size(75, 23);
     this.butApply.TabIndex = 9;
     this.butApply.Text     = "Accept";
     this.butApply.UseVisualStyleBackColor = true;
     //
     //lblTriggerTool
     //
     this.lblTriggerTool.AutoSize = true;
     this.lblTriggerTool.Location = new System.Drawing.Point(188, 23);
     this.lblTriggerTool.Name     = "lblTriggerTool";
     this.lblTriggerTool.Size     = new System.Drawing.Size(40, 13);
     this.lblTriggerTool.TabIndex = 8;
     this.lblTriggerTool.Text     = "Trigger";
     //
     //lblSeriesTree
     //
     this.lblSeriesTree.AutoSize = true;
     this.lblSeriesTree.Location = new System.Drawing.Point(6, 23);
     this.lblSeriesTree.Name     = "lblSeriesTree";
     this.lblSeriesTree.Size     = new System.Drawing.Size(36, 13);
     this.lblSeriesTree.TabIndex = 7;
     this.lblSeriesTree.Text     = "Series";
     //
     //cmsTreeNodeEdit
     //
     this.cmsTreeNodeEdit.Name = "cmsTreeNodeEdit";
     this.cmsTreeNodeEdit.Size = new System.Drawing.Size(61, 4);
     //
     //frmTemplate
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF((float)(6.0F), (float)(13.0F));
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(545, 275);
     this.Controls.Add(this.lblTemplateList);
     this.Controls.Add(this.gbTemplateParams);
     this.Controls.Add(this.lbxTemplateList);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = (System.Drawing.Icon)(resources.GetObject("$this.Icon"));
     this.Name            = "frmTemplate";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Templates";
     this.gbTemplateParams.ResumeLayout(false);
     this.gbTemplateParams.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 43
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.Load += new System.EventHandler(this.Sessions_Load);
     System.ComponentModel.ComponentResourceManager resources =
         new System.ComponentModel.ComponentResourceManager(typeof(Sessions));
     this.lvSessions = new System.Windows.Forms.ListView();
     this.clmSesUsername = new System.Windows.Forms.ColumnHeader();
     this.clmSesActivity = new System.Windows.Forms.ColumnHeader();
     this.clmSesType = new System.Windows.Forms.ColumnHeader();
     this.cMenSession = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.cMenSessionRefresh = new System.Windows.Forms.ToolStripMenuItem();
     this.cMenSessionRefresh.Click += new System.EventHandler(this.cMenSessionRefresh_Click);
     this.cMenSessionLogOff = new System.Windows.Forms.ToolStripMenuItem();
     this.cMenSessionLogOff.Click += new System.EventHandler(this.cMenSessionLogOff_Click);
     this.cMenSession.SuspendLayout();
     this.SuspendLayout();
     //
     //lvSessions
     //
     this.lvSessions.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.lvSessions.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.lvSessions.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.clmSesUsername, this.clmSesActivity, this.clmSesType });
     this.lvSessions.ContextMenuStrip = this.cMenSession;
     this.lvSessions.FullRowSelect = true;
     this.lvSessions.GridLines = true;
     this.lvSessions.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvSessions.Location = new System.Drawing.Point(0, -1);
     this.lvSessions.MultiSelect = false;
     this.lvSessions.Name = "lvSessions";
     this.lvSessions.ShowGroups = false;
     this.lvSessions.Size = new System.Drawing.Size(242, 174);
     this.lvSessions.TabIndex = 0;
     this.lvSessions.UseCompatibleStateImageBehavior = false;
     this.lvSessions.View = System.Windows.Forms.View.Details;
     //
     //clmSesUsername
     //
     this.clmSesUsername.Text = Language.strColumnUsername;
     this.clmSesUsername.Width = 80;
     //
     //clmSesActivity
     //
     this.clmSesActivity.Text = Language.strActivity;
     //
     //clmSesType
     //
     this.clmSesType.Text = Language.strType;
     this.clmSesType.Width = 80;
     //
     //cMenSession
     //
     this.cMenSession.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cMenSessionRefresh, this.cMenSessionLogOff });
     this.cMenSession.Name = "cMenSession";
     this.cMenSession.Size = new System.Drawing.Size(124, 48);
     //
     //cMenSessionRefresh
     //
     this.cMenSessionRefresh.Image = global::My.Resources.Resources.Refresh;
     this.cMenSessionRefresh.Name = "cMenSessionRefresh";
     this.cMenSessionRefresh.Size = new System.Drawing.Size(123, 22);
     this.cMenSessionRefresh.Text = Language.strRefresh;
     //
     //cMenSessionLogOff
     //
     this.cMenSessionLogOff.Image = global::My.Resources.Resources.Session_LogOff;
     this.cMenSessionLogOff.Name = "cMenSessionLogOff";
     this.cMenSessionLogOff.Size = new System.Drawing.Size(123, 22);
     this.cMenSessionLogOff.Text = Language.strLogOff;
     //
     //Sessions
     //
     this.ClientSize = new System.Drawing.Size(242, 173);
     this.Controls.Add(this.lvSessions);
     this.HideOnClose = true;
     this.Icon = (System.Drawing.Icon)(resources.GetObject("$this.Icon"));
     this.Name = "Sessions";
     this.TabText = Language.strMenuSessions;
     this.Text = Language.strMenuSessions;
     this.cMenSession.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 44
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();
     this.Size = new System.Drawing.Size(300, 300);
     this.Text = "frmMain";
 }
Esempio n. 45
0
 //NOTE: The following procedure is required by the Windows Form Designer
 //It can be modified using the Windows Form Designer.
 //Do not modify it using the code editor.
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     components         = new System.ComponentModel.Container();
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 }
Esempio n. 46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
 }
Esempio n. 47
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            Load      += new EventHandler(Help_Load);
            Shown     += new EventHandler(Help_Shown);
            TreeNode TreeNode1  = new TreeNode("Introduction");
            TreeNode TreeNode2  = new TreeNode("Prerequisites");
            TreeNode TreeNode3  = new TreeNode("Installation");
            TreeNode TreeNode4  = new TreeNode("Configuration");
            TreeNode TreeNode5  = new TreeNode("SQL Configuration");
            TreeNode TreeNode6  = new TreeNode("Command-Line Switches");
            TreeNode TreeNode7  = new TreeNode("Getting Started", new TreeNode[] { TreeNode2, TreeNode3, TreeNode4, TreeNode5, TreeNode6 });
            TreeNode TreeNode8  = new TreeNode("Main Menu");
            TreeNode TreeNode9  = new TreeNode("Connections");
            TreeNode TreeNode10 = new TreeNode("Config");
            TreeNode TreeNode11 = new TreeNode("Errors and Infos");
            TreeNode TreeNode12 = new TreeNode("Save As / Export");
            TreeNode TreeNode14 = new TreeNode("Screenshot Manager");
            TreeNode TreeNode15 = new TreeNode("Connection");
            TreeNode TreeNode16 = new TreeNode("Options");
            TreeNode TreeNode17 = new TreeNode("Update");
            TreeNode TreeNode18 = new TreeNode("SSH File Transfer");
            TreeNode TreeNode19 = new TreeNode("Quick Connect");
            TreeNode TreeNode20 = new TreeNode("Import From Active Directory");
            TreeNode TreeNode21 = new TreeNode("External Applications");
            TreeNode TreeNode22 = new TreeNode("Port Scan");
            TreeNode TreeNode23 = new TreeNode("User Interface", new TreeNode[] { TreeNode8, TreeNode9, TreeNode10, TreeNode11, TreeNode12, TreeNode14, TreeNode15, TreeNode16, TreeNode17, TreeNode18, TreeNode19, TreeNode20, TreeNode21, TreeNode22 });
            TreeNode TreeNode24 = new TreeNode("Quick Reference");
            TreeNode TreeNode25 = new TreeNode("Help", new TreeNode[] { TreeNode1, TreeNode7, TreeNode23, TreeNode24 });

            wbHelp = new WebBrowser();
            wbHelp.DocumentTitleChanged += new EventHandler(wbHelp_DocumentTitleChanged);
            tvIndex = new TreeView();
            tvIndex.NodeMouseClick += new TreeNodeMouseClickEventHandler(tvIndex_NodeMouseClick);
            tvIndex.AfterSelect    += new TreeViewEventHandler(tvIndex_AfterSelect);
            imgListHelp             = new ImageList(components);
            pnlSplitter             = new SplitContainer();
            lblDocName              = new Label();
            pnlSplitter.Panel1.SuspendLayout();
            pnlSplitter.Panel2.SuspendLayout();
            pnlSplitter.SuspendLayout();
            SuspendLayout();
            //
            //wbHelp
            //
            wbHelp.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                             | AnchorStyles.Left)
                            | AnchorStyles.Right;
            wbHelp.Location               = new System.Drawing.Point(1, 36);
            wbHelp.MinimumSize            = new System.Drawing.Size(20, 20);
            wbHelp.Name                   = "wbHelp";
            wbHelp.ScriptErrorsSuppressed = true;
            wbHelp.Size                   = new System.Drawing.Size(327, 286);
            wbHelp.TabIndex               = 1;
            //
            //tvIndex
            //
            tvIndex.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                              | AnchorStyles.Left)
                             | AnchorStyles.Right;
            tvIndex.BorderStyle   = BorderStyle.None;
            tvIndex.HideSelection = false;
            tvIndex.Location      = new System.Drawing.Point(1, 1);
            tvIndex.Name          = "tvIndex";
            TreeNode1.Name        = "Node0";
            TreeNode1.Tag         = "Introduction";
            TreeNode1.Text        = "Introduction";
            TreeNode2.Name        = "Node0";
            TreeNode2.Tag         = "Prerequisites";
            TreeNode2.Text        = "Prerequisites";
            TreeNode3.Name        = "Node3";
            TreeNode3.Tag         = "Installation";
            TreeNode3.Text        = "Installation";
            TreeNode4.Name        = "Node4";
            TreeNode4.Tag         = "Configuration";
            TreeNode4.Text        = "Configuration";
            TreeNode5.Name        = "Node0";
            TreeNode5.Tag         = "ConfigurationSQL";
            TreeNode5.Text        = "SQL Configuration";
            TreeNode6.Name        = "Node5";
            TreeNode6.Tag         = "CMDSwitches";
            TreeNode6.Text        = "Command-Line Switches";
            TreeNode7.Name        = "Node1";
            TreeNode7.Text        = "Getting Started";
            TreeNode8.Name        = "Node7";
            TreeNode8.Tag         = "MainMenu";
            TreeNode8.Text        = "Main Menu";
            TreeNode9.Name        = "Node8";
            TreeNode9.Tag         = "Connections";
            TreeNode9.Text        = "Connections";
            TreeNode10.Name       = "Node9";
            TreeNode10.Tag        = "Config";
            TreeNode10.Text       = "Config";
            TreeNode11.Name       = "Node10";
            TreeNode11.Tag        = "ErrorsAndInfos";
            TreeNode11.Text       = "Errors and Infos";
            TreeNode12.Name       = "Node11";
            TreeNode12.Tag        = "SaveAsExport";
            TreeNode12.Text       = "Save As / Export";
            TreeNode14.Name       = "Node13";
            TreeNode14.Tag        = "ScreenshotManager";
            TreeNode14.Text       = "Screenshot Manager";
            TreeNode15.Name       = "Node14";
            TreeNode15.Tag        = "Connection";
            TreeNode15.Text       = "Connection";
            TreeNode16.Name       = "Node15";
            TreeNode16.Tag        = "Options";
            TreeNode16.Text       = "Options";
            TreeNode17.Name       = "Node16";
            TreeNode17.Tag        = "Update";
            TreeNode17.Text       = "Update";
            TreeNode18.Name       = "Node17";
            TreeNode18.Tag        = "SSHFileTransfer";
            TreeNode18.Text       = "SSH File Transfer";
            TreeNode19.Name       = "Node18";
            TreeNode19.Tag        = "QuickConnect";
            TreeNode19.Text       = "Quick Connect";
            TreeNode20.Name       = "Node19";
            TreeNode20.Tag        = "ImportFromAD";
            TreeNode20.Text       = "Import From Active Directory";
            TreeNode21.Name       = "Node1";
            TreeNode21.Tag        = "ExternalTools";
            TreeNode21.Text       = "External Tools";
            TreeNode22.Name       = "Node0";
            TreeNode22.Tag        = "PortScan";
            TreeNode22.Text       = "Port Scan";
            TreeNode23.Name       = "Node6";
            TreeNode23.Text       = "User Interface";
            TreeNode24.Name       = "Node20";
            TreeNode24.Tag        = "QuickReference";
            TreeNode24.Text       = "Quick Reference";
            TreeNode25.Name       = "Node0";
            TreeNode25.Text       = "Help";
            TreeNode25.Tag        = "Index";
            tvIndex.Nodes.AddRange(new TreeNode[] { TreeNode25 });
            tvIndex.ShowRootLines = false;
            tvIndex.Size          = new System.Drawing.Size(207, 321);
            tvIndex.TabIndex      = 0;
            //
            //imgListHelp
            //
            imgListHelp.ColorDepth       = ColorDepth.Depth32Bit;
            imgListHelp.ImageSize        = new System.Drawing.Size(16, 16);
            imgListHelp.TransparentColor = System.Drawing.Color.Transparent;
            //
            //pnlSplitter
            //
            pnlSplitter.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                                  | AnchorStyles.Left)
                                 | AnchorStyles.Right;
            pnlSplitter.FixedPanel = FixedPanel.Panel1;
            pnlSplitter.Location   = new System.Drawing.Point(0, 0);
            pnlSplitter.Name       = "pnlSplitter";
            //
            //pnlSplitter.Panel1
            //
            pnlSplitter.Panel1.Controls.Add(tvIndex);
            //
            //pnlSplitter.Panel2
            //
            pnlSplitter.Panel2.Controls.Add(lblDocName);
            pnlSplitter.Panel2.Controls.Add(wbHelp);
            pnlSplitter.Size             = new System.Drawing.Size(542, 323);
            pnlSplitter.SplitterDistance = 209;
            pnlSplitter.TabIndex         = 2;
            //
            //lblDocName
            //
            lblDocName.Anchor = (AnchorStyles.Top | AnchorStyles.Left)
                                | AnchorStyles.Right;
            lblDocName.BackColor = System.Drawing.Color.DimGray;
            lblDocName.Font      = new System.Drawing.Font("Segoe UI", 12.0F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
            lblDocName.ForeColor = System.Drawing.Color.White;
            lblDocName.Location  = new System.Drawing.Point(1, 1);
            lblDocName.Name      = "lblDocName";
            lblDocName.Size      = new System.Drawing.Size(327, 35);
            lblDocName.TabIndex  = 2;
            lblDocName.Text      = "Introduction";
            lblDocName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            //Help
            //
            ClientSize = new System.Drawing.Size(542, 323);
            Controls.Add(pnlSplitter);
            Icon    = Resources.Help_Icon;
            Name    = "Help";
            TabText = "Help";
            Text    = "Help";
            pnlSplitter.Panel1.ResumeLayout(false);
            pnlSplitter.Panel2.ResumeLayout(false);
            pnlSplitter.ResumeLayout(false);
            ResumeLayout(false);
        }
Esempio n. 48
0
        public ServerNotifyIcon(ILogManager logManager, 
            IServerApplicationHost appHost, 
            IServerConfigurationManager configurationManager,
            ILocalizationManager localization)
        {
            _logger = logManager.GetLogger("MainWindow");
            _localization = localization;
            _appHost = appHost;
            _configurationManager = configurationManager;
            
            var components = new System.ComponentModel.Container();
            
            var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            contextMenuStrip1 = new ContextMenuStrip(components);
            notifyIcon1 = new NotifyIcon(components);
            
            cmdExit = new ToolStripMenuItem();
            cmdCommunity = new ToolStripMenuItem();
            toolStripSeparator1 = new ToolStripSeparator();
            cmdRestart = new ToolStripMenuItem();
            toolStripSeparator2 = new ToolStripSeparator();
            cmdConfigure = new ToolStripMenuItem();
            cmdBrowse = new ToolStripMenuItem();
            cmdApiDocs = new ToolStripMenuItem();
            cmdSwagger = new ToolStripMenuItem();
            cmdGtihub = new ToolStripMenuItem();
            
            // 
            // notifyIcon1
            // 
            notifyIcon1.ContextMenuStrip = contextMenuStrip1;
            notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            notifyIcon1.Text = "Emby";
            notifyIcon1.Visible = true;
            // 
            // contextMenuStrip1
            // 
            contextMenuStrip1.Items.AddRange(new ToolStripItem[] {
            cmdBrowse,
            cmdConfigure,
            toolStripSeparator2,
            cmdRestart,
            toolStripSeparator1,
            cmdApiDocs,
            cmdCommunity,
            cmdExit});
            contextMenuStrip1.Name = "contextMenuStrip1";
            contextMenuStrip1.ShowCheckMargin = true;
            contextMenuStrip1.ShowImageMargin = false;
            contextMenuStrip1.Size = new System.Drawing.Size(209, 214);
            // 
            // cmdExit
            // 
            cmdExit.Name = "cmdExit";
            cmdExit.Size = new System.Drawing.Size(208, 22);
            // 
            // cmdCommunity
            // 
            cmdCommunity.Name = "cmdCommunity";
            cmdCommunity.Size = new System.Drawing.Size(208, 22);
            // 
            // toolStripSeparator1
            // 
            toolStripSeparator1.Name = "toolStripSeparator1";
            toolStripSeparator1.Size = new System.Drawing.Size(205, 6);
            // 
            // cmdRestart
            // 
            cmdRestart.Name = "cmdRestart";
            cmdRestart.Size = new System.Drawing.Size(208, 22);
            // 
            // toolStripSeparator2
            // 
            toolStripSeparator2.Name = "toolStripSeparator2";
            toolStripSeparator2.Size = new System.Drawing.Size(205, 6);
            // 
            // cmdConfigure
            // 
            cmdConfigure.Name = "cmdConfigure";
            cmdConfigure.Size = new System.Drawing.Size(208, 22);
            // 
            // cmdBrowse
            // 
            cmdBrowse.Name = "cmdBrowse";
            cmdBrowse.Size = new System.Drawing.Size(208, 22);
            // 
            // cmdApiDocs
            // 
            cmdApiDocs.DropDownItems.AddRange(new ToolStripItem[] {
            cmdSwagger,
            cmdGtihub});
            cmdApiDocs.Name = "cmdApiDocs";
            cmdApiDocs.Size = new System.Drawing.Size(208, 22);
            // 
            // cmdSwagger
            // 
            cmdSwagger.Name = "cmdSwagger";
            cmdSwagger.Size = new System.Drawing.Size(136, 22);
            // 
            // cmdGtihub
            // 
            cmdGtihub.Name = "cmdGtihub";
            cmdGtihub.Size = new System.Drawing.Size(136, 22);

            cmdExit.Click += cmdExit_Click;
            cmdRestart.Click += cmdRestart_Click;
            cmdConfigure.Click += cmdConfigure_Click;
            cmdCommunity.Click += cmdCommunity_Click;
            cmdBrowse.Click += cmdBrowse_Click;

            cmdSwagger.Click += cmdSwagger_Click;
            cmdGtihub.Click += cmdGtihub_Click;

            _configurationManager.ConfigurationUpdated += Instance_ConfigurationUpdated;

            LocalizeText();

            if (_appHost.IsFirstRun)
            {
                Action action = () => notifyIcon1.ShowBalloonTip(5000, "Emby", "Welcome to Emby Server!", ToolTipIcon.Info);

                contextMenuStrip1.Invoke(action);
            }

            notifyIcon1.DoubleClick += notifyIcon1_DoubleClick;
        }
Esempio n. 49
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load      += new System.EventHandler(frmFoodCost_Load);
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmFoodCost));
     this.ImageList1                = new System.Windows.Forms.ImageList(this.components);
     this.Button1                   = new System.Windows.Forms.Button();
     this.Button1.Click            += new System.EventHandler(this.Button1_Click);
     this.Button2                   = new System.Windows.Forms.Button();
     this.Button2.Click            += new System.EventHandler(this.Button2_Click);
     this.TreeView1                 = new System.Windows.Forms.TreeView();
     this.TreeView1.ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this.TreeView1_ItemDrag);
     this.TreeView1.DoubleClick    += new System.EventHandler(this.TreeView1_DoubleClick);
     this.dgFoodCostList            = new System.Windows.Forms.DataGrid();
     this.dgFoodCostList.DragEnter += new System.Windows.Forms.DragEventHandler(this.DataGrid1_DragEnter);
     this.dgFoodCostList.DragDrop  += new System.Windows.Forms.DragEventHandler(this.DataGrid1_DragDrop);
     this.DataGridTableStyle1       = new System.Windows.Forms.DataGridTableStyle();
     this.DataGridTextBoxColumn1    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn2    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn3    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn4    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn5    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn6    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Label1         = new System.Windows.Forms.Label();
     this.Button4        = new System.Windows.Forms.Button();
     this.Label8         = new System.Windows.Forms.Label();
     this.Button5        = new System.Windows.Forms.Button();
     this.Button5.Click += new System.EventHandler(this.Button5_Click);
     this.GroupBox1      = new System.Windows.Forms.GroupBox();
     this.Button3        = new System.Windows.Forms.Button();
     this.TextBox3       = new System.Windows.Forms.TextBox();
     this.TextBox2       = new System.Windows.Forms.TextBox();
     this.NumericUpDown3 = new System.Windows.Forms.NumericUpDown();
     this.NumericUpDown2 = new System.Windows.Forms.NumericUpDown();
     this.TextBox1       = new System.Windows.Forms.TextBox();
     this.NumericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.Label7         = new System.Windows.Forms.Label();
     this.Label6         = new System.Windows.Forms.Label();
     this.Label5         = new System.Windows.Forms.Label();
     this.Label4         = new System.Windows.Forms.Label();
     this.Label3         = new System.Windows.Forms.Label();
     this.Label2         = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize) this.dgFoodCostList).BeginInit();
     this.GroupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown3).BeginInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown2).BeginInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown1).BeginInit();
     this.SuspendLayout();
     //
     //ImageList1
     //
     this.ImageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImageList1.ImageStream      = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     //Button1
     //
     this.Button1.Location = new System.Drawing.Point(320, 392);
     this.Button1.Name     = "Button1";
     this.Button1.TabIndex = 4;
     this.Button1.Text     = "删除(&D)";
     //
     //Button2
     //
     this.Button2.Location = new System.Drawing.Point(400, 392);
     this.Button2.Name     = "Button2";
     this.Button2.TabIndex = 5;
     this.Button2.Text     = "清空(&L)";
     //
     //TreeView1
     //
     this.TreeView1.HideSelection      = false;
     this.TreeView1.ImageList          = this.ImageList1;
     this.TreeView1.Location           = new System.Drawing.Point(8, 8);
     this.TreeView1.Name               = "TreeView1";
     this.TreeView1.SelectedImageIndex = 1;
     this.TreeView1.Size               = new System.Drawing.Size(208, 372);
     this.TreeView1.TabIndex           = 0;
     //
     //dgFoodCostList
     //
     this.dgFoodCostList.AllowDrop            = true;
     this.dgFoodCostList.AlternatingBackColor = System.Drawing.Color.GhostWhite;
     this.dgFoodCostList.BackColor            = System.Drawing.Color.GhostWhite;
     this.dgFoodCostList.BackgroundColor      = System.Drawing.Color.Lavender;
     this.dgFoodCostList.CaptionBackColor     = System.Drawing.Color.RoyalBlue;
     this.dgFoodCostList.CaptionForeColor     = System.Drawing.Color.White;
     this.dgFoodCostList.CaptionVisible       = false;
     this.dgFoodCostList.DataMember           = "";
     this.dgFoodCostList.FlatMode             = true;
     this.dgFoodCostList.Font                = new System.Drawing.Font("Tahoma", 8.0F);
     this.dgFoodCostList.ForeColor           = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.GridLineColor       = System.Drawing.Color.RoyalBlue;
     this.dgFoodCostList.HeaderBackColor     = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.HeaderFont          = new System.Drawing.Font("Tahoma", 8.0F, System.Drawing.FontStyle.Bold);
     this.dgFoodCostList.HeaderForeColor     = System.Drawing.Color.Lavender;
     this.dgFoodCostList.LinkColor           = System.Drawing.Color.Teal;
     this.dgFoodCostList.Location            = new System.Drawing.Point(224, 255);
     this.dgFoodCostList.Name                = "dgFoodCostList";
     this.dgFoodCostList.ParentRowsBackColor = System.Drawing.Color.Lavender;
     this.dgFoodCostList.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dgFoodCostList.ReadOnly            = true;
     this.dgFoodCostList.SelectionBackColor  = System.Drawing.Color.Teal;
     this.dgFoodCostList.SelectionForeColor  = System.Drawing.Color.PaleGreen;
     this.dgFoodCostList.Size                = new System.Drawing.Size(351, 125);
     this.dgFoodCostList.TabIndex            = 2;
     this.dgFoodCostList.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this.DataGridTableStyle1 });
     //
     //DataGridTableStyle1
     //
     this.DataGridTableStyle1.DataGrid = this.dgFoodCostList;
     this.DataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this.DataGridTextBoxColumn1, this.DataGridTextBoxColumn2, this.DataGridTextBoxColumn3, this.DataGridTextBoxColumn4, this.DataGridTextBoxColumn5, this.DataGridTextBoxColumn6 });
     this.DataGridTableStyle1.HeaderFont      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.DataGridTableStyle1.MappingName     = "FoodCostList";
     //
     //DataGridTextBoxColumn1
     //
     this.DataGridTextBoxColumn1.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn1.Format      = "";
     this.DataGridTextBoxColumn1.FormatInfo  = null;
     this.DataGridTextBoxColumn1.HeaderText  = "原料编码";
     this.DataGridTextBoxColumn1.MappingName = "materialcode";
     this.DataGridTextBoxColumn1.Width       = 75;
     //
     //DataGridTextBoxColumn2
     //
     this.DataGridTextBoxColumn2.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn2.Format      = "";
     this.DataGridTextBoxColumn2.FormatInfo  = null;
     this.DataGridTextBoxColumn2.HeaderText  = "名称";
     this.DataGridTextBoxColumn2.MappingName = "materialname";
     this.DataGridTextBoxColumn2.Width       = 80;
     //
     //DataGridTextBoxColumn3
     //
     this.DataGridTextBoxColumn3.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn3.Format      = "";
     this.DataGridTextBoxColumn3.FormatInfo  = null;
     this.DataGridTextBoxColumn3.HeaderText  = "组成类别";
     this.DataGridTextBoxColumn3.MappingName = "type";
     this.DataGridTextBoxColumn3.Width       = 60;
     //
     //DataGridTextBoxColumn4
     //
     this.DataGridTextBoxColumn4.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn4.Format      = "";
     this.DataGridTextBoxColumn4.FormatInfo  = null;
     this.DataGridTextBoxColumn4.HeaderText  = "单位";
     this.DataGridTextBoxColumn4.MappingName = "unit";
     this.DataGridTextBoxColumn4.Width       = 60;
     //
     //DataGridTextBoxColumn5
     //
     this.DataGridTextBoxColumn5.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn5.Format      = "";
     this.DataGridTextBoxColumn5.FormatInfo  = null;
     this.DataGridTextBoxColumn5.HeaderText  = "数量";
     this.DataGridTextBoxColumn5.MappingName = "quantity";
     this.DataGridTextBoxColumn5.Width       = 65;
     //
     //DataGridTextBoxColumn6
     //
     this.DataGridTextBoxColumn6.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn6.Format      = "";
     this.DataGridTextBoxColumn6.FormatInfo  = null;
     this.DataGridTextBoxColumn6.HeaderText  = "损耗率";
     this.DataGridTextBoxColumn6.MappingName = "lossability";
     this.DataGridTextBoxColumn6.Width       = 65;
     //
     //Label1
     //
     this.Label1.Font      = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Label1.ForeColor = System.Drawing.Color.Navy;
     this.Label1.Location  = new System.Drawing.Point(224, 8);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(351, 23);
     this.Label1.TabIndex  = 7;
     //
     //Button4
     //
     this.Button4.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.Button4.Location     = new System.Drawing.Point(480, 392);
     this.Button4.Name         = "Button4";
     this.Button4.TabIndex     = 6;
     this.Button4.Text         = "关闭(&C)";
     //
     //Label8
     //
     this.Label8.Location  = new System.Drawing.Point(224, 232);
     this.Label8.Name      = "Label8";
     this.Label8.TabIndex  = 8;
     this.Label8.Text      = "原料组成:";
     this.Label8.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     //Button5
     //
     this.Button5.Location = new System.Drawing.Point(240, 392);
     this.Button5.Name     = "Button5";
     this.Button5.TabIndex = 3;
     this.Button5.Text     = "添加(&A)";
     //
     //GroupBox1
     //
     this.GroupBox1.Controls.Add(this.Button3);
     this.GroupBox1.Controls.Add(this.TextBox3);
     this.GroupBox1.Controls.Add(this.TextBox2);
     this.GroupBox1.Controls.Add(this.NumericUpDown3);
     this.GroupBox1.Controls.Add(this.NumericUpDown2);
     this.GroupBox1.Controls.Add(this.TextBox1);
     this.GroupBox1.Controls.Add(this.NumericUpDown1);
     this.GroupBox1.Controls.Add(this.Label7);
     this.GroupBox1.Controls.Add(this.Label6);
     this.GroupBox1.Controls.Add(this.Label5);
     this.GroupBox1.Controls.Add(this.Label4);
     this.GroupBox1.Controls.Add(this.Label3);
     this.GroupBox1.Controls.Add(this.Label2);
     this.GroupBox1.Location = new System.Drawing.Point(224, 32);
     this.GroupBox1.Name     = "GroupBox1";
     this.GroupBox1.Size     = new System.Drawing.Size(352, 200);
     this.GroupBox1.TabIndex = 1;
     this.GroupBox1.TabStop  = false;
     this.GroupBox1.Text     = "菜品成本一般信息";
     //
     //Button3
     //
     this.Button3.Location = new System.Drawing.Point(232, 170);
     this.Button3.Name     = "Button3";
     this.Button3.Size     = new System.Drawing.Size(96, 23);
     this.Button3.TabIndex = 6;
     this.Button3.Text     = "保存信息(&S)";
     //
     //TextBox3
     //
     this.TextBox3.Location   = new System.Drawing.Point(104, 115);
     this.TextBox3.Multiline  = true;
     this.TextBox3.Name       = "TextBox3";
     this.TextBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.TextBox3.Size       = new System.Drawing.Size(240, 48);
     this.TextBox3.TabIndex   = 5;
     this.TextBox3.Text       = "";
     //
     //TextBox2
     //
     this.TextBox2.Location   = new System.Drawing.Point(104, 64);
     this.TextBox2.Multiline  = true;
     this.TextBox2.Name       = "TextBox2";
     this.TextBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.TextBox2.Size       = new System.Drawing.Size(240, 48);
     this.TextBox2.TabIndex   = 4;
     this.TextBox2.Text       = "";
     //
     //NumericUpDown3
     //
     this.NumericUpDown3.Location  = new System.Drawing.Point(264, 40);
     this.NumericUpDown3.Name      = "NumericUpDown3";
     this.NumericUpDown3.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown3.TabIndex  = 3;
     this.NumericUpDown3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //NumericUpDown2
     //
     this.NumericUpDown2.Location  = new System.Drawing.Point(104, 40);
     this.NumericUpDown2.Name      = "NumericUpDown2";
     this.NumericUpDown2.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown2.TabIndex  = 2;
     this.NumericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //TextBox1
     //
     this.TextBox1.Location = new System.Drawing.Point(264, 16);
     this.TextBox1.Name     = "TextBox1";
     this.TextBox1.Size     = new System.Drawing.Size(80, 21);
     this.TextBox1.TabIndex = 1;
     this.TextBox1.Text     = "";
     //
     //NumericUpDown1
     //
     this.NumericUpDown1.Location  = new System.Drawing.Point(104, 16);
     this.NumericUpDown1.Name      = "NumericUpDown1";
     this.NumericUpDown1.Size      = new System.Drawing.Size(80, 21);
     this.NumericUpDown1.TabIndex  = 0;
     this.NumericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     //Label7
     //
     this.Label7.Location  = new System.Drawing.Point(16, 115);
     this.Label7.Name      = "Label7";
     this.Label7.Size      = new System.Drawing.Size(88, 23);
     this.Label7.TabIndex  = 12;
     this.Label7.Text      = "特点及标准:";
     this.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label6
     //
     this.Label6.Location  = new System.Drawing.Point(32, 64);
     this.Label6.Name      = "Label6";
     this.Label6.Size      = new System.Drawing.Size(72, 23);
     this.Label6.TabIndex  = 11;
     this.Label6.Text      = "加工方法:";
     this.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label5
     //
     this.Label5.Location  = new System.Drawing.Point(192, 40);
     this.Label5.Name      = "Label5";
     this.Label5.Size      = new System.Drawing.Size(72, 23);
     this.Label5.TabIndex  = 10;
     this.Label5.Text      = "其它费用:";
     this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label4
     //
     this.Label4.Location  = new System.Drawing.Point(32, 40);
     this.Label4.Name      = "Label4";
     this.Label4.Size      = new System.Drawing.Size(72, 23);
     this.Label4.TabIndex  = 9;
     this.Label4.Text      = "燃料费:";
     this.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label3
     //
     this.Label3.Location  = new System.Drawing.Point(192, 16);
     this.Label3.Name      = "Label3";
     this.Label3.Size      = new System.Drawing.Size(72, 23);
     this.Label3.TabIndex  = 8;
     this.Label3.Text      = "规格:";
     this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label2
     //
     this.Label2.Location  = new System.Drawing.Point(32, 16);
     this.Label2.Name      = "Label2";
     this.Label2.Size      = new System.Drawing.Size(72, 23);
     this.Label2.TabIndex  = 7;
     this.Label2.Text      = "份量:";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     //frmFoodCost
     //
     this.AcceptButton      = this.Button4;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.CancelButton      = this.Button4;
     this.ClientSize        = new System.Drawing.Size(584, 428);
     this.Controls.Add(this.Button5);
     this.Controls.Add(this.Label8);
     this.Controls.Add(this.Button4);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.dgFoodCostList);
     this.Controls.Add(this.TreeView1);
     this.Controls.Add(this.Button2);
     this.Controls.Add(this.Button1);
     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            = "frmFoodCost";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "菜品成本卡";
     ((System.ComponentModel.ISupportInitialize) this.dgFoodCostList).EndInit();
     this.GroupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown3).EndInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown2).EndInit();
     ((System.ComponentModel.ISupportInitialize) this.NumericUpDown1).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 50
0
 //NOTE: The following procedure is required by the Windows Form Designer
 //It can be modified using the Windows Form Designer.
 //Do not modify it using the code editor.
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load      += new System.EventHandler(frm_MainDatabaseManagement_Load);
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frm_MainDatabaseManagement));
     this.btFoodCategory        = new System.Windows.Forms.Button();
     this.btFoodCategory.Click += new System.EventHandler(this.btFoodCategory_Click);
     this.ImageList2            = new System.Windows.Forms.ImageList(this.components);
     this.btFoodGroup           = new System.Windows.Forms.Button();
     this.btFoodGroup.Click    += new System.EventHandler(this.btFoodGroup_Click);
     this.btFood                = new System.Windows.Forms.Button();
     this.btFood.Click         += new System.EventHandler(this.btFood_Click);
     this.ImageList1            = new System.Windows.Forms.ImageList(this.components);
     this.btBoattype            = new System.Windows.Forms.Button();
     this.btBoattype.Click     += new System.EventHandler(this.btBoattype_Click);
     this.btBoat                = new System.Windows.Forms.Button();
     this.btBoat.Click         += new System.EventHandler(this.btBoat_Click);
     this.btEmployee            = new System.Windows.Forms.Button();
     this.btEmployee.Click     += new System.EventHandler(this.btEmployee_Click);
     this.btUnit                = new System.Windows.Forms.Button();
     this.btUnit.Click         += new System.EventHandler(this.btUnit_Click);
     this.btUser                = new System.Windows.Forms.Button();
     this.btUser.Click         += new System.EventHandler(this.btUser_Click);
     this.btRateExchange        = new System.Windows.Forms.Button();
     this.btRateExchange.Click += new System.EventHandler(this.btRateExchange_Click);
     this.Panel1                = new System.Windows.Forms.Panel();
     this.Label4                = new System.Windows.Forms.Label();
     this.Label3                = new System.Windows.Forms.Label();
     this.Label2                = new System.Windows.Forms.Label();
     this.Label1                = new System.Windows.Forms.Label();
     this.pnother               = new System.Windows.Forms.Panel();
     this.pnboat                = new System.Windows.Forms.Panel();
     this.pnemployee            = new System.Windows.Forms.Panel();
     this.pnfood                = new System.Windows.Forms.Panel();
     this.btexit                = new DevComponents.DotNetBar.ButtonX();
     this.Panel1.SuspendLayout();
     this.pnother.SuspendLayout();
     this.pnboat.SuspendLayout();
     this.pnemployee.SuspendLayout();
     this.pnfood.SuspendLayout();
     this.SuspendLayout();
     //
     //btFoodCategory
     //
     this.btFoodCategory.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btFoodCategory.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btFoodCategory.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btFoodCategory.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btFoodCategory.Font                    = new System.Drawing.Font("Saysettha OT", (float)(12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btFoodCategory.ForeColor               = System.Drawing.Color.White;
     this.btFoodCategory.ImageKey                = "Food-100 (1).png";
     this.btFoodCategory.ImageList               = this.ImageList2;
     this.btFoodCategory.Location                = new System.Drawing.Point(17, 125);
     this.btFoodCategory.Name                    = "btFoodCategory";
     this.btFoodCategory.Size                    = new System.Drawing.Size(162, 69);
     this.btFoodCategory.TabIndex                = 0;
     this.btFoodCategory.Text                    = "ປະເພດອາຫານ";
     this.btFoodCategory.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btFoodCategory.UseVisualStyleBackColor = false;
     //
     //ImageList2
     //
     this.ImageList2.ImageStream      = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList2.ImageStream"));
     this.ImageList2.TransparentColor = System.Drawing.Color.Transparent;
     this.ImageList2.Images.SetKeyName(0, "Conference-100.png");
     this.ImageList2.Images.SetKeyName(1, "Currency Exchange-100.png");
     this.ImageList2.Images.SetKeyName(2, "Food And Wine-100.png");
     this.ImageList2.Images.SetKeyName(3, "Food-100 (1).png");
     this.ImageList2.Images.SetKeyName(4, "Gondola-100.png");
     this.ImageList2.Images.SetKeyName(5, "Ingredients-100.png");
     this.ImageList2.Images.SetKeyName(6, "Permanent Job-100 (1).png");
     this.ImageList2.Images.SetKeyName(7, "Sail Boat-100.png");
     this.ImageList2.Images.SetKeyName(8, "Sailing Ship Large-100.png");
     this.ImageList2.Images.SetKeyName(9, "Scales-100.png");
     this.ImageList2.Images.SetKeyName(10, "User Shield-100.png");
     //
     //btFoodGroup
     //
     this.btFoodGroup.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btFoodGroup.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btFoodGroup.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btFoodGroup.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btFoodGroup.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btFoodGroup.ForeColor               = System.Drawing.Color.White;
     this.btFoodGroup.ImageKey                = "Ingredients-100.png";
     this.btFoodGroup.ImageList               = this.ImageList2;
     this.btFoodGroup.Location                = new System.Drawing.Point(17, 200);
     this.btFoodGroup.Name                    = "btFoodGroup";
     this.btFoodGroup.Size                    = new System.Drawing.Size(162, 69);
     this.btFoodGroup.TabIndex                = 0;
     this.btFoodGroup.Text                    = "ກຸ່ມອາຫານ";
     this.btFoodGroup.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btFoodGroup.UseVisualStyleBackColor = false;
     //
     //btFood
     //
     this.btFood.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btFood.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btFood.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btFood.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btFood.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btFood.ForeColor               = System.Drawing.Color.White;
     this.btFood.ImageKey                = "Food And Wine-100.png";
     this.btFood.ImageList               = this.ImageList2;
     this.btFood.Location                = new System.Drawing.Point(17, 50);
     this.btFood.Name                    = "btFood";
     this.btFood.Size                    = new System.Drawing.Size(162, 69);
     this.btFood.TabIndex                = 0;
     this.btFood.Text                    = "ອາຫານ";
     this.btFood.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btFood.UseVisualStyleBackColor = false;
     //
     //ImageList1
     //
     this.ImageList1.ImageStream      = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.ImageList1.Images.SetKeyName(0, "Check-100.png");
     this.ImageList1.Images.SetKeyName(1, "Delete-100 (2).png");
     this.ImageList1.Images.SetKeyName(2, "IMG-20161210-WA0004.jpg");
     this.ImageList1.Images.SetKeyName(3, "IMG-20161210-WA0006.jpg");
     this.ImageList1.Images.SetKeyName(4, "Key-100.png");
     this.ImageList1.Images.SetKeyName(5, "Password-100.png");
     this.ImageList1.Images.SetKeyName(6, "User Shield-100.png");
     //
     //btBoattype
     //
     this.btBoattype.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btBoattype.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btBoattype.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btBoattype.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btBoattype.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btBoattype.ForeColor               = System.Drawing.Color.White;
     this.btBoattype.ImageKey                = "Sailing Ship Large-100.png";
     this.btBoattype.ImageList               = this.ImageList2;
     this.btBoattype.Location                = new System.Drawing.Point(17, 162);
     this.btBoattype.Name                    = "btBoattype";
     this.btBoattype.Size                    = new System.Drawing.Size(162, 89);
     this.btBoattype.TabIndex                = 0;
     this.btBoattype.Text                    = "ປະເພດເຮືອ";
     this.btBoattype.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btBoattype.UseVisualStyleBackColor = false;
     //
     //btBoat
     //
     this.btBoat.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btBoat.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btBoat.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btBoat.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btBoat.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btBoat.ForeColor               = System.Drawing.Color.White;
     this.btBoat.ImageKey                = "Sail Boat-100.png";
     this.btBoat.ImageList               = this.ImageList2;
     this.btBoat.Location                = new System.Drawing.Point(17, 67);
     this.btBoat.Name                    = "btBoat";
     this.btBoat.Size                    = new System.Drawing.Size(162, 89);
     this.btBoat.TabIndex                = 0;
     this.btBoat.Text                    = "ເຮືອ";
     this.btBoat.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btBoat.UseVisualStyleBackColor = false;
     //
     //btEmployee
     //
     this.btEmployee.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btEmployee.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btEmployee.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btEmployee.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btEmployee.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btEmployee.ForeColor               = System.Drawing.Color.White;
     this.btEmployee.ImageKey                = "Permanent Job-100 (1).png";
     this.btEmployee.ImageList               = this.ImageList2;
     this.btEmployee.Location                = new System.Drawing.Point(17, 67);
     this.btEmployee.Name                    = "btEmployee";
     this.btEmployee.Size                    = new System.Drawing.Size(162, 89);
     this.btEmployee.TabIndex                = 0;
     this.btEmployee.Text                    = "ພະນັກງານ";
     this.btEmployee.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btEmployee.UseVisualStyleBackColor = false;
     //
     //btUnit
     //
     this.btUnit.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btUnit.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btUnit.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btUnit.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btUnit.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btUnit.ForeColor               = System.Drawing.Color.White;
     this.btUnit.ImageKey                = "Scales-100.png";
     this.btUnit.ImageList               = this.ImageList2;
     this.btUnit.Location                = new System.Drawing.Point(17, 162);
     this.btUnit.Name                    = "btUnit";
     this.btUnit.Size                    = new System.Drawing.Size(162, 89);
     this.btUnit.TabIndex                = 0;
     this.btUnit.Text                    = "ຫົວໜ່ວຍ";
     this.btUnit.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btUnit.UseVisualStyleBackColor = false;
     //
     //btUser
     //
     this.btUser.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btUser.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btUser.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btUser.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btUser.Font                    = new System.Drawing.Font("Saysettha OT", (float)(14.25F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btUser.ForeColor               = System.Drawing.Color.White;
     this.btUser.ImageKey                = "Conference-100.png";
     this.btUser.ImageList               = this.ImageList2;
     this.btUser.Location                = new System.Drawing.Point(17, 162);
     this.btUser.Name                    = "btUser";
     this.btUser.Size                    = new System.Drawing.Size(162, 89);
     this.btUser.TabIndex                = 0;
     this.btUser.Text                    = "ຜູ້ໃຊ້";
     this.btUser.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btUser.UseVisualStyleBackColor = false;
     //
     //btRateExchange
     //
     this.btRateExchange.Anchor                  = System.Windows.Forms.AnchorStyles.None;
     this.btRateExchange.BackColor               = System.Drawing.Color.DeepSkyBlue;
     this.btRateExchange.Cursor                  = System.Windows.Forms.Cursors.Hand;
     this.btRateExchange.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btRateExchange.Font                    = new System.Drawing.Font("Saysettha OT", (float)(12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btRateExchange.ForeColor               = System.Drawing.Color.White;
     this.btRateExchange.ImageKey                = "Currency Exchange-100.png";
     this.btRateExchange.ImageList               = this.ImageList2;
     this.btRateExchange.Location                = new System.Drawing.Point(17, 67);
     this.btRateExchange.Name                    = "btRateExchange";
     this.btRateExchange.Size                    = new System.Drawing.Size(162, 89);
     this.btRateExchange.TabIndex                = 0;
     this.btRateExchange.Text                    = "ອັດຕາແລກປ່ຽນ";
     this.btRateExchange.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btRateExchange.UseVisualStyleBackColor = false;
     //
     //Panel1
     //
     this.Panel1.Anchor    = System.Windows.Forms.AnchorStyles.Top;
     this.Panel1.BackColor = System.Drawing.Color.Transparent;
     this.Panel1.Controls.Add(this.Label4);
     this.Panel1.Controls.Add(this.Label3);
     this.Panel1.Controls.Add(this.Label2);
     this.Panel1.Controls.Add(this.Label1);
     this.Panel1.Controls.Add(this.pnother);
     this.Panel1.Controls.Add(this.pnboat);
     this.Panel1.Controls.Add(this.pnemployee);
     this.Panel1.Controls.Add(this.pnfood);
     this.Panel1.Location = new System.Drawing.Point(12, 52);
     this.Panel1.Name     = "Panel1";
     this.Panel1.Size     = new System.Drawing.Size(820, 412);
     this.Panel1.TabIndex = 1;
     //
     //Label4
     //
     this.Label4.Anchor     = System.Windows.Forms.AnchorStyles.None;
     this.Label4.BackColor  = System.Drawing.Color.DodgerBlue;
     this.Label4.Font       = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.Label4.ForeColor  = System.Drawing.Color.White;
     this.Label4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.Label4.ImageKey   = "User Shield-100.png";
     this.Label4.ImageList  = this.ImageList2;
     this.Label4.Location   = new System.Drawing.Point(617, 30);
     this.Label4.Name       = "Label4";
     this.Label4.Size       = new System.Drawing.Size(196, 36);
     this.Label4.TabIndex   = 7;
     this.Label4.Text       = "ຈັດການຂໍ້ມູນອື່ນໆ";
     this.Label4.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label3
     //
     this.Label3.Anchor     = System.Windows.Forms.AnchorStyles.None;
     this.Label3.BackColor  = System.Drawing.Color.DodgerBlue;
     this.Label3.Font       = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.Label3.ForeColor  = System.Drawing.Color.White;
     this.Label3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.Label3.ImageKey   = "Sailing Ship Large-100.png";
     this.Label3.ImageList  = this.ImageList2;
     this.Label3.Location   = new System.Drawing.Point(410, 30);
     this.Label3.Name       = "Label3";
     this.Label3.Size       = new System.Drawing.Size(196, 36);
     this.Label3.TabIndex   = 6;
     this.Label3.Text       = "ຈັດການຂໍ້ມູນເຮືອ";
     this.Label3.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label2
     //
     this.Label2.Anchor     = System.Windows.Forms.AnchorStyles.None;
     this.Label2.BackColor  = System.Drawing.Color.DodgerBlue;
     this.Label2.Font       = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.Label2.ForeColor  = System.Drawing.Color.White;
     this.Label2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.Label2.ImageIndex = 6;
     this.Label2.ImageList  = this.ImageList2;
     this.Label2.Location   = new System.Drawing.Point(208, 31);
     this.Label2.Name       = "Label2";
     this.Label2.Size       = new System.Drawing.Size(196, 36);
     this.Label2.TabIndex   = 5;
     this.Label2.Text       = "ຈັດການຂໍ້ມູນພະນັກງານ";
     this.Label2.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     //
     //Label1
     //
     this.Label1.Anchor     = System.Windows.Forms.AnchorStyles.None;
     this.Label1.BackColor  = System.Drawing.Color.DodgerBlue;
     this.Label1.Font       = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.Label1.ForeColor  = System.Drawing.Color.White;
     this.Label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.Label1.ImageKey   = "Ingredients-100.png";
     this.Label1.ImageList  = this.ImageList2;
     this.Label1.Location   = new System.Drawing.Point(3, 31);
     this.Label1.Name       = "Label1";
     this.Label1.Size       = new System.Drawing.Size(196, 36);
     this.Label1.TabIndex   = 4;
     this.Label1.Text       = "ຈັດການຂໍ້ມູນອາຫານ";
     this.Label1.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     //
     //pnother
     //
     this.pnother.BackColor = System.Drawing.Color.Cyan;
     this.pnother.Controls.Add(this.btRateExchange);
     this.pnother.Controls.Add(this.btUnit);
     this.pnother.Location = new System.Drawing.Point(617, 66);
     this.pnother.Name     = "pnother";
     this.pnother.Size     = new System.Drawing.Size(196, 318);
     this.pnother.TabIndex = 3;
     //
     //pnboat
     //
     this.pnboat.BackColor = System.Drawing.Color.Cyan;
     this.pnboat.Controls.Add(this.btBoattype);
     this.pnboat.Controls.Add(this.btBoat);
     this.pnboat.Location = new System.Drawing.Point(410, 66);
     this.pnboat.Name     = "pnboat";
     this.pnboat.Size     = new System.Drawing.Size(196, 318);
     this.pnboat.TabIndex = 2;
     //
     //pnemployee
     //
     this.pnemployee.BackColor = System.Drawing.Color.Cyan;
     this.pnemployee.Controls.Add(this.btUser);
     this.pnemployee.Controls.Add(this.btEmployee);
     this.pnemployee.Location = new System.Drawing.Point(208, 66);
     this.pnemployee.Name     = "pnemployee";
     this.pnemployee.Size     = new System.Drawing.Size(196, 318);
     this.pnemployee.TabIndex = 1;
     //
     //pnfood
     //
     this.pnfood.BackColor = System.Drawing.Color.Cyan;
     this.pnfood.Controls.Add(this.btFood);
     this.pnfood.Controls.Add(this.btFoodCategory);
     this.pnfood.Controls.Add(this.btFoodGroup);
     this.pnfood.Location = new System.Drawing.Point(3, 66);
     this.pnfood.Name     = "pnfood";
     this.pnfood.Size     = new System.Drawing.Size(196, 318);
     this.pnfood.TabIndex = 0;
     //
     //btexit
     //
     this.btexit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
     this.btexit.Anchor         = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
     this.btexit.ColorTable     = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
     this.btexit.Font           = new System.Drawing.Font("Saysettha OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.btexit.Location       = new System.Drawing.Point(756, 465);
     this.btexit.Name           = "btexit";
     this.btexit.Size           = new System.Drawing.Size(75, 33);
     this.btexit.Style          = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
     this.btexit.Symbol         = "";
     this.btexit.SymbolColor    = System.Drawing.Color.Red;
     this.btexit.TabIndex       = 2;
     this.btexit.Text           = "ອອກ"; // + System.Convert.ToString(global::Microsoft.VisualBasic.Strings.ChrW(13)) + System.Convert.ToString(global::Microsoft.VisualBasic.Strings.ChrW(10));
     //
     //frm_MainDatabaseManagement
     //
     this.AutoScaleDimensions   = new System.Drawing.SizeF((float)(12.0F), (float)(31.0F));
     this.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor             = System.Drawing.Color.CornflowerBlue;
     this.BackgroundImage       = Properties.Resources.IMG_20161210_WA0004;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.ClientSize            = new System.Drawing.Size(844, 502);
     this.Controls.Add(this.btexit);
     this.Controls.Add(this.Panel1);
     this.Font        = new System.Drawing.Font("Phetsarath OT", (float)(15.75F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.Icon        = (System.Drawing.Icon)(resources.GetObject("$this.Icon"));
     this.Margin      = new System.Windows.Forms.Padding(6, 7, 6, 7);
     this.Name        = "frm_MainDatabaseManagement";
     this.Text        = "frm_MainDatabaseManagement";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Panel1.ResumeLayout(false);
     this.pnother.ResumeLayout(false);
     this.pnboat.ResumeLayout(false);
     this.pnemployee.ResumeLayout(false);
     this.pnfood.ResumeLayout(false);
     this.ResumeLayout(false);
 }
			//NOTE: The following procedure is required by the Windows Form Designer
			//It can be modified using the Windows Form Designer.
			//Do not modify it using the code editor.
			[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
			{
				this.components = new System.ComponentModel.Container();
				System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SetupForm));
				this.SplitContainer1 = new System.Windows.Forms.SplitContainer();
				this.tvwName = new SoftLogik.Win.UI.DataTreeView();
				this.tvwName.AfterSelect += new TreeViewEventHandler(this.tvwName_AfterSelect);
				this.tbcMain = new SoftLogik.Win.UI.VisualTabControl(this.components);
				this.tabGeneral = new System.Windows.Forms.TabPage();
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).BeginInit();
				this.SplitContainer1.Panel1.SuspendLayout();
				this.SplitContainer1.Panel2.SuspendLayout();
				this.SplitContainer1.SuspendLayout();
				this.tbcMain.SuspendLayout();
				this.SuspendLayout();
				//
				//IconSource
				//
				this.IconSource.ImageStream = (System.Windows.Forms.ImageListStreamer) (resources.GetObject("IconSource.ImageStream"));
				this.IconSource.Images.SetKeyName(0, "DOC.png");
				//
				//SplitContainer1
				//
				this.SplitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
				this.SplitContainer1.Location = new System.Drawing.Point(0, 40);
				this.SplitContainer1.Name = "SplitContainer1";
				//
				//SplitContainer1.Panel1
				//
				this.SplitContainer1.Panel1.Controls.Add(this.tvwName);
				//
				//SplitContainer1.Panel2
				//
				this.SplitContainer1.Panel2.Controls.Add(this.tbcMain);
				this.SplitContainer1.Size = new System.Drawing.Size(778, 403);
				this.SplitContainer1.SplitterDistance = 257;
				this.SplitContainer1.TabIndex = 10;
				//
				//tvwName
				//
				this.tvwName.AutoBuildTree = true;
				this.tvwName.DataSource = null;
				this.tvwName.DisplayMember = null;
				this.tvwName.Dock = System.Windows.Forms.DockStyle.Fill;
				this.tvwName.HotTracking = true;
				this.tvwName.ImageIndex = 0;
				this.tvwName.ImageList = this.IconSource;
				this.tvwName.Location = new System.Drawing.Point(0, 0);
				this.tvwName.Name = "tvwName";
				this.tvwName.SelectedImageIndex = 0;
				this.tvwName.ShowRootLines = false;
				this.tvwName.Size = new System.Drawing.Size(257, 403);
				this.tvwName.TabIndex = 0;
				this.tvwName.ValueMember = null;
				//
				//tbcMain
				//
				this.tbcMain.Controls.Add(this.tabGeneral);
				this.tbcMain.Dock = System.Windows.Forms.DockStyle.Fill;
				this.tbcMain.ItemSize = new System.Drawing.Size(0, 15);
				this.tbcMain.Location = new System.Drawing.Point(0, 0);
				this.tbcMain.Name = "tbcMain";
				this.tbcMain.Padding = new System.Drawing.Point(9, 0);
				this.tbcMain.SelectedIndex = 0;
				this.tbcMain.Size = new System.Drawing.Size(517, 403);
				this.tbcMain.TabIndex = 0;
				//
				//tabGeneral
				//
				this.tabGeneral.CausesValidation = false;
				this.tabGeneral.Location = new System.Drawing.Point(4, 19);
				this.tabGeneral.Name = "tabGeneral";
				this.tabGeneral.Padding = new System.Windows.Forms.Padding(3);
				this.tabGeneral.Size = new System.Drawing.Size(509, 380);
				this.tabGeneral.TabIndex = 1;
				this.tabGeneral.Text = "General";
				this.tabGeneral.UseVisualStyleBackColor = true;
				//
				//SetupForm
				//
				this.AutoScaleDimensions = new System.Drawing.SizeF(6.0, 13.0);
				this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
				this.ClientSize = new System.Drawing.Size(778, 443);
				this.Controls.Add(this.SplitContainer1);
				this.Name = "SetupForm";
				this.Text = "SetupForm";
				this.Controls.SetChildIndex(this.SplitContainer1, 0);
				((System.ComponentModel.ISupportInitialize) this.ErrorNotify).EndInit();
				this.SplitContainer1.Panel1.ResumeLayout(false);
				this.SplitContainer1.Panel2.ResumeLayout(false);
				this.SplitContainer1.ResumeLayout(false);
				this.tbcMain.ResumeLayout(false);
				this.ResumeLayout(false);
				
			}
 //NOTE: The following procedure is required by the Windows Form Designer
 //It can be modified using the Windows Form Designer.
 //Do not modify it using the code editor.
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load      += new System.EventHandler(frm_FoodGroup_Load);
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frm_FoodGroup));
     System.Windows.Forms.DataGridViewCellStyle     DataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     DataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     DataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     this.TabControl1        = new System.Windows.Forms.TabControl();
     this.TabPage1           = new System.Windows.Forms.TabPage();
     this.btClear            = new System.Windows.Forms.Button();
     this.btClear.Click     += new System.EventHandler(this.btClear_Click);
     this.ImageList1         = new System.Windows.Forms.ImageList(this.components);
     this.btExit             = new System.Windows.Forms.Button();
     this.btExit.Click      += new System.EventHandler(this.btExit_Click);
     this.btDelete           = new System.Windows.Forms.Button();
     this.btDelete.Click    += new System.EventHandler(this.btDelete_Click);
     this.btEdit             = new System.Windows.Forms.Button();
     this.btEdit.Click      += new System.EventHandler(this.btEdit_Click);
     this.btSave             = new System.Windows.Forms.Button();
     this.btSave.Click      += new System.EventHandler(this.btSave_Click);
     this.GroupBox1          = new System.Windows.Forms.GroupBox();
     this.Label3             = new System.Windows.Forms.Label();
     this.Label2             = new System.Windows.Forms.Label();
     this.Label1             = new System.Windows.Forms.Label();
     this.txtDEs             = new System.Windows.Forms.RichTextBox();
     this.txtID              = new System.Windows.Forms.TextBox();
     this.txtName            = new System.Windows.Forms.TextBox();
     this.TabPage2           = new System.Windows.Forms.TabPage();
     this.dgvFoodType        = new DevComponents.DotNetBar.Controls.DataGridViewX();
     this.dgvFoodType.Click += new System.EventHandler(this.dgvFoodType_Click);
     this.TabControl1.SuspendLayout();
     this.TabPage1.SuspendLayout();
     this.GroupBox1.SuspendLayout();
     this.TabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize) this.dgvFoodType).BeginInit();
     this.SuspendLayout();
     //
     //TabControl1
     //
     this.TabControl1.Anchor = System.Windows.Forms.AnchorStyles.None;
     this.TabControl1.Controls.Add(this.TabPage1);
     this.TabControl1.Controls.Add(this.TabPage2);
     this.TabControl1.Location      = new System.Drawing.Point(49, 47);
     this.TabControl1.Name          = "TabControl1";
     this.TabControl1.SelectedIndex = 0;
     this.TabControl1.Size          = new System.Drawing.Size(560, 369);
     this.TabControl1.TabIndex      = 6;
     //
     //TabPage1
     //
     this.TabPage1.Controls.Add(this.btClear);
     this.TabPage1.Controls.Add(this.btExit);
     this.TabPage1.Controls.Add(this.btDelete);
     this.TabPage1.Controls.Add(this.btEdit);
     this.TabPage1.Controls.Add(this.btSave);
     this.TabPage1.Controls.Add(this.GroupBox1);
     this.TabPage1.Location = new System.Drawing.Point(4, 32);
     this.TabPage1.Name     = "TabPage1";
     this.TabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.TabPage1.Size     = new System.Drawing.Size(552, 333);
     this.TabPage1.TabIndex = 0;
     this.TabPage1.Text     = "ຈັດການຂໍ້ມູນກຸ່ມອາຫານ";
     this.TabPage1.UseVisualStyleBackColor = true;
     //
     //btClear
     //
     this.btClear.ImageKey                = "Broom-100 (1).png";
     this.btClear.ImageList               = this.ImageList1;
     this.btClear.Location                = new System.Drawing.Point(332, 279);
     this.btClear.Name                    = "btClear";
     this.btClear.Size                    = new System.Drawing.Size(97, 36);
     this.btClear.TabIndex                = 5;
     this.btClear.Text                    = "ລ້າງ";
     this.btClear.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btClear.UseVisualStyleBackColor = true;
     //
     //ImageList1
     //
     this.ImageList1.ImageStream      = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.ImageList1.Images.SetKeyName(0, "Add Image-100.png");
     this.ImageList1.Images.SetKeyName(1, "Broom-100 (1).png");
     this.ImageList1.Images.SetKeyName(2, "Delete-100.png");
     this.ImageList1.Images.SetKeyName(3, "Exit-100.png");
     this.ImageList1.Images.SetKeyName(4, "Save as-100.png");
     this.ImageList1.Images.SetKeyName(5, "Save-100 (1).png");
     //
     //btExit
     //
     this.btExit.ImageKey                = "Exit-100.png";
     this.btExit.ImageList               = this.ImageList1;
     this.btExit.Location                = new System.Drawing.Point(443, 279);
     this.btExit.Name                    = "btExit";
     this.btExit.Size                    = new System.Drawing.Size(89, 36);
     this.btExit.TabIndex                = 5;
     this.btExit.Text                    = "ອອກ";
     this.btExit.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btExit.UseVisualStyleBackColor = true;
     //
     //btDelete
     //
     this.btDelete.ImageKey                = "Delete-100.png";
     this.btDelete.ImageList               = this.ImageList1;
     this.btDelete.Location                = new System.Drawing.Point(234, 279);
     this.btDelete.Name                    = "btDelete";
     this.btDelete.Size                    = new System.Drawing.Size(84, 36);
     this.btDelete.TabIndex                = 5;
     this.btDelete.Text                    = "ລົບ";
     this.btDelete.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btDelete.UseVisualStyleBackColor = true;
     //
     //btEdit
     //
     this.btEdit.ImageKey                = "Save as-100.png";
     this.btEdit.ImageList               = this.ImageList1;
     this.btEdit.Location                = new System.Drawing.Point(125, 279);
     this.btEdit.Name                    = "btEdit";
     this.btEdit.Size                    = new System.Drawing.Size(95, 36);
     this.btEdit.TabIndex                = 5;
     this.btEdit.Text                    = "ແກ້ໃຂ";
     this.btEdit.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btEdit.UseVisualStyleBackColor = true;
     //
     //btSave
     //
     this.btSave.ImageKey                = "Save-100 (1).png";
     this.btSave.ImageList               = this.ImageList1;
     this.btSave.Location                = new System.Drawing.Point(21, 279);
     this.btSave.Name                    = "btSave";
     this.btSave.Size                    = new System.Drawing.Size(90, 36);
     this.btSave.TabIndex                = 5;
     this.btSave.Text                    = "ບັນທຶກ";
     this.btSave.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btSave.UseVisualStyleBackColor = true;
     //
     //GroupBox1
     //
     this.GroupBox1.Anchor = System.Windows.Forms.AnchorStyles.None;
     this.GroupBox1.Controls.Add(this.Label3);
     this.GroupBox1.Controls.Add(this.Label2);
     this.GroupBox1.Controls.Add(this.Label1);
     this.GroupBox1.Controls.Add(this.txtDEs);
     this.GroupBox1.Controls.Add(this.txtID);
     this.GroupBox1.Controls.Add(this.txtName);
     this.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.GroupBox1.Location  = new System.Drawing.Point(97, 19);
     this.GroupBox1.Name      = "GroupBox1";
     this.GroupBox1.Size      = new System.Drawing.Size(369, 240);
     this.GroupBox1.TabIndex  = 4;
     this.GroupBox1.TabStop   = false;
     this.GroupBox1.Text      = "ກຸ່ມອາຫານ";
     //
     //Label3
     //
     this.Label3.AutoSize = true;
     this.Label3.Location = new System.Drawing.Point(55, 126);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(81, 23);
     this.Label3.TabIndex = 6;
     this.Label3.Text     = "ຄໍາອະທິບາຍ:";
     //
     //Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(92, 89);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(44, 23);
     this.Label2.TabIndex = 7;
     this.Label2.Text     = "ຊື່ກຸ່ມ:";
     //
     //Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(23, 52);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(113, 23);
     this.Label1.TabIndex = 8;
     this.Label1.Text     = "ລະຫັດກຸ່ມອາຫານ:";
     //
     //txtDEs
     //
     this.txtDEs.Location = new System.Drawing.Point(147, 123);
     this.txtDEs.Name     = "txtDEs";
     this.txtDEs.Size     = new System.Drawing.Size(199, 96);
     this.txtDEs.TabIndex = 5;
     this.txtDEs.Text     = "";
     //
     //txtID
     //
     this.txtID.Location = new System.Drawing.Point(147, 49);
     this.txtID.Name     = "txtID";
     this.txtID.Size     = new System.Drawing.Size(199, 31);
     this.txtID.TabIndex = 3;
     //
     //txtName
     //
     this.txtName.Location = new System.Drawing.Point(147, 86);
     this.txtName.Name     = "txtName";
     this.txtName.Size     = new System.Drawing.Size(199, 31);
     this.txtName.TabIndex = 4;
     //
     //TabPage2
     //
     this.TabPage2.Controls.Add(this.dgvFoodType);
     this.TabPage2.Location = new System.Drawing.Point(4, 32);
     this.TabPage2.Name     = "TabPage2";
     this.TabPage2.Padding  = new System.Windows.Forms.Padding(3);
     this.TabPage2.Size     = new System.Drawing.Size(552, 333);
     this.TabPage2.TabIndex = 1;
     this.TabPage2.Text     = "ເບິ່ງຂໍ້ມູນ";
     this.TabPage2.UseVisualStyleBackColor = true;
     //
     //dgvFoodType
     //
     this.dgvFoodType.AllowUserToAddRows            = false;
     this.dgvFoodType.AllowUserToDeleteRows         = false;
     this.dgvFoodType.AutoSizeColumnsMode           = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.dgvFoodType.BackgroundColor               = System.Drawing.Color.White;
     DataGridViewCellStyle1.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     DataGridViewCellStyle1.BackColor               = System.Drawing.SystemColors.Control;
     DataGridViewCellStyle1.Font                    = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     DataGridViewCellStyle1.ForeColor               = System.Drawing.Color.Black;
     DataGridViewCellStyle1.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     DataGridViewCellStyle1.SelectionForeColor      = System.Drawing.Color.Black;
     DataGridViewCellStyle1.WrapMode                = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvFoodType.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle1;
     this.dgvFoodType.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     DataGridViewCellStyle2.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     DataGridViewCellStyle2.BackColor               = System.Drawing.Color.White;
     DataGridViewCellStyle2.Font                    = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     DataGridViewCellStyle2.ForeColor               = System.Drawing.Color.Black;
     DataGridViewCellStyle2.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
     DataGridViewCellStyle2.SelectionForeColor      = System.Drawing.Color.Black;
     DataGridViewCellStyle2.WrapMode                = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvFoodType.DefaultCellStyle              = DataGridViewCellStyle2;
     this.dgvFoodType.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dgvFoodType.EnableHeadersVisualStyles = false;
     this.dgvFoodType.GridColor                  = System.Drawing.Color.FromArgb(System.Convert.ToInt32(System.Convert.ToByte(170)), System.Convert.ToInt32(System.Convert.ToByte(170)), System.Convert.ToInt32(System.Convert.ToByte(170)));
     this.dgvFoodType.Location                   = new System.Drawing.Point(3, 3);
     this.dgvFoodType.Name                       = "dgvFoodType";
     this.dgvFoodType.ReadOnly                   = true;
     DataGridViewCellStyle3.Alignment            = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     DataGridViewCellStyle3.BackColor            = System.Drawing.SystemColors.Control;
     DataGridViewCellStyle3.Font                 = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     DataGridViewCellStyle3.ForeColor            = System.Drawing.Color.Black;
     DataGridViewCellStyle3.SelectionBackColor   = System.Drawing.SystemColors.Highlight;
     DataGridViewCellStyle3.SelectionForeColor   = System.Drawing.Color.Black;
     DataGridViewCellStyle3.WrapMode             = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvFoodType.RowHeadersDefaultCellStyle = DataGridViewCellStyle3;
     this.dgvFoodType.Size                       = new System.Drawing.Size(546, 327);
     this.dgvFoodType.TabIndex                   = 5;
     //
     //frm_FoodGroup
     //
     this.AutoScaleDimensions   = new System.Drawing.SizeF((float)(9.0F), (float)(23.0F));
     this.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
     this.BackgroundImage       = Properties.Resources.IMG_20161210_WA0004;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.ClientSize            = new System.Drawing.Size(672, 449);
     this.Controls.Add(this.TabControl1);
     this.Font            = new System.Drawing.Font("Phetsarath OT", (float)(12.0F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, System.Convert.ToByte(0));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Margin          = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name            = "frm_FoodGroup";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "frm_FoodGroup";
     this.TabControl1.ResumeLayout(false);
     this.TabPage1.ResumeLayout(false);
     this.GroupBox1.ResumeLayout(false);
     this.GroupBox1.PerformLayout();
     this.TabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize) this.dgvFoodType).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 53
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load += new System.EventHandler(frmCustomer_Load);
     base.Closed += new System.EventHandler(frmCustomer_Closed);
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmCustomer));
     this.ToolBar1 = new System.Windows.Forms.ToolBar();
     this.ToolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.ToolBar1_ButtonClick);
     this.ToolBarButton1 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton2 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton3 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton9 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton5 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton4 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton6 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton12 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton10 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton11 = new System.Windows.Forms.ToolBarButton();
     this.ToolBarButton7 = new System.Windows.Forms.ToolBarButton();
     this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
     this.dgCust = new System.Windows.Forms.DataGrid();
     this.dgCust.DoubleClick += new System.EventHandler(this.dgCust_DoubleClick);
     this.DataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
     this.DataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridBoolColumn1 = new System.Windows.Forms.DataGridBoolColumn();
     this.DataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn8 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn7 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn9 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridBoolColumn2 = new System.Windows.Forms.DataGridBoolColumn();
     this.DataGridTextBoxColumn10 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn12 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn13 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridBoolColumn3 = new System.Windows.Forms.DataGridBoolColumn();
     ((System.ComponentModel.ISupportInitialize) this.dgCust).BeginInit();
     this.SuspendLayout();
     //
     //ToolBar1
     //
     this.ToolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.ToolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {this.ToolBarButton1, this.ToolBarButton2, this.ToolBarButton3, this.ToolBarButton9, this.ToolBarButton5, this.ToolBarButton4, this.ToolBarButton6, this.ToolBarButton12, this.ToolBarButton10, this.ToolBarButton11, this.ToolBarButton7});
     this.ToolBar1.ButtonSize = new System.Drawing.Size(50, 48);
     this.ToolBar1.DropDownArrows = true;
     this.ToolBar1.ImageList = this.ImageList1;
     this.ToolBar1.Location = new System.Drawing.Point(0, 0);
     this.ToolBar1.Name = "ToolBar1";
     this.ToolBar1.ShowToolTips = true;
     this.ToolBar1.Size = new System.Drawing.Size(579, 55);
     this.ToolBar1.TabIndex = 2;
     //
     //ToolBarButton1
     //
     this.ToolBarButton1.ImageIndex = 0;
     this.ToolBarButton1.Text = "添加";
     //
     //ToolBarButton2
     //
     this.ToolBarButton2.ImageIndex = 1;
     this.ToolBarButton2.Text = "修改";
     //
     //ToolBarButton3
     //
     this.ToolBarButton3.ImageIndex = 2;
     this.ToolBarButton3.Text = "删除";
     //
     //ToolBarButton9
     //
     this.ToolBarButton9.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     //ToolBarButton5
     //
     this.ToolBarButton5.ImageIndex = 3;
     this.ToolBarButton5.Text = "查询";
     //
     //ToolBarButton4
     //
     this.ToolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     //ToolBarButton6
     //
     this.ToolBarButton6.ImageIndex = 4;
     this.ToolBarButton6.Text = "打印";
     //
     //ToolBarButton12
     //
     this.ToolBarButton12.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     this.ToolBarButton12.Visible = false;
     //
     //ToolBarButton10
     //
     this.ToolBarButton10.ImageIndex = 5;
     this.ToolBarButton10.Text = "会员卡";
     this.ToolBarButton10.Visible = false;
     //
     //ToolBarButton11
     //
     this.ToolBarButton11.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     //ToolBarButton7
     //
     this.ToolBarButton7.ImageIndex = 6;
     this.ToolBarButton7.Text = "关闭";
     //
     //ImageList1
     //
     this.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth16Bit;
     this.ImageList1.ImageSize = new System.Drawing.Size(28, 28);
     this.ImageList1.ImageStream = (System.Windows.Forms.ImageListStreamer) (resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     //dgCust
     //
     this.dgCust.AlternatingBackColor = System.Drawing.Color.GhostWhite;
     this.dgCust.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.dgCust.BackColor = System.Drawing.Color.GhostWhite;
     this.dgCust.BackgroundColor = System.Drawing.Color.Lavender;
     this.dgCust.CaptionBackColor = System.Drawing.Color.Navy;
     this.dgCust.CaptionForeColor = System.Drawing.Color.White;
     this.dgCust.DataMember = "";
     this.dgCust.FlatMode = true;
     this.dgCust.Font = new System.Drawing.Font("Tahoma", 8.0F);
     this.dgCust.ForeColor = System.Drawing.Color.MidnightBlue;
     this.dgCust.GridLineColor = System.Drawing.Color.RoyalBlue;
     this.dgCust.HeaderBackColor = System.Drawing.Color.MidnightBlue;
     this.dgCust.HeaderFont = new System.Drawing.Font("Tahoma", 8.0F, System.Drawing.FontStyle.Bold);
     this.dgCust.HeaderForeColor = System.Drawing.Color.Lavender;
     this.dgCust.LinkColor = System.Drawing.Color.Teal;
     this.dgCust.Location = new System.Drawing.Point(0, 56);
     this.dgCust.Name = "dgCust";
     this.dgCust.ParentRowsBackColor = System.Drawing.Color.Lavender;
     this.dgCust.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dgCust.ReadOnly = true;
     this.dgCust.SelectionBackColor = System.Drawing.Color.Teal;
     this.dgCust.SelectionForeColor = System.Drawing.Color.PaleGreen;
     this.dgCust.Size = new System.Drawing.Size(579, 369);
     this.dgCust.TabIndex = 3;
     this.dgCust.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {this.DataGridTableStyle1});
     //
     //DataGridTableStyle1
     //
     this.DataGridTableStyle1.DataGrid = this.dgCust;
     this.DataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {this.DataGridTextBoxColumn1, this.DataGridTextBoxColumn2, this.DataGridBoolColumn1, this.DataGridTextBoxColumn3, this.DataGridTextBoxColumn4, this.DataGridTextBoxColumn5, this.DataGridTextBoxColumn8, this.DataGridTextBoxColumn6, this.DataGridTextBoxColumn7, this.DataGridTextBoxColumn9, this.DataGridBoolColumn2, this.DataGridTextBoxColumn10, this.DataGridTextBoxColumn12, this.DataGridTextBoxColumn13, this.DataGridBoolColumn3});
     this.DataGridTableStyle1.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte) (0)));
     this.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.DataGridTableStyle1.MappingName = "customer";
     //
     //DataGridTextBoxColumn1
     //
     this.DataGridTextBoxColumn1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn1.Format = "";
     this.DataGridTextBoxColumn1.FormatInfo = null;
     this.DataGridTextBoxColumn1.HeaderText = "客户编码";
     this.DataGridTextBoxColumn1.MappingName = "customercode";
     this.DataGridTextBoxColumn1.NullText = "";
     this.DataGridTextBoxColumn1.Width = 75;
     //
     //DataGridTextBoxColumn2
     //
     this.DataGridTextBoxColumn2.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn2.Format = "";
     this.DataGridTextBoxColumn2.FormatInfo = null;
     this.DataGridTextBoxColumn2.HeaderText = "客户名称";
     this.DataGridTextBoxColumn2.MappingName = "customername";
     this.DataGridTextBoxColumn2.NullText = "";
     this.DataGridTextBoxColumn2.Width = 75;
     //
     //DataGridBoolColumn1
     //
     this.DataGridBoolColumn1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridBoolColumn1.FalseValue = "0";
     this.DataGridBoolColumn1.HeaderText = "会员";
     this.DataGridBoolColumn1.MappingName = "isclubmember";
     this.DataGridBoolColumn1.NullText = "";
     this.DataGridBoolColumn1.NullValue = resources.GetObject("DataGridBoolColumn1.NullValue");
     this.DataGridBoolColumn1.TrueValue = "1";
     this.DataGridBoolColumn1.Width = 75;
     //
     //DataGridTextBoxColumn3
     //
     this.DataGridTextBoxColumn3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn3.Format = "";
     this.DataGridTextBoxColumn3.FormatInfo = null;
     this.DataGridTextBoxColumn3.HeaderText = "身份证号码";
     this.DataGridTextBoxColumn3.MappingName = "idcardno";
     this.DataGridTextBoxColumn3.NullText = "";
     this.DataGridTextBoxColumn3.Width = 75;
     //
     //DataGridTextBoxColumn4
     //
     this.DataGridTextBoxColumn4.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn4.Format = "";
     this.DataGridTextBoxColumn4.FormatInfo = null;
     this.DataGridTextBoxColumn4.HeaderText = "个人电话";
     this.DataGridTextBoxColumn4.MappingName = "phonenumber1";
     this.DataGridTextBoxColumn4.NullText = "";
     this.DataGridTextBoxColumn4.Width = 75;
     //
     //DataGridTextBoxColumn5
     //
     this.DataGridTextBoxColumn5.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn5.Format = "";
     this.DataGridTextBoxColumn5.FormatInfo = null;
     this.DataGridTextBoxColumn5.HeaderText = "单位名称";
     this.DataGridTextBoxColumn5.MappingName = "company";
     this.DataGridTextBoxColumn5.NullText = "";
     this.DataGridTextBoxColumn5.Width = 75;
     //
     //DataGridTextBoxColumn8
     //
     this.DataGridTextBoxColumn8.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn8.Format = "";
     this.DataGridTextBoxColumn8.FormatInfo = null;
     this.DataGridTextBoxColumn8.HeaderText = "单位地址";
     this.DataGridTextBoxColumn8.MappingName = "address1";
     this.DataGridTextBoxColumn8.NullText = "";
     this.DataGridTextBoxColumn8.Width = 75;
     //
     //DataGridTextBoxColumn6
     //
     this.DataGridTextBoxColumn6.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn6.Format = "";
     this.DataGridTextBoxColumn6.FormatInfo = null;
     this.DataGridTextBoxColumn6.HeaderText = "单位电话";
     this.DataGridTextBoxColumn6.MappingName = "phonenumber2";
     this.DataGridTextBoxColumn6.NullText = "";
     this.DataGridTextBoxColumn6.Width = 75;
     //
     //DataGridTextBoxColumn7
     //
     this.DataGridTextBoxColumn7.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn7.Format = "";
     this.DataGridTextBoxColumn7.FormatInfo = null;
     this.DataGridTextBoxColumn7.HeaderText = "联系人";
     this.DataGridTextBoxColumn7.MappingName = "contacter";
     this.DataGridTextBoxColumn7.NullText = "";
     this.DataGridTextBoxColumn7.Width = 75;
     //
     //DataGridTextBoxColumn9
     //
     this.DataGridTextBoxColumn9.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn9.Format = "";
     this.DataGridTextBoxColumn9.FormatInfo = null;
     this.DataGridTextBoxColumn9.HeaderText = "客户类别";
     this.DataGridTextBoxColumn9.MappingName = "typename";
     this.DataGridTextBoxColumn9.NullText = "";
     this.DataGridTextBoxColumn9.Width = 75;
     //
     //DataGridBoolColumn2
     //
     this.DataGridBoolColumn2.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridBoolColumn2.FalseValue = "0";
     this.DataGridBoolColumn2.HeaderText = "允许签单";
     this.DataGridBoolColumn2.MappingName = "signed";
     this.DataGridBoolColumn2.NullText = "";
     this.DataGridBoolColumn2.NullValue = resources.GetObject("DataGridBoolColumn2.NullValue");
     this.DataGridBoolColumn2.TrueValue = "1";
     this.DataGridBoolColumn2.Width = 75;
     //
     //DataGridTextBoxColumn10
     //
     this.DataGridTextBoxColumn10.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn10.Format = "";
     this.DataGridTextBoxColumn10.FormatInfo = null;
     this.DataGridTextBoxColumn10.HeaderText = "签单限额";
     this.DataGridTextBoxColumn10.MappingName = "signupcost";
     this.DataGridTextBoxColumn10.NullText = "";
     this.DataGridTextBoxColumn10.Width = 75;
     //
     //DataGridTextBoxColumn12
     //
     this.DataGridTextBoxColumn12.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn12.Format = "";
     this.DataGridTextBoxColumn12.FormatInfo = null;
     this.DataGridTextBoxColumn12.HeaderText = "累计消费";
     this.DataGridTextBoxColumn12.MappingName = "totalcost";
     this.DataGridTextBoxColumn12.NullText = "";
     this.DataGridTextBoxColumn12.Width = 75;
     //
     //DataGridTextBoxColumn13
     //
     this.DataGridTextBoxColumn13.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn13.Format = "";
     this.DataGridTextBoxColumn13.FormatInfo = null;
     this.DataGridTextBoxColumn13.HeaderText = "备注";
     this.DataGridTextBoxColumn13.MappingName = "note";
     this.DataGridTextBoxColumn13.NullText = "";
     this.DataGridTextBoxColumn13.Width = 75;
     //
     //DataGridBoolColumn3
     //
     this.DataGridBoolColumn3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridBoolColumn3.FalseValue = "0";
     this.DataGridBoolColumn3.HeaderText = "暂停使用";
     this.DataGridBoolColumn3.MappingName = "disabled";
     this.DataGridBoolColumn3.NullText = "";
     this.DataGridBoolColumn3.NullValue = resources.GetObject("DataGridBoolColumn3.NullValue");
     this.DataGridBoolColumn3.TrueValue = "1";
     this.DataGridBoolColumn3.Width = 75;
     //
     //frmCustomer
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize = new System.Drawing.Size(579, 425);
     this.Controls.Add(this.dgCust);
     this.Controls.Add(this.ToolBar1);
     this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon"));
     this.Name = "frmCustomer";
     this.ShowInTaskbar = false;
     this.Text = "客户信息管理";
     ((System.ComponentModel.ISupportInitialize) this.dgCust).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 54
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     base.Load += new System.EventHandler(frmSrchCardSpl_Load);
     base.Closed += new System.EventHandler(frmSrchCardSpl_Closed);
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmSrchCardSpl));
     this.dgSrchCardSplRslt = new System.Windows.Forms.DataGrid();
     this.DataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
     this.DataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
     this.Panel1 = new System.Windows.Forms.Panel();
     this.GroupBox1 = new System.Windows.Forms.GroupBox();
     this.Button2 = new System.Windows.Forms.Button();
     this.Button2.Click += new System.EventHandler(this.Button2_Click);
     this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
     this.DateTimePicker2 = new System.Windows.Forms.DateTimePicker();
     this.Label3 = new System.Windows.Forms.Label();
     this.DateTimePicker1 = new System.Windows.Forms.DateTimePicker();
     this.Label2 = new System.Windows.Forms.Label();
     this.TextBox1 = new System.Windows.Forms.TextBox();
     this.Label1 = new System.Windows.Forms.Label();
     this.Button1 = new System.Windows.Forms.Button();
     this.Button1.Click += new System.EventHandler(this.Button1_Click);
     ((System.ComponentModel.ISupportInitialize) this.dgSrchCardSplRslt).BeginInit();
     this.Panel1.SuspendLayout();
     this.GroupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     //dgSrchCardSplRslt
     //
     this.dgSrchCardSplRslt.AlternatingBackColor = System.Drawing.Color.GhostWhite;
     this.dgSrchCardSplRslt.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.dgSrchCardSplRslt.BackColor = System.Drawing.Color.GhostWhite;
     this.dgSrchCardSplRslt.BackgroundColor = System.Drawing.Color.Lavender;
     this.dgSrchCardSplRslt.CaptionBackColor = System.Drawing.Color.Navy;
     this.dgSrchCardSplRslt.CaptionForeColor = System.Drawing.Color.White;
     this.dgSrchCardSplRslt.DataMember = "";
     this.dgSrchCardSplRslt.FlatMode = true;
     this.dgSrchCardSplRslt.Font = new System.Drawing.Font("Tahoma", 8.0F);
     this.dgSrchCardSplRslt.ForeColor = System.Drawing.Color.MidnightBlue;
     this.dgSrchCardSplRslt.GridLineColor = System.Drawing.Color.RoyalBlue;
     this.dgSrchCardSplRslt.HeaderBackColor = System.Drawing.Color.MidnightBlue;
     this.dgSrchCardSplRslt.HeaderFont = new System.Drawing.Font("Tahoma", 8.0F, System.Drawing.FontStyle.Bold);
     this.dgSrchCardSplRslt.HeaderForeColor = System.Drawing.Color.Lavender;
     this.dgSrchCardSplRslt.LinkColor = System.Drawing.Color.Teal;
     this.dgSrchCardSplRslt.Location = new System.Drawing.Point(0, 96);
     this.dgSrchCardSplRslt.Name = "dgSrchCardSplRslt";
     this.dgSrchCardSplRslt.ParentRowsBackColor = System.Drawing.Color.Lavender;
     this.dgSrchCardSplRslt.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dgSrchCardSplRslt.ReadOnly = true;
     this.dgSrchCardSplRslt.SelectionBackColor = System.Drawing.Color.Teal;
     this.dgSrchCardSplRslt.SelectionForeColor = System.Drawing.Color.PaleGreen;
     this.dgSrchCardSplRslt.Size = new System.Drawing.Size(656, 344);
     this.dgSrchCardSplRslt.TabIndex = 1;
     this.dgSrchCardSplRslt.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {this.DataGridTableStyle1});
     //
     //DataGridTableStyle1
     //
     this.DataGridTableStyle1.DataGrid = this.dgSrchCardSplRslt;
     this.DataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {this.DataGridTextBoxColumn1, this.DataGridTextBoxColumn2, this.DataGridTextBoxColumn3, this.DataGridTextBoxColumn4});
     this.DataGridTableStyle1.HeaderFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte) (0)));
     this.DataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.DataGridTableStyle1.MappingName = "CardSupply";
     //
     //DataGridTextBoxColumn1
     //
     this.DataGridTextBoxColumn1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn1.Format = "";
     this.DataGridTextBoxColumn1.FormatInfo = null;
     this.DataGridTextBoxColumn1.HeaderText = "会员卡号";
     this.DataGridTextBoxColumn1.MappingName = "clubcardno";
     this.DataGridTextBoxColumn1.Width = 110;
     //
     //DataGridTextBoxColumn2
     //
     this.DataGridTextBoxColumn2.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn2.Format = "";
     this.DataGridTextBoxColumn2.FormatInfo = null;
     this.DataGridTextBoxColumn2.HeaderText = "续存日期";
     this.DataGridTextBoxColumn2.MappingName = "supplydate";
     this.DataGridTextBoxColumn2.Width = 150;
     //
     //DataGridTextBoxColumn3
     //
     this.DataGridTextBoxColumn3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn3.Format = "";
     this.DataGridTextBoxColumn3.FormatInfo = null;
     this.DataGridTextBoxColumn3.HeaderText = "续存金额";
     this.DataGridTextBoxColumn3.MappingName = "cost";
     this.DataGridTextBoxColumn3.Width = 90;
     //
     //DataGridTextBoxColumn4
     //
     this.DataGridTextBoxColumn4.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.DataGridTextBoxColumn4.Format = "";
     this.DataGridTextBoxColumn4.FormatInfo = null;
     this.DataGridTextBoxColumn4.HeaderText = "操作员";
     this.DataGridTextBoxColumn4.MappingName = "operator";
     this.DataGridTextBoxColumn4.Width = 90;
     //
     //Panel1
     //
     this.Panel1.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);
     this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.Panel1.Controls.Add(this.GroupBox1);
     this.Panel1.Location = new System.Drawing.Point(0, 0);
     this.Panel1.Name = "Panel1";
     this.Panel1.Size = new System.Drawing.Size(656, 96);
     this.Panel1.TabIndex = 0;
     //
     //GroupBox1
     //
     this.GroupBox1.Anchor = (System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right);
     this.GroupBox1.Controls.Add(this.Button2);
     this.GroupBox1.Controls.Add(this.DateTimePicker2);
     this.GroupBox1.Controls.Add(this.Label3);
     this.GroupBox1.Controls.Add(this.DateTimePicker1);
     this.GroupBox1.Controls.Add(this.Label2);
     this.GroupBox1.Controls.Add(this.TextBox1);
     this.GroupBox1.Controls.Add(this.Label1);
     this.GroupBox1.Controls.Add(this.Button1);
     this.GroupBox1.Location = new System.Drawing.Point(8, 8);
     this.GroupBox1.Name = "GroupBox1";
     this.GroupBox1.Size = new System.Drawing.Size(640, 80);
     this.GroupBox1.TabIndex = 0;
     this.GroupBox1.TabStop = false;
     this.GroupBox1.Text = "查询条件";
     //
     //Button2
     //
     this.Button2.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
     this.Button2.ImageIndex = 1;
     this.Button2.ImageList = this.ImageList1;
     this.Button2.Location = new System.Drawing.Point(576, 16);
     this.Button2.Name = "Button2";
     this.Button2.Size = new System.Drawing.Size(56, 56);
     this.Button2.TabIndex = 7;
     this.Button2.Text = "关闭";
     this.Button2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     //
     //ImageList1
     //
     this.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth16Bit;
     this.ImageList1.ImageSize = new System.Drawing.Size(28, 28);
     this.ImageList1.ImageStream = (System.Windows.Forms.ImageListStreamer) (resources.GetObject("ImageList1.ImageStream"));
     this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     //DateTimePicker2
     //
     this.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.DateTimePicker2.Location = new System.Drawing.Point(400, 32);
     this.DateTimePicker2.Name = "DateTimePicker2";
     this.DateTimePicker2.Size = new System.Drawing.Size(96, 21);
     this.DateTimePicker2.TabIndex = 2;
     //
     //Label3
     //
     this.Label3.Location = new System.Drawing.Point(376, 32);
     this.Label3.Name = "Label3";
     this.Label3.Size = new System.Drawing.Size(24, 23);
     this.Label3.TabIndex = 6;
     this.Label3.Text = "到";
     this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     //DateTimePicker1
     //
     this.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.DateTimePicker1.Location = new System.Drawing.Point(272, 32);
     this.DateTimePicker1.Name = "DateTimePicker1";
     this.DateTimePicker1.Size = new System.Drawing.Size(96, 21);
     this.DateTimePicker1.TabIndex = 1;
     //
     //Label2
     //
     this.Label2.Location = new System.Drawing.Point(192, 32);
     this.Label2.Name = "Label2";
     this.Label2.Size = new System.Drawing.Size(88, 23);
     this.Label2.TabIndex = 5;
     this.Label2.Text = "开户日期:从";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     //TextBox1
     //
     this.TextBox1.Location = new System.Drawing.Point(80, 32);
     this.TextBox1.Name = "TextBox1";
     this.TextBox1.TabIndex = 0;
     this.TextBox1.Text = "";
     //
     //Label1
     //
     this.Label1.Location = new System.Drawing.Point(16, 32);
     this.Label1.Name = "Label1";
     this.Label1.TabIndex = 4;
     this.Label1.Text = "会员卡号:";
     this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     //Button1
     //
     this.Button1.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
     this.Button1.ImageIndex = 0;
     this.Button1.ImageList = this.ImageList1;
     this.Button1.Location = new System.Drawing.Point(512, 16);
     this.Button1.Name = "Button1";
     this.Button1.Size = new System.Drawing.Size(56, 56);
     this.Button1.TabIndex = 3;
     this.Button1.Text = "查询";
     this.Button1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
     //
     //frmSrchCardSpl
     //
     this.AcceptButton = this.Button1;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize = new System.Drawing.Size(656, 445);
     this.Controls.Add(this.Panel1);
     this.Controls.Add(this.dgSrchCardSplRslt);
     this.Icon = (System.Drawing.Icon) (resources.GetObject("$this.Icon"));
     this.Name = "frmSrchCardSpl";
     this.Text = "会员卡续存记录查询";
     ((System.ComponentModel.ISupportInitialize) this.dgSrchCardSplRslt).EndInit();
     this.Panel1.ResumeLayout(false);
     this.GroupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 55
0
 private void InitializeComponent()
 {
     components       = new System.ComponentModel.Container();
     this.ServiceName = "Service1";
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 protected override void InitializeComponent()
 {
    base.InitializeComponent();
    components = new System.ComponentModel.Container();
 }
Esempio n. 57
0
 //NOTE: The following procedure is required by the Windows Form Designer
 //It can be modified using the Windows Form Designer.
 //Do not modify it using the code editor.
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.components                                  = new System.ComponentModel.Container();
     this.btnChooseMonitorData                        = new System.Windows.Forms.Button();
     this.btnChooseMonitorData.Click                 += new System.EventHandler(this.btnChooseMonitorData_Click);
     this.ComboBox_ExcavID                            = new System.Windows.Forms.ComboBox();
     this.ComboBox_ExcavID.SelectedIndexChanged      += new System.EventHandler(this.CbBoxExcavID_SelectedIndexChanged);
     this.Label_Component_Elevation                   = new System.Windows.Forms.Label();
     this.btnGenerate                                 = new System.Windows.Forms.Button();
     this.btnGenerate.Click                          += new System.EventHandler(this.btnGenerate_Click);
     this.chkBoxOpenNewExcel                          = new System.Windows.Forms.CheckBox();
     this.ListBoxWorksheetsName                       = new System.Windows.Forms.ListBox();
     this.ListBoxWorksheetsName.SelectedIndexChanged += new System.EventHandler(this.ListBoxWorksheetsName_SelectedIndexChanged);
     this.ComboBox_ExcavRegion                        = new System.Windows.Forms.ComboBox();
     this.ComboBox_ExcavRegion.SelectedIndexChanged  += new System.EventHandler(this.CbBoxExcavRegion_SelectedIndexChanged);
     this.Label2 = new System.Windows.Forms.Label();
     this.btnDrawMonitorPoints                = new System.Windows.Forms.Button();
     this.btnDrawMonitorPoints.Click         += new System.EventHandler(this.btnDrawMonitorPoints_Click);
     this.BGWK_NewDrawing                     = new System.ComponentModel.BackgroundWorker();
     this.BGWK_NewDrawing.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.BGW_Generate_DoWork);
     this.BGWK_NewDrawing.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.BGW_Generate_RunWorkerCompleted);
     this.GroupBox1           = new System.Windows.Forms.GroupBox();
     this.RadioButton_Dynamic = new System.Windows.Forms.RadioButton();
     this.RadioButton_Dynamic.CheckedChanged += new System.EventHandler(this.RadioButton_Dynamic_CheckedChanged);
     this.RadioButton_Max_Depth = new System.Windows.Forms.RadioButton();
     this.RadioButton_Max_Depth.CheckedChanged += new System.EventHandler(this.RadioButton_Dynamic_CheckedChanged);
     this.Panel_Dynamic    = new System.Windows.Forms.Panel();
     this.ComboBox_MntType = new System.Windows.Forms.ComboBox();
     this.ComboBox_MntType.SelectedValueChanged += new System.EventHandler(this.ComboBox_MntType_SelectedValueChanged);
     this.Label_MntType         = new System.Windows.Forms.Label();
     this.ComboBox_WorkingStage = new System.Windows.Forms.ComboBox();
     this.ComboBox_WorkingStage.SelectedIndexChanged += new System.EventHandler(this.ComboBox_WorkingStage_SelectedIndexChanged);
     this.Label3                 = new System.Windows.Forms.Label();
     this.Panel_Static           = new System.Windows.Forms.Panel();
     this.ToolTip1               = new System.Windows.Forms.ToolTip(this.components);
     this.ComboBoxOpenedWorkbook = new System.Windows.Forms.ComboBox();
     this.ComboBoxOpenedWorkbook.SelectedIndexChanged += new System.EventHandler(this.ComboBoxOpenedWorkbook_SelectedIndexChanged);
     this.CheckBox1 = new System.Windows.Forms.CheckBox();
     this.CheckBox1.CheckedChanged += new System.EventHandler(this.CheckBox1_CheckedChanged);
     this.ComboBox1 = new System.Windows.Forms.ComboBox();
     this.GroupBox1.SuspendLayout();
     this.Panel_Dynamic.SuspendLayout();
     this.Panel_Static.SuspendLayout();
     this.SuspendLayout();
     //
     //btnChooseMonitorData
     //
     this.btnChooseMonitorData.Location = new System.Drawing.Point(13, 13);
     this.btnChooseMonitorData.Name     = "btnChooseMonitorData";
     this.btnChooseMonitorData.Size     = new System.Drawing.Size(75, 23);
     this.btnChooseMonitorData.TabIndex = 0;
     this.btnChooseMonitorData.Text     = "监测数据";
     this.btnChooseMonitorData.UseVisualStyleBackColor = true;
     //
     //ComboBox_ExcavID
     //
     this.ComboBox_ExcavID.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBox_ExcavID.FormattingEnabled = true;
     this.ComboBox_ExcavID.Location          = new System.Drawing.Point(5, 38);
     this.ComboBox_ExcavID.Name     = "ComboBox_ExcavID";
     this.ComboBox_ExcavID.Size     = new System.Drawing.Size(90, 20);
     this.ComboBox_ExcavID.TabIndex = 1;
     //
     //Label_Component_Elevation
     //
     this.Label_Component_Elevation.AutoSize = true;
     this.Label_Component_Elevation.Location = new System.Drawing.Point(3, 18);
     this.Label_Component_Elevation.Name     = "Label_Component_Elevation";
     this.Label_Component_Elevation.Size     = new System.Drawing.Size(59, 12);
     this.Label_Component_Elevation.TabIndex = 3;
     this.Label_Component_Elevation.Text     = "构件-标高";
     //
     //btnGenerate
     //
     this.btnGenerate.Anchor   = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
     this.btnGenerate.Location = new System.Drawing.Point(354, 290);
     this.btnGenerate.Name     = "btnGenerate";
     this.btnGenerate.Size     = new System.Drawing.Size(75, 23);
     this.btnGenerate.TabIndex = 4;
     this.btnGenerate.Text     = "生成";
     this.btnGenerate.UseVisualStyleBackColor = true;
     //
     //chkBoxOpenNewExcel
     //
     this.chkBoxOpenNewExcel.Anchor   = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.chkBoxOpenNewExcel.AutoSize = true;
     this.chkBoxOpenNewExcel.Location = new System.Drawing.Point(319, 69);
     this.chkBoxOpenNewExcel.Name     = "chkBoxOpenNewExcel";
     this.chkBoxOpenNewExcel.Size     = new System.Drawing.Size(90, 16);
     this.chkBoxOpenNewExcel.TabIndex = 6;
     this.chkBoxOpenNewExcel.Text     = "打开新Excel";
     this.chkBoxOpenNewExcel.UseVisualStyleBackColor = true;
     //
     //ListBoxWorksheetsName
     //
     this.ListBoxWorksheetsName.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.ListBoxWorksheetsName.FormattingEnabled = true;
     this.ListBoxWorksheetsName.ItemHeight        = 12;
     this.ListBoxWorksheetsName.Location          = new System.Drawing.Point(12, 51);
     this.ListBoxWorksheetsName.Name     = "ListBoxWorksheetsName";
     this.ListBoxWorksheetsName.Size     = new System.Drawing.Size(161, 256);
     this.ListBoxWorksheetsName.TabIndex = 7;
     //
     //ComboBox_ExcavRegion
     //
     this.ComboBox_ExcavRegion.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBox_ExcavRegion.FormattingEnabled = true;
     this.ComboBox_ExcavRegion.Location          = new System.Drawing.Point(5, 141);
     this.ComboBox_ExcavRegion.Name     = "ComboBox_ExcavRegion";
     this.ComboBox_ExcavRegion.Size     = new System.Drawing.Size(90, 20);
     this.ComboBox_ExcavRegion.TabIndex = 1;
     //
     //Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(3, 119);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(53, 12);
     this.Label2.TabIndex = 3;
     this.Label2.Text     = "施工进度";
     //
     //btnDrawMonitorPoints
     //
     this.btnDrawMonitorPoints.Anchor   = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
     this.btnDrawMonitorPoints.Location = new System.Drawing.Point(354, 261);
     this.btnDrawMonitorPoints.Name     = "btnDrawMonitorPoints";
     this.btnDrawMonitorPoints.Size     = new System.Drawing.Size(75, 23);
     this.btnDrawMonitorPoints.TabIndex = 8;
     this.btnDrawMonitorPoints.Text     = "绘制测点";
     this.btnDrawMonitorPoints.UseVisualStyleBackColor = true;
     //
     //BGWK_NewDrawing
     //
     this.BGWK_NewDrawing.WorkerReportsProgress      = true;
     this.BGWK_NewDrawing.WorkerSupportsCancellation = true;
     //
     //GroupBox1
     //
     this.GroupBox1.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
     this.GroupBox1.Controls.Add(this.ComboBox1);
     this.GroupBox1.Controls.Add(this.CheckBox1);
     this.GroupBox1.Controls.Add(this.RadioButton_Dynamic);
     this.GroupBox1.Controls.Add(this.RadioButton_Max_Depth);
     this.GroupBox1.Location = new System.Drawing.Point(313, 119);
     this.GroupBox1.Name     = "GroupBox1";
     this.GroupBox1.Size     = new System.Drawing.Size(117, 131);
     this.GroupBox1.TabIndex = 9;
     this.GroupBox1.TabStop  = false;
     this.GroupBox1.Text     = "绘图类型";
     //
     //RadioButton_Dynamic
     //
     this.RadioButton_Dynamic.AutoSize = true;
     this.RadioButton_Dynamic.Checked  = true;
     this.RadioButton_Dynamic.Location = new System.Drawing.Point(6, 46);
     this.RadioButton_Dynamic.Name     = "RadioButton_Dynamic";
     this.RadioButton_Dynamic.Size     = new System.Drawing.Size(83, 16);
     this.RadioButton_Dynamic.TabIndex = 0;
     this.RadioButton_Dynamic.TabStop  = true;
     this.RadioButton_Dynamic.Text     = "形状动态图";
     this.RadioButton_Dynamic.UseVisualStyleBackColor = true;
     //
     //RadioButton_Max_Depth
     //
     this.RadioButton_Max_Depth.AutoSize = true;
     this.RadioButton_Max_Depth.Location = new System.Drawing.Point(7, 21);
     this.RadioButton_Max_Depth.Name     = "RadioButton_Max_Depth";
     this.RadioButton_Max_Depth.Size     = new System.Drawing.Size(83, 16);
     this.RadioButton_Max_Depth.TabIndex = 0;
     this.RadioButton_Max_Depth.Text     = "最值走势图";
     this.RadioButton_Max_Depth.UseVisualStyleBackColor = true;
     //
     //Panel_Dynamic
     //
     this.Panel_Dynamic.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.Panel_Dynamic.Controls.Add(this.Label_Component_Elevation);
     this.Panel_Dynamic.Controls.Add(this.ComboBox_ExcavID);
     this.Panel_Dynamic.Controls.Add(this.ComboBox_ExcavRegion);
     this.Panel_Dynamic.Controls.Add(this.Label2);
     this.Panel_Dynamic.Location = new System.Drawing.Point(186, 101);
     this.Panel_Dynamic.Name     = "Panel_Dynamic";
     this.Panel_Dynamic.Size     = new System.Drawing.Size(106, 194);
     this.Panel_Dynamic.TabIndex = 10;
     //
     //ComboBox_MntType
     //
     this.ComboBox_MntType.Anchor            = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.ComboBox_MntType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBox_MntType.DropDownWidth     = 90;
     this.ComboBox_MntType.FormattingEnabled = true;
     this.ComboBox_MntType.Location          = new System.Drawing.Point(191, 71);
     this.ComboBox_MntType.Name     = "ComboBox_MntType";
     this.ComboBox_MntType.Size     = new System.Drawing.Size(90, 20);
     this.ComboBox_MntType.TabIndex = 1;
     //
     //Label_MntType
     //
     this.Label_MntType.Anchor   = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.Label_MntType.AutoSize = true;
     this.Label_MntType.Location = new System.Drawing.Point(189, 51);
     this.Label_MntType.Name     = "Label_MntType";
     this.Label_MntType.Size     = new System.Drawing.Size(77, 12);
     this.Label_MntType.TabIndex = 3;
     this.Label_MntType.Text     = "监测数据类型";
     //
     //ComboBox_WorkingStage
     //
     this.ComboBox_WorkingStage.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBox_WorkingStage.DropDownWidth     = 90;
     this.ComboBox_WorkingStage.FormattingEnabled = true;
     this.ComboBox_WorkingStage.Location          = new System.Drawing.Point(5, 41);
     this.ComboBox_WorkingStage.Name     = "ComboBox_WorkingStage";
     this.ComboBox_WorkingStage.Size     = new System.Drawing.Size(90, 20);
     this.ComboBox_WorkingStage.TabIndex = 1;
     this.ToolTip1.SetToolTip(this.ComboBox_WorkingStage, "用来在绘制测斜位移的最值走势图时,在图表中标开挖工况信息");
     //
     //Label3
     //
     this.Label3.AutoSize = true;
     this.Label3.Location = new System.Drawing.Point(3, 21);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(53, 12);
     this.Label3.TabIndex = 3;
     this.Label3.Text     = "开挖工况";
     //
     //Panel_Static
     //
     this.Panel_Static.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
     this.Panel_Static.Controls.Add(this.Label3);
     this.Panel_Static.Controls.Add(this.ComboBox_WorkingStage);
     this.Panel_Static.Location = new System.Drawing.Point(186, 98);
     this.Panel_Static.Name     = "Panel_Static";
     this.Panel_Static.Size     = new System.Drawing.Size(106, 73);
     this.Panel_Static.TabIndex = 11;
     //
     //ComboBoxOpenedWorkbook
     //
     this.ComboBoxOpenedWorkbook.Anchor = (System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right);
     this.ComboBoxOpenedWorkbook.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBoxOpenedWorkbook.FormattingEnabled = true;
     this.ComboBoxOpenedWorkbook.Location          = new System.Drawing.Point(94, 15);
     this.ComboBoxOpenedWorkbook.Name     = "ComboBoxOpenedWorkbook";
     this.ComboBoxOpenedWorkbook.Size     = new System.Drawing.Size(335, 20);
     this.ComboBoxOpenedWorkbook.TabIndex = 12;
     //
     //CheckBox1
     //
     this.CheckBox1.AutoSize = true;
     this.CheckBox1.Location = new System.Drawing.Point(6, 77);
     this.CheckBox1.Name     = "CheckBox1";
     this.CheckBox1.Size     = new System.Drawing.Size(60, 16);
     this.CheckBox1.TabIndex = 1;
     this.CheckBox1.Text     = "自定义";
     this.CheckBox1.UseVisualStyleBackColor = true;
     //
     //ComboBox1
     //
     this.ComboBox1.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBox1.FormattingEnabled = true;
     this.ComboBox1.Items.AddRange(new object[] { "空间分布1" });
     this.ComboBox1.Location = new System.Drawing.Point(6, 100);
     this.ComboBox1.Name     = "ComboBox1";
     this.ComboBox1.Size     = new System.Drawing.Size(90, 20);
     this.ComboBox1.TabIndex = 2;
     //
     //frmDrawing_Mnt_Incline
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF((float)(6.0F), (float)(12.0F));
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(442, 318);
     this.Controls.Add(this.ComboBoxOpenedWorkbook);
     this.Controls.Add(this.Panel_Static);
     this.Controls.Add(this.Label_MntType);
     this.Controls.Add(this.ComboBox_MntType);
     this.Controls.Add(this.Panel_Dynamic);
     this.Controls.Add(this.GroupBox1);
     this.Controls.Add(this.btnDrawMonitorPoints);
     this.Controls.Add(this.ListBoxWorksheetsName);
     this.Controls.Add(this.chkBoxOpenNewExcel);
     this.Controls.Add(this.btnGenerate);
     this.Controls.Add(this.btnChooseMonitorData);
     this.MinimumSize = new System.Drawing.Size(333, 303);
     this.Name        = "frmDrawing_Mnt_Incline";
     this.Text        = "测斜曲线绘制";
     this.GroupBox1.ResumeLayout(false);
     this.GroupBox1.PerformLayout();
     this.Panel_Dynamic.ResumeLayout(false);
     this.Panel_Dynamic.PerformLayout();
     this.Panel_Static.ResumeLayout(false);
     this.Panel_Static.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Esempio n. 58
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();
     this.pointToolTip = new System.Windows.Forms.ToolTip( this.components );
     //
     // PointToolTip
     //
     this.pointToolTip.AutoPopDelay = 50000;
     this.pointToolTip.InitialDelay = 500;
     this.pointToolTip.ReshowDelay = 0;
     //
     // GraphPane
     //
     this.Name = "ZedGraphControl";
     this.Resize += new System.EventHandler( this.ChangeSize );
     this.MouseMove += new System.Windows.Forms.MouseEventHandler( this.ZedGraphControl_MouseMove );
 }
        public ServerNotifyIcon(ILogManager logManager,
                                IServerApplicationHost appHost,
                                IServerConfigurationManager configurationManager,
                                IUserManager userManager, ILibraryManager libraryManager,
                                IJsonSerializer jsonSerializer,
                                IItemRepository itemRepo, ILocalizationManager localization)
        {
            _logger               = logManager.GetLogger("MainWindow");
            _itemRepository       = itemRepo;
            _localization         = localization;
            _appHost              = appHost;
            _logManager           = logManager;
            _configurationManager = configurationManager;
            _userManager          = userManager;
            _libraryManager       = libraryManager;
            _jsonSerializer       = jsonSerializer;

            var components = new System.ComponentModel.Container();

            var resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));

            contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components);
            notifyIcon1       = new System.Windows.Forms.NotifyIcon(components);

            cmdExit             = new System.Windows.Forms.ToolStripMenuItem();
            cmdCommunity        = new System.Windows.Forms.ToolStripMenuItem();
            cmdLogWindow        = new System.Windows.Forms.ToolStripMenuItem();
            toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            cmdRestart          = new System.Windows.Forms.ToolStripMenuItem();
            cmdLibraryExplorer  = new System.Windows.Forms.ToolStripMenuItem();
            toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            cmdConfigure        = new System.Windows.Forms.ToolStripMenuItem();
            cmdBrowse           = new System.Windows.Forms.ToolStripMenuItem();
            cmdApiDocs          = new System.Windows.Forms.ToolStripMenuItem();
            cmdSwagger          = new System.Windows.Forms.ToolStripMenuItem();
            cmdGtihub           = new System.Windows.Forms.ToolStripMenuItem();

            //
            // notifyIcon1
            //
            notifyIcon1.ContextMenuStrip = contextMenuStrip1;
            notifyIcon1.Icon             = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
            notifyIcon1.Text             = "Media Browser";
            notifyIcon1.Visible          = true;
            //
            // contextMenuStrip1
            //
            contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                cmdBrowse,
                cmdConfigure,
                toolStripSeparator2,
                cmdLibraryExplorer,
                cmdRestart,
                toolStripSeparator1,
                cmdApiDocs,
                cmdLogWindow,
                cmdCommunity,
                cmdExit
            });
            contextMenuStrip1.Name            = "contextMenuStrip1";
            contextMenuStrip1.ShowCheckMargin = true;
            contextMenuStrip1.ShowImageMargin = false;
            contextMenuStrip1.Size            = new System.Drawing.Size(209, 214);
            //
            // cmdExit
            //
            cmdExit.Name = "cmdExit";
            cmdExit.Size = new System.Drawing.Size(208, 22);
            //
            // cmdCommunity
            //
            cmdCommunity.Name = "cmdCommunity";
            cmdCommunity.Size = new System.Drawing.Size(208, 22);
            //
            // cmdLogWindow
            //
            cmdLogWindow.CheckOnClick = true;
            cmdLogWindow.Name         = "cmdLogWindow";
            cmdLogWindow.Size         = new System.Drawing.Size(208, 22);
            //
            // toolStripSeparator1
            //
            toolStripSeparator1.Name = "toolStripSeparator1";
            toolStripSeparator1.Size = new System.Drawing.Size(205, 6);
            //
            // cmdRestart
            //
            cmdRestart.Name = "cmdRestart";
            cmdRestart.Size = new System.Drawing.Size(208, 22);
            //
            // cmdLibraryExplorer
            //
            cmdLibraryExplorer.Name = "cmdLibraryExplorer";
            cmdLibraryExplorer.Size = new System.Drawing.Size(208, 22);
            //
            // toolStripSeparator2
            //
            toolStripSeparator2.Name = "toolStripSeparator2";
            toolStripSeparator2.Size = new System.Drawing.Size(205, 6);
            //
            // cmdConfigure
            //
            cmdConfigure.Name = "cmdConfigure";
            cmdConfigure.Size = new System.Drawing.Size(208, 22);
            //
            // cmdBrowse
            //
            cmdBrowse.Name = "cmdBrowse";
            cmdBrowse.Size = new System.Drawing.Size(208, 22);
            //
            // cmdApiDocs
            //
            cmdApiDocs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                cmdSwagger,
                cmdGtihub
            });
            cmdApiDocs.Name = "cmdApiDocs";
            cmdApiDocs.Size = new System.Drawing.Size(208, 22);
            //
            // cmdSwagger
            //
            cmdSwagger.Name = "cmdSwagger";
            cmdSwagger.Size = new System.Drawing.Size(136, 22);
            //
            // cmdGtihub
            //
            cmdGtihub.Name = "cmdGtihub";
            cmdGtihub.Size = new System.Drawing.Size(136, 22);

            cmdExit.Click            += cmdExit_Click;
            cmdRestart.Click         += cmdRestart_Click;
            cmdLogWindow.Click       += cmdLogWindow_Click;
            cmdConfigure.Click       += cmdConfigure_Click;
            cmdCommunity.Click       += cmdCommunity_Click;
            cmdBrowse.Click          += cmdBrowse_Click;
            cmdLibraryExplorer.Click += cmdLibraryExplorer_Click;

            cmdSwagger.Click += cmdSwagger_Click;
            cmdGtihub.Click  += cmdGtihub_Click;

            LoadLogWindow(null, EventArgs.Empty);
            _logManager.LoggerLoaded += LoadLogWindow;
            _configurationManager.ConfigurationUpdated += Instance_ConfigurationUpdated;

            LocalizeText();

            if (_appHost.IsFirstRun)
            {
                Action action = () => notifyIcon1.ShowBalloonTip(5000, "Media Browser", "Welcome to Media Browser Server!", ToolTipIcon.Info);

                contextMenuStrip1.Invoke(action);
            }
        }
Esempio n. 60
0
 /// <summary>
 /// Initializes the component
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.Size       = new Size(500, 500);
     this.Text       = @"DirectX Tutorial";
 }