public FaceImageControl( FaceImage Face, FaceImageListControl FaceControlParent ) { this.Face = Face; this.FaceControlParent = FaceControlParent; InitializeComponent(); SetBounds( 0, 0, Face.Face.Width, Face.Face.Height ); List<MenuItem> menuitems = new List<MenuItem>(); MenuItem mi; mi = new MenuItem( "Edit URL" ); mi.Click += new EventHandler( mi_EditURL_Click ); menuitems.Add( mi ); mi = new MenuItem( "Edit Name" ); mi.Click += new EventHandler( mi_EditName_Click ); menuitems.Add( mi ); mi = new MenuItem( "Delete" ); mi.Click += new EventHandler( mi_Delete_Click ); menuitems.Add( mi ); RightClickMenuItems = menuitems.ToArray(); RightClickMenu = new System.Windows.Forms.ContextMenu( RightClickMenuItems ); ImageAttrs = new System.Drawing.Imaging.ImageAttributes(); ColorMatrix = new System.Drawing.Imaging.ColorMatrix(); }
public ServerLogForm(ShadowsocksController controller) { this.controller = controller; this.Icon = Icon.FromHandle(Resources.ssw128.GetHicon()); InitializeComponent(); this.Width = 760; Configuration config = controller.GetCurrentConfiguration(); if (config.configs.Count < 8) { this.Height = 300; } else if (config.configs.Count < 20) { this.Height = 300 + (config.configs.Count - 8) * 16; } else { this.Height = 500; } UpdateTexts(); UpdateLog(); this.contextMenu1 = new ContextMenu(new MenuItem[] { this.clearItem = CreateMenuItem("&Clear", new EventHandler(this.ClearItem_Click)), }); ServerDataGrid.ContextMenu = contextMenu1; controller.ConfigChanged += controller_ConfigChanged; }
public Notificator(IEventLogger eventLogger, ISettingsManager settingsManager) { _eventLogger = eventLogger; _settingsManager = settingsManager; var menuItem = new MenuItem(Strings.Exit); menuItem.Click += menuItem_Click; var contextMenu = new ContextMenu(new[] {menuItem}); _notifyIcon = new NotifyIcon { Icon = new Icon("TryIcon.ico"), Visible = true, BalloonTipTitle = Strings.Caution, Text = Strings.Initializing, ContextMenu = contextMenu }; var oneRunTimer = new Timer(3000) { AutoReset = false, Enabled = true }; oneRunTimer.Elapsed += _timer_Elapsed; // runs only once after aplication start var timer = new Timer(60000) { AutoReset = true, Enabled = true }; timer.Elapsed += _timer_Elapsed; }
public MainWindow() { InitializeComponent(); this.notifyIcon = new NotifyIcon(); contextMenu = new ContextMenu(); MenuItem refreshItem = new MenuItem(); refreshItem.Click += new System.EventHandler(this.refreshQuestionNo); refreshItem.Text = "Refresh"; contextMenu.MenuItems.Add(refreshItem); MenuItem openItem = new MenuItem(); openItem.Click += new System.EventHandler(this.showApp); openItem.Text = "Show"; contextMenu.MenuItems.Add(openItem); MenuItem exitItem = new MenuItem(); exitItem.Click += new System.EventHandler(this.exitApp); exitItem.Text = "Exit"; contextMenu.MenuItems.Add(exitItem); dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick); dispatcherTimer.Interval = new TimeSpan(0, 0, 1); }
public SysTrayApp() { // Create a simple tray menu with only one item. trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Sync Claims!",claims.CopyToDropbox); trayMenu.MenuItems.Add("Sync Registration!",registration.CopyToDropbox); trayMenu.MenuItems.Add("Sync Programme!", programme.CopyToDropbox); trayMenu.MenuItems.Add("Sync Programme Tiering!", progTiering.CopyToDropbox); trayMenu.MenuItems.Add("Sync Product!", product.CopyToDropbox); trayMenu.MenuItems.Add("Sync Product Tiering!", prodTiering.CopyToDropbox); trayMenu.MenuItems.Add("Sync Business Partner!", bp.CopyToDropbox); trayMenu.MenuItems.Add("Sync Search Functions!", searchFunctions.CopyToDropbox); trayMenu.MenuItems.Add("Sync Admin Center!", adminCenter.CopyToDropbox); trayMenu.MenuItems.Add("Sync Admin Amend!", adminAmend.CopyToDropbox); trayMenu.MenuItems.Add("Sync Admin Functions!", adminFunctions.CopyToDropbox); trayMenu.MenuItems.Add("-"); trayMenu.MenuItems.Add("Exit", OnExit); // Create a tray icon. In this example we use a // standard system icon for simplicity, but you // can of course use your own custom icon too. trayIcon = new NotifyIcon(); trayIcon.Text = "MyTrayApp"; trayIcon.Icon = new Icon(SystemIcons.Asterisk, 40, 40); // Add menu to tray icon and show it. trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; }
public static void Main() { System.IO.Stream icon = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("bakkappah.bakkappah.ico"); systray.Icon = new System.Drawing.Icon(icon); systray.Text = "bakkappah"; props = new Properties(); EventHandler quitHandler = new EventHandler(quit); ContextMenu menu = new ContextMenu(); MenuItem item = new MenuItem("Backup now!", new EventHandler(sync)); menu.MenuItems.Add(item); item = new MenuItem("Configuration", new EventHandler(config)); menu.MenuItems.Add(item); item = new MenuItem("-"); menu.MenuItems.Add(item); item = new MenuItem("Quit", quitHandler); menu.MenuItems.Add(item); systray.ContextMenu = menu; systray.Visible = true; timer.Tick += new EventHandler(sync); timer.Interval = props.Interval * 60000; timer.Start(); Application.ApplicationExit += quitHandler; Application.Run(); }
///<summary>Does not handle null values. Use zero. Does not handle adding family members. Returns true if patient has changed.</summary> public static bool AddPatsToMenu(ContextMenu menu,EventHandler onClick,string nameLF,long patNum) { //No need to check RemotingRole; no call to db. //add current patient if(buttonLastFivePatNums==null) { buttonLastFivePatNums=new List<long>(); } if(buttonLastFiveNames==null) { buttonLastFiveNames=new List<string>(); } if(patNum==0) { return false; } if(buttonLastFivePatNums.Count>0 && patNum==buttonLastFivePatNums[0]) {//same patient selected return false; } //Patient has changed buttonLastFivePatNums.Insert(0,patNum); buttonLastFiveNames.Insert(0,nameLF); if(buttonLastFivePatNums.Count>5) { buttonLastFivePatNums.RemoveAt(5); buttonLastFiveNames.RemoveAt(5); } return true; }
public Main() { InitializeComponent(); string headerText = string.Format("InfiniPad v{0}", Globals.getVersion()); this.Icon = Properties.Resources.icon; this.Text = headerText; hk = new Hotkeys(); nfi = new NotifyIcon(); nfi.Icon = Properties.Resources.icon; nfi.Visible = true; nfi.Text = headerText; nfi.MouseClick += nfiClicked; ContextMenu ctm = new ContextMenu(); ctm.MenuItems.Add("Exit", new EventHandler(nfiExit)); nfi.ContextMenu = ctm; hk.ReapplyHotkeys(); Globals.CreateMoveDir(); #region movefile #if !DEBUG Globals.moveFile(Globals.MoveToDir + "InfiniPad.exe"); #endif #endregion }
public MainForm() { InitializeComponent(); // Create a simple tray menu with only one item. trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Exit", OnExit); // Create a tray icon. In this example we use a // standard system icon for simplicity, but you // can of course use your own custom icon too. trayIcon = new NotifyIcon(); trayIcon.Text = "WurmTimer"; trayIcon.Icon = Properties.Resources.wurm_icon; // Add menu to tray icon and show it. trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; trayIcon.DoubleClick += new EventHandler(trayIcon_DoubleClick); trayIcon.BalloonTipClicked += new EventHandler(trayIcon_BalloonTipClicked); this.Icon = Properties.Resources.wurm_icon; players = new List<Player>(); if (!LoadConfig()) players.Add(new Player()); checkLog.Checked = true; }
internal SystemTray(KyruApplication app) { this.app = app; trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Log in", OnLogin); trayMenu.MenuItems.Add("Connect", OnRegisterNode); trayMenu.MenuItems.Add("-"); trayMenu.MenuItems.Add("System status", OnSystemStatus); trayMenu.MenuItems.Add("-"); trayMenu.MenuItems.Add("Exit", OnExit); trayIcon = new NotifyIcon(); nodesIcon = new List<Icon>(); for (int i = 0; i < 4; i++){ nodesIcon.Add(new Icon("Icons/kyru"+ i.ToString() + ".ico")); } //TimerElapsed(); trayIcon.MouseDoubleClick += OnLogin; trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; TimerElapsed(); KyruTimer.Register(this, 2); }
public WebBowserEmulator() { InitializeComponent(); for(int i = 0 ;i< No_of_Invokes;i++) { web[i] = new WebBrowser[No_of_Instance]; } // Create a simple tray menu with only two item. trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Emulate", OnEmulate); trayMenu.MenuItems.Add("Exit", OnExit); // Create a tray icon. In this example we use a // standard system icon for simplicity, but you // can of course use your own custom icon too. trayIcon = new NotifyIcon(); trayIcon.Text = "Web Browser Emulator"; trayIcon.Icon = new Icon(SystemIcons.Application, 40, 40); // Add menu to tray icon and show it. trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; //InvokeprogressBar.BackColor = Color.Transparent; }
public Options() { InitializeComponent(); _slots = new Slot[] { new Slot(1, lbl360_1, btnSlot1Settings), new Slot(2, lbl360_2, btnSlot2Settings), new Slot(3, lbl360_3, btnSlot3Settings), new Slot(4, lbl360_4, btnSlot4Settings) }; _menu = new ContextMenu(); _menu.MenuItems.Add("Options...", OnOptionsClick); _menu.MenuItems.Add("Exit", OnExit); _icon = new NotifyIcon(); _icon.Text = Assembly.GetExecutingAssembly().GetName().Name; _icon.Icon = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location); _icon.ContextMenu = _menu; _icon.Visible = true; _icon.DoubleClick += _icon_DoubleClick; lbl360_1.DoubleClick += Xbox360Label_DoubleClick; lbl360_2.DoubleClick += Xbox360Label_DoubleClick; lbl360_3.DoubleClick += Xbox360Label_DoubleClick; lbl360_4.DoubleClick += Xbox360Label_DoubleClick; _StartInterface(); }
private static void initContextMenu() { MenuItem PSNameItem = new MenuItem("PrintScreen v1.0"); MenuItem HelpItem = new MenuItem("Help"); MenuItem PSItem = new MenuItem("Screenshot"); MenuItem PSIItem = new MenuItem("Screenshot and post"); MenuItem QuitItem = new MenuItem("Quit"); PSNameItem.Enabled = false; QuitItem.Click += quit; PSItem.Click += PrintScreenToFile; PSIItem.Click += PrintScreenAndPost; HelpItem.Click += help; ContextMenu contextMenu = new ContextMenu(); contextMenu.MenuItems.Add(PSNameItem); contextMenu.MenuItems.Add("-"); contextMenu.MenuItems.Add(HelpItem); contextMenu.MenuItems.Add(PSItem); contextMenu.MenuItems.Add(PSIItem); contextMenu.MenuItems.Add("-"); contextMenu.MenuItems.Add(QuitItem); nIco.ContextMenu = contextMenu; }
public Form1() { this.components = new Container(); this.contextMenu1 = new ContextMenu(); this.menuItem1 = new MenuItem(); this.notifyIcon = new NotifyIcon(this.components); this.contextMenu1.MenuItems.AddRange( new MenuItem[] { this.menuItem1 }); this.menuItem1.Index = 0; this.menuItem1.Text = "E&xit"; menuItem1.Click += new EventHandler(menuItem1_Click); this.notifyIcon = new NotifyIcon(this.components); notifyIcon.Icon = G930Helper.Properties.Resources.logihelp; notifyIcon.ContextMenu = this.contextMenu1; notifyIcon.Text = "Logitech G930 Helper"; notifyIcon.Click += new EventHandler(notifyIcon_Click); InitializeComponent(); TimeoutToHide = TimeSpan.FromMinutes(5); System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(timer1_Tick); aTimer.Interval = 5000; aTimer.Enabled = true; }
void InitContext() { ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add("Play", new EventHandler(rightplay)); ContextMenu.MenuItems.Add("Reset", new EventHandler(rightreset)); ContextMenu.MenuItems.Add("Debugs", new EventHandler(rightdebugs)); }
private ContextMenu PrinterListContextMenu() { var contextMenu = new ContextMenu(); var properties = new MenuItem { Index = 0, Text = "Properties" }; properties.Click += Properties_Click; var setAsDefault = new MenuItem { Index = 1, Text = "Set As Default" }; setAsDefault.Click += SetAsDefault_Click; var viewDetails = new MenuItem { Index = 1, Text = "View Details" }; viewDetails.Click += ViewDetails_Click; contextMenu.MenuItems.AddRange(new MenuItem[] { setAsDefault , viewDetails,properties }); return contextMenu; }
public ConnectStatus(MainWindow window) { this.window = window; icon = new NotifyIcon(); icon.Visible = true; icon.DoubleClick += (sender, e) => { window.WindowState = System.Windows.WindowState.Normal; window.Activate(); }; var menu = new ContextMenu(); menu.MenuItems.Add(resources["AddRules"] as string, (sender, e) => { Rules.OpenEditor(false); }); menu.MenuItems.Add(resources["Exit"] as string, (sender, e) => { System.Windows.Application.Current.Shutdown(); }); icon.ContextMenu = menu; SetStatus(Status.Stopped, resources["NotConnected"] as string); System.Windows.Application.Current.Exit += (sender, e) => { icon.Dispose(); }; }
public ServerMBMain() { InitializeComponent(); _msg.SendToBack(); m_ComMgr = new MBTCOMLib.MbtComMgrClass(); m_ComMgr.SilentMode = true; m_ComMgr.EnableSplash(false); m_OrderClient = m_ComMgr.OrderClient; m_Quotes = m_ComMgr.Quotes; ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add("Messages", new EventHandler(rightmessage)); // tradelink bindings tl.newProviderName = Providers.MBTrading; tl.newFeatureRequest += new MessageArrayDelegate(tl_newFeatureRequest); tl.newSendOrderRequest += new OrderDelegate(tl_newSendOrderRequest); tl.newRegisterStocks += new DebugDelegate(tl_newRegisterStocks); tl.newOrderCancelRequest += new UIntDelegate(tl_newOrderCancelRequest); tl.newAcctRequest += new StringDelegate(tl_newAcctRequest); tl.newPosList += new PositionArrayDelegate(tl_newPosList); // mb bindings m_ComMgr.OnLogonSucceed += new IMbtComMgrEvents_OnLogonSucceedEventHandler(m_ComMgr_OnLogonSucceed); m_ComMgr.OnLogonDeny += new IMbtComMgrEvents_OnLogonDenyEventHandler(m_ComMgr_OnLogonDeny); m_OrderClient.OnSubmit += new _IMbtOrderClientEvents_OnSubmitEventHandler(m_OrderClient_OnSubmit); m_OrderClient.OnRemove += new _IMbtOrderClientEvents_OnRemoveEventHandler(m_OrderClient_OnRemove); m_OrderClient.OnPositionUpdated += new _IMbtOrderClientEvents_OnPositionUpdatedEventHandler(m_OrderClient_OnPositionUpdated); FormClosing += new FormClosingEventHandler(ServerMBMain_FormClosing); }
public SysTrayApp() { // Create a simple tray menu with only one item. trayMenu = new ContextMenu(); #if DEBUG trayMenu.MenuItems.Add("Register (DEBUG)", onDebugRegister); trayMenu.MenuItems.Add("Unregister (DEBUG)", onDebugUnregister); trayMenu.MenuItems.Add("-"); trayMenu.MenuItems.Add("Add dummy client", onDebugAddDummy); trayMenu.MenuItems.Add("-"); #endif trayMenu.MenuItems.Add("About", onAbout); trayMenu.MenuItems.Add("Client status", onStatus); trayMenu.MenuItems.Add("Test", onSelfTest); trayMenu.MenuItems.Add("Quit", OnQuit); // Create a tray icon. In this example we use a // standard system icon for simplicity, but you // can of course use your own custom icon too. trayIcon = new NotifyIcon(); trayIcon.Text = "Notification Client"; trayIcon.Icon = new Icon(Properties.Resources.systrayicon, 128, 128); // Add menu to tray icon and show it. trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; start_notification_client(); }
public System.Windows.Forms.ContextMenu GetContextMenu() { var menu = new System.Windows.Forms.ContextMenu(); menu.MenuItems.Add("Remove", new EventHandler(ContextMenuRemove)); menu.MenuItems.Add("Register Device", new EventHandler(ContextMenuAddDevice)); return menu; }
public SysTrayMenu() { InitializeComponent(); this.ClientSize = new System.Drawing.Size(FORM_WIDTH, Screen.PrimaryScreen.WorkingArea.Height); this.LostFocus += (object sender, EventArgs e) => MoveOutScreen(); MoveOutScreen(); trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Exit", OnExit); trayMenu.MenuItems.Add("Show", OnShow); trayIcon = new NotifyIcon(); trayIcon.Text = "eClipx"; trayIcon.Icon = new Icon(SystemIcons.Application, 40, 40); trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; KeyboardHook.CallWhen(true, true, Keys.X, GlobalHookKeyPress); Common.MyHandle = Handle; CurrentApp.StartWatcher(); clipboardItems = new MruList<int, ClipBoardElement>(CACHE_SIZE); controlItems = new List<ItemControl>(CACHE_SIZE); nextClipboardViewer = (IntPtr)User32.SetClipboardViewer((int)this.Handle); }
public LogViewer(string spacefilter, AssemblaTicketWindow.LoginSucceedDel loginsuccess,string User, string Pw) { namefilter = spacefilter; loginsucceed = loginsuccess; user = User; pw = Pw; if (loginsucceed == null) loginsucceed = new AssemblaTicketWindow.LoginSucceedDel(succeed); InitializeComponent(); if (namefilter!=string.Empty) { Text = PROGRAM + " " + namefilter; Invalidate(); } ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add("View", new EventHandler(view)); ContextMenu.MenuItems.Add("Ticket", new EventHandler(aticket)); ContextMenu.MenuItems.Add("Delete", new EventHandler(del)); DoubleClick += new EventHandler(LogViewerMain_DoubleClick); _logs.DoubleClick += new EventHandler(_logs_DoubleClick); _logs.SelectionMode = SelectionMode.MultiExtended; _logs.Sorted = true; init(); fsw = new System.IO.FileSystemWatcher(PATH,WILDEXT); fsw.IncludeSubdirectories = false; fsw.Changed += new System.IO.FileSystemEventHandler(fsw_Changed); fsw.Created += new System.IO.FileSystemEventHandler(fsw_Created); }
public PrivateMessageControl CreatePrivateMessageControl(string userName) { var pmControl = new PrivateMessageControl(userName) { Dock = DockStyle.Fill }; var isFriend = Program.FriendManager.Friends.Contains(userName); User user; var isOffline = !Program.TasClient.ExistingUsers.TryGetValue(userName, out user); var icon = isOffline ? ZklResources.grayuser : TextImage.GetUserImage(userName); var contextMenu = new ContextMenu(); if (!isFriend) { var closeButton = new MenuItem(); closeButton.Click += (s, e) => toolTabs.RemovePrivateTab(userName); contextMenu.MenuItems.Add(closeButton); } toolTabs.AddTab(userName, userName, pmControl, icon, ToolTipHandler.GetUserToolTipString(userName), 0); pmControl.ChatLine += (s, e) => { if (Program.TasClient.IsLoggedIn) { if (Program.TasClient.ExistingUsers.ContainsKey(userName)) Program.TasClient.Say(SayPlace.User, userName, e.Data, false); else Program.TasClient.Say(SayPlace.User, GlobalConst.NightwatchName, e.Data, false, string.Format("!pm {0} ", userName)); // send using PM } }; return pmControl; }
public SettingsTab() { InitializeComponent(); helpButton.MouseUp += helpButton_MouseUp; var isDesigner = Process.GetCurrentProcess().ProcessName == "devenv"; // workaround for this.DesignMode not working if (isDesigner) return; var cfRoot = Program.SpringPaths.WritableDirectory; cmDisplay = new ContextMenu(); cmDisplay.MenuItems.Add(new MenuItem("Edit engine settings (manually)", (o, x) => Utils.SafeStart(Program.SpringPaths.GetSpringConfigPath()))); cmDisplay.MenuItems.Add(new MenuItem("Edit LUPS settings", (o, x) => Utils.SafeStart(Utils.MakePath(cfRoot, "lups.cfg")))); cmDisplay.MenuItems.Add(new MenuItem("Edit cmdcolors", (o, x) => Utils.SafeStart(Utils.MakePath(cfRoot, "cmdcolors.txt")))); cmDisplay.MenuItems.Add(new MenuItem("Edit keybinds", (o, x) => Utils.SafeStart(Utils.MakePath(cfRoot, "LuaUI", "Configs", "zk_keys.lua")))); Program.ToolTip.SetText(cbSafeMode, "Turns off many things that are known to cause problems (on PC/Mac's with lower-end graphic cards). Use if the game is crashing.\nWill override Springsetting.cfg"); Program.ToolTip.SetText(cbHwCursor,"HW cursor is uneffected by ingame lag, but it can become invisible on some machines"); Program.ToolTip.SetText(cbWindowed, "Windowed: Run game on desktop in a window\nBorderless: Run game on desktop in a borderless window\nFullscreen: Run game fullscreen"); Program.ToolTip.SetText(button5, "Springsettings.cfg and Lups.cfg tuned for performance and compatibility; many graphical features are disabled"); Program.ToolTip.SetText(button1, "Springsettings.cfg and Lups.cfg for performance; some graphical features are disabled"); Program.ToolTip.SetText(button2, "Springsettings.cfg and Lups.cfg recommended for medium settings"); Program.ToolTip.SetText(button3, "Springsettings.cfg and Lups.cfg recommended for high settings"); Program.ToolTip.SetText(button4, "Springsettings.cfg and Lups.cfg recommended for Ultra settings"); Program.ToolTip.SetText(btnCustom, "Edit current Springsettings.cfg"); Program.ToolTip.SetText(btnRapid, "Monitor certain mods for latest version and auto-download them when available."); Program.ToolTip.SetText(developmentButton, "Go to Zero-K development page."); Program.ToolTip.SetText(lobbyLogButton, "Diagnostic log for ZKL lobby client ( Useful to report things such as: download issue or lobby issue)"); Program.ToolTip.SetText(gameLogButton, "Diagnostic log for Spring engine (Useful to report things such as: ingame graphic bug or game crash)"); Program.ToolTip.SetText(btnDefaults, "Local data reset?"); }
public Main() { InitializeComponent(); //initialize tray icon notifyIcon = new NotifyIcon(); Stream iconStream = System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/clientWPF;component/sync.ico")).Stream; notifyIcon.Icon = new System.Drawing.Icon(iconStream); notifyIconMenu = new System.Windows.Forms.ContextMenu(); System.Windows.Forms.MenuItem mnuItemSyncNow = new System.Windows.Forms.MenuItem(); System.Windows.Forms.MenuItem mnuItemShow = new System.Windows.Forms.MenuItem(); mnuItemShow.Text = "Show"; mnuItemShow.Click += new System.EventHandler(notifyIcon_Click); notifyIconMenu.MenuItems.Add(mnuItemShow); mnuItemSyncNow.Text = "SyncNow"; mnuItemSyncNow.Click += new System.EventHandler(syncMenuItem); notifyIconMenu.MenuItems.Add(mnuItemSyncNow); notifyIcon.Text = "SyncClient"; notifyIcon.ContextMenu = notifyIconMenu; notifyIcon.BalloonTipTitle = "App minimized to tray"; notifyIcon.BalloonTipText = "Sync sill running."; // Settings connectionSettings = new ConnectionSettings(); tAddress.Text = connectionSettings.readSetting("connection", "address"); tPort.Text = connectionSettings.readSetting("connection", "port"); tDirectory.Text = connectionSettings.readSetting("account", "directory"); tTimeout.Text = connectionSettings.readSetting("connection", "syncTime"); }
public GUI() { InitializeComponent(); RegisterHotKey(this.Handle, MYACTION_HOTKEY_ID, 0, (int)Keys.PrintScreen); // Create a simple tray menu with only one item. trayMenu = new ContextMenu(); trayMenu.MenuItems.Add("Exit", OnExit); // Create a tray icon. In this example we use a // standard system icon for simplicity, but you // can of course use your own custom icon too. trayIcon = new NotifyIcon(); trayIcon.Text = "PRTSC_TO_FILE"; trayIcon.Icon = Properties.Resources.MainIcon; // Add menu to tray icon and show it. trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; //Make .bmp format default imageFormatList.SelectedIndex = 0; //Make count output default outputFormatCombo.SelectedIndex = 0; startHiddenCheckBox.Checked = readRegistry(); }
private void btnLogin_Click(object sender, EventArgs e) { string response = network.HttpPost("http://www.status3gaming.com/gmtool/", "user="******"&pass="******"0"){ MessageBox.Show("Failed Login", "Response", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } else if (Regex.IsMatch(response, "[0-9A-Fa-f]{40}")) { Program.SetHash(response); MessageBox.Show("Successfully Logged In", "Response", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); this.Visible = false; //Create Context Menu for system tray. sysTrayMenu = new ContextMenu(); sysTrayMenu.MenuItems.Add("Check for new tickets...", OnRefresh); sysTrayMenu.MenuItems.Add("Quit", OnExit); sysTrayIcon = new NotifyIcon(); sysTrayIcon.Text = "GM Tool"; sysTrayIcon.Icon = Properties.Resources.Tray; // Add menu to tray icon and show it. sysTrayIcon.ContextMenu = sysTrayMenu; sysTrayIcon.Visible = true; sysTrayIcon.BalloonTipClicked += new EventHandler(sysTrayIcon_BaloonTipClicked); sysTrayIcon.ShowBalloonTip(5000, "GM Tool", "Tray Monitor Active", ToolTipIcon.None); timer.Start(); } }
public SysTrayApp() { // Create a simple tray menu trayMenu = new ContextMenu(); // Create a tray icon trayIcon = new NotifyIcon(); trayIcon.Text = "AudioSwitcher"; trayIcon.Icon = new Icon(Resources.speaker, 40, 40); // Add menu to tray icon and show it trayIcon.ContextMenu = trayMenu; trayIcon.Visible = true; // Count sound-devices foreach (var tuple in GetDevices()) { deviceCount += 1; } // Populate device list when menu is opened trayIcon.ContextMenu.Popup += PopulateDeviceList; // Register MEH on trayicon leftclick trayIcon.MouseUp += new MouseEventHandler(TrayIcon_LeftClick); }
public MainForm () { Click += new EventHandler (OnClick); MenuItem item1 = new MenuItem ("File"); MenuItem item2 = new MenuItem ("Print the file"); MenuItem item3 = new MenuItem ("Print Preview"); MenuItem item4 = new MenuItem ("-"); MenuItem item5 = new MenuItem ("Save"); MenuItem item6 = new MenuItem ("Exit"); MenuItem item7 = new MenuItem ("Edit"); item7.BarBreak = true; MenuItem item8 = new MenuItem ("Undo"); MenuItem item9 = new MenuItem ("Cut"); MenuItem item10 = new MenuItem ("Paste"); MenuItem item12 = new MenuItem ("Format Table"); item12.Break = true; MenuItem item13 = new MenuItem ("Format Page"); MenuItem item14 = new MenuItem (); item14.Break = true; MenuItem item15 = new MenuItem ("Help"); MenuItem[] items = new MenuItem[] {item1, item2, item3, item4, item5, item6, item7, item8, item9, item10, item12, item13, item14, item15}; Text = "Basic ContextMenu Sample"; context_menu = new ContextMenu (items); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.graphControl1 = new Netron.GraphLib.UI.GraphControl(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.addSubClassMenu = new System.Windows.Forms.MenuItem(); this.addJoinedSubclassMenu = new System.Windows.Forms.MenuItem(); this.removeMenu = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.showCodePreviewMenu = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.showPropertiesMenu = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // graphControl1 // this.graphControl1.AllowAddConnection = false; this.graphControl1.AllowAddShape = true; this.graphControl1.AllowDeleteShape = false; this.graphControl1.AllowDrop = true; this.graphControl1.AllowMoveShape = true; this.graphControl1.AutomataPulse = 10; this.graphControl1.AutoScroll = true; this.graphControl1.BackgroundColor = System.Drawing.Color.Gray; this.graphControl1.BackgroundImagePath = null; this.graphControl1.BackgroundType = Netron.GraphLib.CanvasBackgroundTypes.Gradient; this.graphControl1.DefaultConnectionPath = "Default"; this.graphControl1.DefaultLineEnd = Netron.GraphLib.ConnectionEnds.NoEnds; this.graphControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.graphControl1.DoTrack = false; this.graphControl1.EnableContextMenu = false; this.graphControl1.EnableLayout = false; this.graphControl1.FileName = null; this.graphControl1.GradientBottom = System.Drawing.Color.DarkGray; this.graphControl1.GradientTop = System.Drawing.Color.DimGray; this.graphControl1.GraphLayoutAlgorithm = Netron.GraphLib.GraphLayoutAlgorithms.SpringEmbedder; this.graphControl1.GridSize = 15; this.graphControl1.Location = new System.Drawing.Point(2, 2); this.graphControl1.Name = "graphControl1"; this.graphControl1.RestrictToCanvas = true; this.graphControl1.ShowGrid = false; this.graphControl1.Size = new System.Drawing.Size(844, 390); this.graphControl1.Snap = false; this.graphControl1.TabIndex = 0; this.graphControl1.Text = "graphControl1"; this.graphControl1.Zoom = 1F; this.graphControl1.ShowNodeProperties += new Netron.GraphLib.ShowPropsDelegate(this.graphControl1_ShowNodeProperties); this.graphControl1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.graphControl1_MouseUp); this.graphControl1.OnNewConnection += new Netron.GraphLib.NewConnection(this.graphControl1_OnNewConnection); // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.addSubClassMenu, this.addJoinedSubclassMenu, this.removeMenu, this.menuItem5, this.showCodePreviewMenu, this.menuItem4, this.showPropertiesMenu }); // // addSubClassMenu // this.addSubClassMenu.Index = 0; this.addSubClassMenu.Text = "Add SubClass"; this.addSubClassMenu.Click += new System.EventHandler(this.addSubClassMenu_Click); // // addJoinedSubclassMenu // this.addJoinedSubclassMenu.Index = 1; this.addJoinedSubclassMenu.Text = "Add Joined SubClass"; this.addJoinedSubclassMenu.Click += new System.EventHandler(this.addJoinedSubclassMenu_Click); // // removeMenu // this.removeMenu.Index = 2; this.removeMenu.Text = "Remove"; this.removeMenu.Click += new System.EventHandler(this.removeMenu_Click); // // menuItem5 // this.menuItem5.Index = 3; this.menuItem5.Text = "-"; // // showCodePreviewMenu // this.showCodePreviewMenu.Index = 4; this.showCodePreviewMenu.Text = "Preview code"; this.showCodePreviewMenu.Click += new System.EventHandler(this.showCodePreviewMenu_Click); // // menuItem4 // this.menuItem4.Index = 5; this.menuItem4.Text = "-"; // // showPropertiesMenu // this.showPropertiesMenu.Index = 6; this.showPropertiesMenu.Text = "Properties"; this.showPropertiesMenu.Click += new System.EventHandler(this.showPropertiesMenu_Click); // // ActiveRecordGraphView // this.DockableAreas = WeifenLuo.WinFormsUI.DockAreas.Document; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(848, 394); this.CloseButton = false; this.Controls.Add(this.graphControl1); this.DockPadding.All = 2; this.Name = "ActiveRecordGraphView"; this.Text = "ActiveRecord Graph"; this.Load += new System.EventHandler(this.ActiveRecordGraphView_Load); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> public void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WinLoader)); this.usersBox = new System.Windows.Forms.GroupBox(); this.usersLIST = new System.Windows.Forms.ListBox(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.fileMENU = new System.Windows.Forms.MenuItem(); this.StartMENU = new System.Windows.Forms.MenuItem(); this.ShutdownMENU = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.confMENU = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.exitMENU = new System.Windows.Forms.MenuItem(); this.serverMENU = new System.Windows.Forms.MenuItem(); this.reloadWorldMENU = new System.Windows.Forms.MenuItem(); this.reloadLoginMENU = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.infoMENU = new System.Windows.Forms.MenuItem(); this.kickMENU = new System.Windows.Forms.MenuItem(); this.banMENU = new System.Windows.Forms.MenuItem(); this.helpMENU = new System.Windows.Forms.MenuItem(); this.aboutMENU = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.wownetMENU = new System.Windows.Forms.MenuItem(); this.consoleBOX = new System.Windows.Forms.GroupBox(); this.consoleLISTBOX = new System.Windows.Forms.ListBox(); this.statisticBox1 = new System.Windows.Forms.GroupBox(); this.updateBUTTON = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.ipTEXT = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.itemnINFO = new System.Windows.Forms.Label(); this.intemLABEL = new System.Windows.Forms.Label(); this.spawnsINFO = new System.Windows.Forms.Label(); this.charsnINFO = new System.Windows.Forms.Label(); this.accnINFO = new System.Windows.Forms.Label(); this.usernINFO = new System.Windows.Forms.Label(); this.onoffINFO = new System.Windows.Forms.Label(); this.spanwsLABEL = new System.Windows.Forms.Label(); this.charsLABEL = new System.Windows.Forms.Label(); this.accLABEL = new System.Windows.Forms.Label(); this.usersonLABEL = new System.Windows.Forms.Label(); this.StatusLABEL = new System.Windows.Forms.Label(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.restoreMENU = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.exit2MENU = new System.Windows.Forms.MenuItem(); this.statusbar = new System.Windows.Forms.StatusBar(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.newAccountMenu = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.usersBox.SuspendLayout(); this.consoleBOX.SuspendLayout(); this.statisticBox1.SuspendLayout(); this.SuspendLayout(); // // usersBox // this.usersBox.Controls.Add(this.usersLIST); this.usersBox.Location = new System.Drawing.Point(624, 32); this.usersBox.Name = "usersBox"; this.usersBox.Size = new System.Drawing.Size(128, 616); this.usersBox.TabIndex = 0; this.usersBox.TabStop = false; this.usersBox.Text = "Users"; // // usersLIST // this.usersLIST.Location = new System.Drawing.Point(8, 16); this.usersLIST.Name = "usersLIST"; this.usersLIST.Size = new System.Drawing.Size(112, 589); this.usersLIST.TabIndex = 0; // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileMENU, this.serverMENU, this.helpMENU }); // // fileMENU // this.fileMENU.Index = 0; this.fileMENU.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.StartMENU, this.ShutdownMENU, this.menuItem4, this.confMENU, this.menuItem6, this.exitMENU }); this.fileMENU.Text = "&File"; // // StartMENU // this.StartMENU.Index = 0; this.StartMENU.Text = "&Start Server"; this.StartMENU.Click += new System.EventHandler(this.StartMENU_Click); // // ShutdownMENU // this.ShutdownMENU.Index = 1; this.ShutdownMENU.Text = "S&hutdown Server"; this.ShutdownMENU.Click += new System.EventHandler(this.ShutdownMENU_Click); // // menuItem4 // this.menuItem4.Index = 2; this.menuItem4.Text = "-"; // // confMENU // this.confMENU.Index = 3; this.confMENU.Text = "&Configuration"; this.confMENU.Click += new System.EventHandler(this.confMENU_Click); // // menuItem6 // this.menuItem6.Index = 4; this.menuItem6.Text = "-"; // // exitMENU // this.exitMENU.Index = 5; this.exitMENU.Text = "E&xit"; this.exitMENU.Click += new System.EventHandler(this.exitMENU_Click); // // serverMENU // this.serverMENU.Index = 1; this.serverMENU.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.reloadWorldMENU, this.reloadLoginMENU, this.menuItem2, this.infoMENU, this.kickMENU, this.banMENU, this.menuItem3, this.newAccountMenu, this.menuItem8 }); this.serverMENU.Text = "&Server"; // // reloadWorldMENU // this.reloadWorldMENU.Index = 0; this.reloadWorldMENU.Text = "Reload &World Scripts"; this.reloadWorldMENU.Click += new System.EventHandler(this.reloadWorldMENU_Click); // // reloadLoginMENU // this.reloadLoginMENU.Index = 1; this.reloadLoginMENU.Text = "Reload &Login Scripts"; this.reloadLoginMENU.Click += new System.EventHandler(this.reloadLoginMENU_Click); // // menuItem2 // this.menuItem2.Index = 2; this.menuItem2.Text = "-"; // // infoMENU // this.infoMENU.Index = 3; this.infoMENU.Text = "Edit &User"; this.infoMENU.Click += new System.EventHandler(this.infoMENU_Click); // // kickMENU // this.kickMENU.Index = 4; this.kickMENU.Text = "&Kick User"; // // banMENU // this.banMENU.Index = 5; this.banMENU.Text = "&Ban User"; this.banMENU.Click += new System.EventHandler(this.banMENU_Click); // // helpMENU // this.helpMENU.Index = 2; this.helpMENU.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.aboutMENU, this.menuItem1, this.wownetMENU }); this.helpMENU.Text = "&Help"; // // aboutMENU // this.aboutMENU.Index = 0; this.aboutMENU.Text = "&About"; // // menuItem1 // this.menuItem1.Index = 1; this.menuItem1.Text = "-"; // // wownetMENU // this.wownetMENU.Index = 2; this.wownetMENU.Text = "&WoWDaemon on NET"; this.wownetMENU.Click += new System.EventHandler(this.wownetMENU_Click); // // consoleBOX // this.consoleBOX.Controls.Add(this.consoleLISTBOX); this.consoleBOX.Location = new System.Drawing.Point(200, 32); this.consoleBOX.Name = "consoleBOX"; this.consoleBOX.Size = new System.Drawing.Size(408, 616); this.consoleBOX.TabIndex = 1; this.consoleBOX.TabStop = false; this.consoleBOX.Text = "Console Window"; // // consoleLISTBOX // this.consoleLISTBOX.Location = new System.Drawing.Point(8, 16); this.consoleLISTBOX.Name = "consoleLISTBOX"; this.consoleLISTBOX.Size = new System.Drawing.Size(392, 589); this.consoleLISTBOX.TabIndex = 0; // // statisticBox1 // this.statisticBox1.Controls.Add(this.updateBUTTON); this.statisticBox1.Controls.Add(this.pictureBox1); this.statisticBox1.Controls.Add(this.ipTEXT); this.statisticBox1.Controls.Add(this.label1); this.statisticBox1.Controls.Add(this.itemnINFO); this.statisticBox1.Controls.Add(this.intemLABEL); this.statisticBox1.Controls.Add(this.spawnsINFO); this.statisticBox1.Controls.Add(this.charsnINFO); this.statisticBox1.Controls.Add(this.accnINFO); this.statisticBox1.Controls.Add(this.usernINFO); this.statisticBox1.Controls.Add(this.onoffINFO); this.statisticBox1.Controls.Add(this.spanwsLABEL); this.statisticBox1.Controls.Add(this.charsLABEL); this.statisticBox1.Controls.Add(this.accLABEL); this.statisticBox1.Controls.Add(this.usersonLABEL); this.statisticBox1.Controls.Add(this.StatusLABEL); this.statisticBox1.Location = new System.Drawing.Point(16, 32); this.statisticBox1.Name = "statisticBox1"; this.statisticBox1.Size = new System.Drawing.Size(168, 616); this.statisticBox1.TabIndex = 2; this.statisticBox1.TabStop = false; this.statisticBox1.Text = "Statistics"; // // updateBUTTON // this.updateBUTTON.Location = new System.Drawing.Point(24, 544); this.updateBUTTON.Name = "updateBUTTON"; this.updateBUTTON.Size = new System.Drawing.Size(120, 32); this.updateBUTTON.TabIndex = 15; this.updateBUTTON.Text = "Update Info"; this.updateBUTTON.Click += new System.EventHandler(this.updateBUTTON_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(8, 440); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(152, 88); this.pictureBox1.TabIndex = 14; this.pictureBox1.TabStop = false; // // ipTEXT // this.ipTEXT.Location = new System.Drawing.Point(24, 408); this.ipTEXT.Name = "ipTEXT"; this.ipTEXT.ReadOnly = true; this.ipTEXT.Size = new System.Drawing.Size(120, 20); this.ipTEXT.TabIndex = 13; this.ipTEXT.Text = ""; // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(48, 392); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 16); this.label1.TabIndex = 12; this.label1.Text = "IP Adress:"; // // itemnINFO // this.itemnINFO.ForeColor = System.Drawing.Color.Blue; this.itemnINFO.Location = new System.Drawing.Point(120, 328); this.itemnINFO.Name = "itemnINFO"; this.itemnINFO.Size = new System.Drawing.Size(32, 16); this.itemnINFO.TabIndex = 11; this.itemnINFO.Text = "0"; // // intemLABEL // this.intemLABEL.Location = new System.Drawing.Point(8, 328); this.intemLABEL.Name = "intemLABEL"; this.intemLABEL.Size = new System.Drawing.Size(48, 23); this.intemLABEL.TabIndex = 10; this.intemLABEL.Text = "Itens :"; // // spawnsINFO // this.spawnsINFO.ForeColor = System.Drawing.Color.Blue; this.spawnsINFO.Location = new System.Drawing.Point(120, 264); this.spawnsINFO.Name = "spawnsINFO"; this.spawnsINFO.Size = new System.Drawing.Size(40, 16); this.spawnsINFO.TabIndex = 9; this.spawnsINFO.Text = "0"; // // charsnINFO // this.charsnINFO.ForeColor = System.Drawing.Color.Blue; this.charsnINFO.Location = new System.Drawing.Point(120, 200); this.charsnINFO.Name = "charsnINFO"; this.charsnINFO.Size = new System.Drawing.Size(32, 16); this.charsnINFO.TabIndex = 8; this.charsnINFO.Text = "0"; // // accnINFO // this.accnINFO.ForeColor = System.Drawing.Color.Blue; this.accnINFO.Location = new System.Drawing.Point(120, 144); this.accnINFO.Name = "accnINFO"; this.accnINFO.Size = new System.Drawing.Size(32, 16); this.accnINFO.TabIndex = 7; this.accnINFO.Text = "0"; // // usernINFO // this.usernINFO.ForeColor = System.Drawing.Color.Blue; this.usernINFO.Location = new System.Drawing.Point(120, 88); this.usernINFO.Name = "usernINFO"; this.usernINFO.Size = new System.Drawing.Size(32, 16); this.usernINFO.TabIndex = 6; this.usernINFO.Text = "0"; // // onoffINFO // this.onoffINFO.ForeColor = System.Drawing.Color.Red; this.onoffINFO.Location = new System.Drawing.Point(104, 32); this.onoffINFO.Name = "onoffINFO"; this.onoffINFO.Size = new System.Drawing.Size(40, 16); this.onoffINFO.TabIndex = 5; this.onoffINFO.Text = "Offline"; // // spanwsLABEL // this.spanwsLABEL.Location = new System.Drawing.Point(8, 264); this.spanwsLABEL.Name = "spanwsLABEL"; this.spanwsLABEL.Size = new System.Drawing.Size(80, 23); this.spanwsLABEL.TabIndex = 4; this.spanwsLABEL.Text = "Total Spawns :"; // // charsLABEL // this.charsLABEL.Location = new System.Drawing.Point(8, 200); this.charsLABEL.Name = "charsLABEL"; this.charsLABEL.Size = new System.Drawing.Size(96, 16); this.charsLABEL.TabIndex = 3; this.charsLABEL.Text = "Total Characters :"; // // accLABEL // this.accLABEL.Location = new System.Drawing.Point(8, 144); this.accLABEL.Name = "accLABEL"; this.accLABEL.Size = new System.Drawing.Size(88, 16); this.accLABEL.TabIndex = 2; this.accLABEL.Text = "Total Accounts :"; // // usersonLABEL // this.usersonLABEL.Location = new System.Drawing.Point(8, 88); this.usersonLABEL.Name = "usersonLABEL"; this.usersonLABEL.Size = new System.Drawing.Size(80, 16); this.usersonLABEL.TabIndex = 1; this.usersonLABEL.Text = "Users Online :"; // // StatusLABEL // this.StatusLABEL.Location = new System.Drawing.Point(8, 32); this.StatusLABEL.Name = "StatusLABEL"; this.StatusLABEL.Size = new System.Drawing.Size(48, 16); this.StatusLABEL.TabIndex = 0; this.StatusLABEL.Text = "Status :"; // // notifyIcon1 // this.notifyIcon1.ContextMenu = this.contextMenu1; this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); this.notifyIcon1.Text = "WoWDaemon Server"; this.notifyIcon1.Visible = true; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.restoreMENU, this.menuItem5, this.exit2MENU }); // // restoreMENU // this.restoreMENU.Index = 0; this.restoreMENU.Text = "&Restore"; this.restoreMENU.Click += new System.EventHandler(this.restoreMENU_Click); // // menuItem5 // this.menuItem5.Index = 1; this.menuItem5.Text = "-"; // // exit2MENU // this.exit2MENU.Index = 2; this.exit2MENU.Text = "E&xit"; this.exit2MENU.Click += new System.EventHandler(this.exit2MENU_Click); // // statusbar // this.statusbar.Location = new System.Drawing.Point(0, 661); this.statusbar.Name = "statusbar"; this.statusbar.Size = new System.Drawing.Size(776, 22); this.statusbar.TabIndex = 3; // // menuItem3 // this.menuItem3.Index = 6; this.menuItem3.Text = "-"; // // newAccountMenu // this.newAccountMenu.Index = 7; this.newAccountMenu.Text = "New Account"; this.newAccountMenu.Click += new System.EventHandler(this.newAccountMenu_Click); // // menuItem8 // this.menuItem8.Index = 8; this.menuItem8.Text = "Edit Account"; // // WinLoader // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(776, 683); this.Controls.Add(this.statusbar); this.Controls.Add(this.statisticBox1); this.Controls.Add(this.consoleBOX); this.Controls.Add(this.usersBox); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Menu = this.mainMenu1; this.Name = "WinLoader"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "WoWCraft 1.3"; this.Load += new System.EventHandler(this.WinLoader_Load); this.usersBox.ResumeLayout(false); this.consoleBOX.ResumeLayout(false); this.statisticBox1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// </summary> private void InitializeComponent() { System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] { "Rail", "TODO" }, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)))); this.label1 = new System.Windows.Forms.Label(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem_Graph = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.liquidAsset = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.debts = new System.Windows.Forms.Label(); this.detailView = new System.Windows.Forms.ListView(); this.colCategory = new System.Windows.Forms.ColumnHeader(); this.colSales = new System.Windows.Forms.ColumnHeader(); this.colCost = new System.Windows.Forms.ColumnHeader(); this.colBalance = new System.Windows.Forms.ColumnHeader(); this.tabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.fontDialog = new System.Windows.Forms.FontDialog(); this.tabControl.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.ContextMenu = this.contextMenu; this.label1.Location = new System.Drawing.Point(0, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 26); this.label1.TabIndex = 0; this.label1.Text = "Funds:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem_Graph, this.menuItem4, this.menuItem3 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "Change &Font..."; this.menuItem1.Click += new System.EventHandler(this.onChangeFont); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "&Edit Displayed Items..."; this.menuItem2.Click += new System.EventHandler(this.onCustomizeGenres); // // menuItem_Graph // this.menuItem_Graph.Index = 2; this.menuItem_Graph.Text = "Display &Graph"; // // menuItem4 // this.menuItem4.Index = 3; this.menuItem4.Text = "-"; // // menuItem3 // this.menuItem3.Index = 4; this.menuItem3.Text = "&Close"; // // liquidAsset // this.liquidAsset.ContextMenu = this.contextMenu; this.liquidAsset.Location = new System.Drawing.Point(56, 0); this.liquidAsset.Name = "liquidAsset"; this.liquidAsset.Size = new System.Drawing.Size(112, 26); this.liquidAsset.TabIndex = 1; this.liquidAsset.Text = "100,000,000"; this.liquidAsset.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.ContextMenu = this.contextMenu; this.label2.Location = new System.Drawing.Point(168, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 26); this.label2.TabIndex = 2; this.label2.Text = "Loans:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // debts // this.debts.ContextMenu = this.contextMenu; this.debts.Location = new System.Drawing.Point(224, 0); this.debts.Name = "debts"; this.debts.Size = new System.Drawing.Size(112, 26); this.debts.TabIndex = 3; this.debts.Text = "100,000,000"; this.debts.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // detailView // this.detailView.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.detailView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colCategory, this.colSales, this.colCost, this.colBalance }); this.detailView.ContextMenu = this.contextMenu; this.detailView.FullRowSelect = true; this.detailView.GridLines = true; this.detailView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; this.detailView.Items.AddRange(new System.Windows.Forms.ListViewItem[] { listViewItem1 }); this.detailView.Location = new System.Drawing.Point(0, 23); this.detailView.MultiSelect = false; this.detailView.Name = "detailView"; this.detailView.Size = new System.Drawing.Size(338, 79); this.detailView.TabIndex = 4; this.detailView.UseCompatibleStateImageBehavior = false; this.detailView.View = System.Windows.Forms.View.Details; // // colCategory // this.colCategory.Text = "Category"; this.colCategory.Width = 80; // // colSales // this.colSales.Text = "Sales"; this.colSales.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colSales.Width = 84; // // colCost // this.colCost.Text = "Cost"; this.colCost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colCost.Width = 84; // // colBalance // this.colBalance.Text = "Balance"; this.colBalance.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colBalance.Width = 84; // // tabControl // this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControl.ContextMenu = this.contextMenu; this.tabControl.Controls.Add(this.tabPage1); this.tabControl.Controls.Add(this.tabPage2); this.tabControl.Controls.Add(this.tabPage3); this.tabControl.HotTrack = true; this.tabControl.Location = new System.Drawing.Point(0, 102); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.Size = new System.Drawing.Size(322, 26); this.tabControl.TabIndex = 5; this.tabControl.SelectedIndexChanged += new System.EventHandler(this.onSelectorChanged); // // tabPage1 // this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Size = new System.Drawing.Size(314, 0); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Today"; // // tabPage2 // this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Size = new System.Drawing.Size(314, 0); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "This month"; // // tabPage3 // this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Size = new System.Drawing.Size(314, 0); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "This year"; // // AccountSummaryWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(340, 126); this.Controls.Add(this.tabControl); this.Controls.Add(this.detailView); this.Controls.Add(this.debts); this.Controls.Add(this.label2); this.Controls.Add(this.liquidAsset); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.MinimumSize = new System.Drawing.Size(348, 52); this.Name = "AccountSummaryWindow"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.Text = "Sales Report"; this.tabControl.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AccountList)); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.listViewAcoount = new System.Windows.Forms.ListView(); this.id = new System.Windows.Forms.ColumnHeader(); this.realName = new System.Windows.Forms.ColumnHeader(); this.department = new System.Windows.Forms.ColumnHeader(); this.userName = new System.Windows.Forms.ColumnHeader(); this.userToDate = new System.Windows.Forms.ColumnHeader(); this.flag = new System.Windows.Forms.ColumnHeader(); this.onlineStatus = new System.Windows.Forms.ColumnHeader(); this.adminLevel = new System.Windows.Forms.ColumnHeader(); this.dividerPanel1 = new DividerPanel.DividerPanel(); this.ITC_Next = new ImageTextControl.IMGTXTCTRL(); this.ITC_Prev = new ImageTextControl.IMGTXTCTRL(); this.ITCDelUser = new ImageTextControl.IMGTXTCTRL(); this.ITCEditUser = new ImageTextControl.IMGTXTCTRL(); this.ITCNewUser = new ImageTextControl.IMGTXTCTRL(); this.dividerPanel2 = new DividerPanel.DividerPanel(); this.dividerPanel3 = new DividerPanel.DividerPanel(); this.dividerPanel1.SuspendLayout(); this.dividerPanel3.SuspendLayout(); this.SuspendLayout(); // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "新建用户"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem2 // this.menuItem2.Index = -1; this.menuItem2.Text = "删除用户"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // menuItem4 // this.menuItem4.Index = -1; this.menuItem4.Text = "-"; // // menuItem5 // this.menuItem5.Index = -1; this.menuItem5.Text = "更改密码"; this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); // // menuItem6 // this.menuItem6.Index = -1; this.menuItem6.Text = "-"; // // menuItem3 // this.menuItem3.Index = -1; this.menuItem3.Text = "权限管理"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem7 // this.menuItem7.Index = -1; this.menuItem7.Text = "-"; // // menuItem8 // this.menuItem8.Index = -1; this.menuItem8.Text = "属性"; this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click); // // listViewAcoount // this.listViewAcoount.Activation = System.Windows.Forms.ItemActivation.TwoClick; this.listViewAcoount.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.id, this.realName, this.department, this.userName, this.userToDate, this.flag, this.onlineStatus, this.adminLevel }); this.listViewAcoount.ContextMenu = this.contextMenu1; this.listViewAcoount.Dock = System.Windows.Forms.DockStyle.Fill; this.listViewAcoount.FullRowSelect = true; this.listViewAcoount.GridLines = true; this.listViewAcoount.Location = new System.Drawing.Point(2, 2); this.listViewAcoount.MultiSelect = false; this.listViewAcoount.Name = "listViewAcoount"; this.listViewAcoount.Size = new System.Drawing.Size(504, 237); this.listViewAcoount.TabIndex = 4; this.listViewAcoount.UseCompatibleStateImageBehavior = false; this.listViewAcoount.View = System.Windows.Forms.View.Details; this.listViewAcoount.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listViewAcoount_MouseDown); // // id // this.id.Text = "编号"; this.id.Width = 44; // // realName // this.realName.Text = "用户姓名"; this.realName.Width = 81; // // department // this.department.Text = "所在部门"; this.department.Width = 113; // // userName // this.userName.Text = "用户名"; this.userName.Width = 79; // // userToDate // this.userToDate.Text = "使用时效"; this.userToDate.Width = 125; // // flag // this.flag.Text = "是否可用"; this.flag.Width = 64; // // onlineStatus // this.onlineStatus.Text = "在线状态"; // // adminLevel // this.adminLevel.Text = "管理等级"; // // dividerPanel1 // this.dividerPanel1.AllowDrop = true; this.dividerPanel1.Controls.Add(this.ITC_Next); this.dividerPanel1.Controls.Add(this.ITC_Prev); this.dividerPanel1.Controls.Add(this.ITCDelUser); this.dividerPanel1.Controls.Add(this.ITCEditUser); this.dividerPanel1.Controls.Add(this.ITCNewUser); this.dividerPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.dividerPanel1.Location = new System.Drawing.Point(10, 10); this.dividerPanel1.Margin = new System.Windows.Forms.Padding(20); this.dividerPanel1.Name = "dividerPanel1"; this.dividerPanel1.Size = new System.Drawing.Size(508, 38); this.dividerPanel1.TabIndex = 7; // // ITC_Next // this.ITC_Next.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_Next.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_Next.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_Next.IMG_SRC"))); this.ITC_Next.ITXT_ForeColor = System.Drawing.Color.Blue; this.ITC_Next.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_Next.ITXT_TEXT = "下一页"; this.ITC_Next.Location = new System.Drawing.Point(359, 10); this.ITC_Next.Name = "ITC_Next"; this.ITC_Next.Size = new System.Drawing.Size(66, 20); this.ITC_Next.TabIndex = 11; this.ITC_Next.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_Next_ITC_CLICIK); // // ITC_Prev // this.ITC_Prev.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_Prev.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_Prev.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_Prev.IMG_SRC"))); this.ITC_Prev.ITXT_ForeColor = System.Drawing.Color.Blue; this.ITC_Prev.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_Prev.ITXT_TEXT = "上一页"; this.ITC_Prev.Location = new System.Drawing.Point(287, 10); this.ITC_Prev.Name = "ITC_Prev"; this.ITC_Prev.Size = new System.Drawing.Size(66, 20); this.ITC_Prev.TabIndex = 10; this.ITC_Prev.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_Prev_ITC_CLICIK); // // ITCDelUser // this.ITCDelUser.ControlPoint = new System.Drawing.Point(0, 0); this.ITCDelUser.Cursor = System.Windows.Forms.Cursors.Hand; this.ITCDelUser.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITCDelUser.IMG_SRC"))); this.ITCDelUser.ITXT_ForeColor = System.Drawing.Color.Black; this.ITCDelUser.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITCDelUser.ITXT_TEXT = "删除帐号"; this.ITCDelUser.Location = new System.Drawing.Point(176, 10); this.ITCDelUser.Name = "ITCDelUser"; this.ITCDelUser.Size = new System.Drawing.Size(76, 18); this.ITCDelUser.TabIndex = 9; this.ITCDelUser.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITCDelUser_ITC_CLICIK); // // ITCEditUser // this.ITCEditUser.ControlPoint = new System.Drawing.Point(0, 0); this.ITCEditUser.Cursor = System.Windows.Forms.Cursors.Hand; this.ITCEditUser.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITCEditUser.IMG_SRC"))); this.ITCEditUser.ITXT_ForeColor = System.Drawing.Color.Black; this.ITCEditUser.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITCEditUser.ITXT_TEXT = "编辑帐号"; this.ITCEditUser.Location = new System.Drawing.Point(94, 10); this.ITCEditUser.Name = "ITCEditUser"; this.ITCEditUser.Size = new System.Drawing.Size(76, 18); this.ITCEditUser.TabIndex = 8; this.ITCEditUser.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITCEditUser_ITC_CLICIK); // // ITCNewUser // this.ITCNewUser.ControlPoint = new System.Drawing.Point(0, 0); this.ITCNewUser.Cursor = System.Windows.Forms.Cursors.Hand; this.ITCNewUser.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITCNewUser.IMG_SRC"))); this.ITCNewUser.ITXT_ForeColor = System.Drawing.Color.Black; this.ITCNewUser.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITCNewUser.ITXT_TEXT = "创建帐号"; this.ITCNewUser.Location = new System.Drawing.Point(12, 10); this.ITCNewUser.Name = "ITCNewUser"; this.ITCNewUser.Size = new System.Drawing.Size(76, 18); this.ITCNewUser.TabIndex = 7; this.ITCNewUser.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITCNewUser_ITC_CLICIK); // // dividerPanel2 // this.dividerPanel2.AllowDrop = true; this.dividerPanel2.Border3DStyle = System.Windows.Forms.Border3DStyle.Adjust; this.dividerPanel2.Dock = System.Windows.Forms.DockStyle.Top; this.dividerPanel2.Location = new System.Drawing.Point(10, 48); this.dividerPanel2.Name = "dividerPanel2"; this.dividerPanel2.Size = new System.Drawing.Size(508, 10); this.dividerPanel2.TabIndex = 9; // // dividerPanel3 // this.dividerPanel3.AllowDrop = true; this.dividerPanel3.AutoScrollMargin = new System.Drawing.Size(20, 20); this.dividerPanel3.Controls.Add(this.listViewAcoount); this.dividerPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.dividerPanel3.Location = new System.Drawing.Point(10, 58); this.dividerPanel3.Name = "dividerPanel3"; this.dividerPanel3.Padding = new System.Windows.Forms.Padding(2); this.dividerPanel3.Size = new System.Drawing.Size(508, 241); this.dividerPanel3.TabIndex = 10; // // AccountList // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(528, 309); this.Controls.Add(this.dividerPanel3); this.Controls.Add(this.dividerPanel2); this.Controls.Add(this.dividerPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "AccountList"; this.Padding = new System.Windows.Forms.Padding(10); this.Text = "用户列表"; this.Closed += new System.EventHandler(this.AccountList_Closed); this.Load += new System.EventHandler(this.AccountList_Load); this.dividerPanel1.ResumeLayout(false); this.dividerPanel3.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LibraryComponent)); this.listView = new Ima.Controls.ImageListView(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.menuItem_ListItem_Edit = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Separator_1 = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Copy = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Paste = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Rename = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Separator_2 = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Delete = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Separator_3 = new System.Windows.Forms.MenuItem(); this.menuItem_ListItem_Properties = new System.Windows.Forms.MenuItem(); this.previewImageList = new System.Windows.Forms.ImageList(this.components); this.tipListView = new System.Windows.Forms.ToolTip(this.components); this.tbBtn_Rotate_CCW = new System.Windows.Forms.ToolBarButton(); this.tbBtn_Rotate_CW = new System.Windows.Forms.ToolBarButton(); this.tbBtn_Edit = new System.Windows.Forms.ToolBarButton(); this.tbBtn_Separator_1 = new System.Windows.Forms.ToolBarButton(); this.tbBtn_Wallpaper = new System.Windows.Forms.ToolBarButton(); this.tbBtn_Print = new System.Windows.Forms.ToolBarButton(); this.panel.SuspendLayout(); this.bottomPanel.SuspendLayout(); this.SuspendLayout(); // // panel // this.panel.Controls.Add(this.listView); this.panel.Name = "panel"; this.panel.Size = new System.Drawing.Size(400, 288); // // imageList // this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); this.imageList.TransparentColor = System.Drawing.Color.White; // // toolBar // this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbBtn_Rotate_CCW, this.tbBtn_Rotate_CW, this.tbBtn_Edit, this.tbBtn_Separator_1, this.tbBtn_Wallpaper, this.tbBtn_Print }); this.toolBar.Name = "toolBar"; this.toolBar.Size = new System.Drawing.Size(400, 56); this.toolBar.ButtonClick += this.toolBar_ButtonClick; // // bottomPanel // this.bottomPanel.Location = new System.Drawing.Point(0, 288); this.bottomPanel.Name = "bottomPanel"; this.bottomPanel.Size = new System.Drawing.Size(400, 56); // // listView // this.listView.AllowDrop = true; this.listView.ContextMenu = this.contextMenu; this.listView.Dock = System.Windows.Forms.DockStyle.Fill; this.listView.HideSelection = false; this.listView.LabelEdit = true; this.listView.LargeImageList = this.previewImageList; this.listView.Location = new System.Drawing.Point(0, 0); this.listView.Name = "listView"; this.listView.Size = new System.Drawing.Size(400, 288); this.listView.Sorting = System.Windows.Forms.SortOrder.Ascending; this.listView.TabIndex = 0; this.listView.DoubleClick += this.listView_DoubleClick; this.listView.AfterLabelEdit += this.listView_AfterLabelEdit; this.listView.SelectedIndexChanged += this.listView_SelectedIndexChanged; this.listView.MouseMove += this.listView_MouseMove; this.listView.Enter += this.listView_Enter; // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem_ListItem_Edit, this.menuItem_ListItem_Separator_1, this.menuItem_ListItem_Copy, this.menuItem_ListItem_Paste, this.menuItem_ListItem_Rename, this.menuItem_ListItem_Separator_2, this.menuItem_ListItem_Delete, this.menuItem_ListItem_Separator_3, this.menuItem_ListItem_Properties }); // // menuItem_ListItem_Edit // this.menuItem_ListItem_Edit.DefaultItem = true; this.menuItem_ListItem_Edit.Index = 0; this.menuItem_ListItem_Edit.Text = "&Edit..."; this.menuItem_ListItem_Edit.Click += this.menuItem_ListItem_Edit_Click; // // menuItem_ListItem_Separator_1 // this.menuItem_ListItem_Separator_1.Index = 1; this.menuItem_ListItem_Separator_1.Text = "-"; // // menuItem_ListItem_Copy // this.menuItem_ListItem_Copy.Index = 2; this.menuItem_ListItem_Copy.Text = "&Copy"; this.menuItem_ListItem_Copy.Click += this.menuItem_ListItem_Copy_Click; // // menuItem_ListItem_Paste // this.menuItem_ListItem_Paste.Index = 3; this.menuItem_ListItem_Paste.Text = "&Paste"; this.menuItem_ListItem_Paste.Click += this.menuItem_ListItem_Paste_Click; // // menuItem_ListItem_Rename // this.menuItem_ListItem_Rename.Index = 4; this.menuItem_ListItem_Rename.Text = "&Rename..."; this.menuItem_ListItem_Rename.Click += this.menuItem_ListItem_Rename_Click; // // menuItem_ListItem_Separator_2 // this.menuItem_ListItem_Separator_2.Index = 5; this.menuItem_ListItem_Separator_2.Text = "-"; // // menuItem_ListItem_Delete // this.menuItem_ListItem_Delete.Index = 6; this.menuItem_ListItem_Delete.Text = "&Delete"; this.menuItem_ListItem_Delete.Click += this.menuItem_ListItem_Delete_Click; // // menuItem_ListItem_Separator_3 // this.menuItem_ListItem_Separator_3.Index = 7; this.menuItem_ListItem_Separator_3.Text = "-"; // // menuItem_ListItem_Properties // this.menuItem_ListItem_Properties.Index = 8; this.menuItem_ListItem_Properties.Text = "Propert&ies"; this.menuItem_ListItem_Properties.Click += this.menuItem_ListItem_Properties_Click; // // previewImageList // this.previewImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.previewImageList.ImageSize = new System.Drawing.Size(128, 128); this.previewImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("previewImageList.ImageStream"))); this.previewImageList.TransparentColor = System.Drawing.Color.Transparent; // // tipListView // this.tipListView.Active = false; this.tipListView.AutoPopDelay = 5000; this.tipListView.InitialDelay = 1000; this.tipListView.ReshowDelay = 500; this.tipListView.ShowAlways = true; // // tbBtn_Rotate_CCW // this.tbBtn_Rotate_CCW.ImageIndex = 0; this.tbBtn_Rotate_CCW.Text = "Rot. &Left"; // // tbBtn_Rotate_CW // this.tbBtn_Rotate_CW.ImageIndex = 1; this.tbBtn_Rotate_CW.Text = "Rot. &Right"; // // tbBtn_Edit // this.tbBtn_Edit.ImageIndex = 2; this.tbBtn_Edit.Text = "&Edit"; // // tbBtn_Separator_1 // this.tbBtn_Separator_1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbBtn_Wallpaper // this.tbBtn_Wallpaper.ImageIndex = 3; this.tbBtn_Wallpaper.Text = "&Wallpaper"; // // tbBtn_Print // this.tbBtn_Print.ImageIndex = 4; this.tbBtn_Print.Text = "&Print"; // // LibraryComponent // this.Name = "LibraryComponent"; this.panel.ResumeLayout(false); this.bottomPanel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReportForRdl)); this.viewer = new fyiReporting.RdlViewer.RdlViewer(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.menuScrollMode = new System.Windows.Forms.ContextMenu(); this.menuItemContinuous = new System.Windows.Forms.MenuItem(); this.menuItemContinuousFacing = new System.Windows.Forms.MenuItem(); this.menuItemFacing = new System.Windows.Forms.MenuItem(); this.menuItemSinglePage = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // viewer // this.viewer.Cursor = System.Windows.Forms.Cursors.Default; this.viewer.Folder = null; this.viewer.Location = new System.Drawing.Point(45, 56); this.viewer.Name = "viewer"; this.viewer.PageCurrent = 1; this.viewer.Parameters = null; this.viewer.ReportName = null; this.viewer.ScrollMode = fyiReporting.RdlViewer.ScrollModeEnum.Continuous; this.viewer.ShowParameterPanel = true; this.viewer.Size = new System.Drawing.Size(856, 453); this.viewer.SourceFile = null; this.viewer.SourceRdl = null; this.viewer.TabIndex = 2; this.viewer.Text = "rdlViewer1"; this.viewer.Zoom = 0.3662712F; this.viewer.ZoomMode = fyiReporting.RdlViewer.ZoomEnum.FitPage; // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0, 0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(987, 25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0, ""); this.imageListMain.Images.SetKeyName(1, ""); this.imageListMain.Images.SetKeyName(2, ""); this.imageListMain.Images.SetKeyName(3, ""); this.imageListMain.Images.SetKeyName(4, ""); this.imageListMain.Images.SetKeyName(5, ""); this.imageListMain.Images.SetKeyName(6, ""); // // menuScrollMode // this.menuScrollMode.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemContinuous, this.menuItemContinuousFacing, this.menuItemFacing, this.menuItemSinglePage }); // // menuItemContinuous // this.menuItemContinuous.Index = 0; this.menuItemContinuous.Text = "Continuous"; this.menuItemContinuous.Click += new System.EventHandler(this.menuItemContinuous_Click); // // menuItemContinuousFacing // this.menuItemContinuousFacing.Index = 1; this.menuItemContinuousFacing.Text = "Continuous Facing"; this.menuItemContinuousFacing.Click += new System.EventHandler(this.menuItemContinuousFacing_Click); // // menuItemFacing // this.menuItemFacing.Index = 2; this.menuItemFacing.Text = "Facing"; this.menuItemFacing.Click += new System.EventHandler(this.menuItemFacing_Click); // // menuItemSinglePage // this.menuItemSinglePage.Index = 3; this.menuItemSinglePage.Text = "Single Page"; this.menuItemSinglePage.Click += new System.EventHandler(this.menuItemSinglePage_Click); // // FormReportForRdl // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(987, 712); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.viewer); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormReportForRdl"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormRDLreport_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.ResumeLayout(false); }
/// <summary> /// 初始化组件 /// </summary> private void InitializeComponent() { #region 初始化选项卡组件 this.tabContent = new System.Windows.Forms.TabControl(); this.tabContent.Appearance = System.Windows.Forms.TabAppearance.FlatButtons; this.tabContent.Dock = System.Windows.Forms.DockStyle.Fill; this.tabContent.Location = new System.Drawing.Point(0, 0); this.tabContent.Multiline = true; this.tabContent.Name = "tabContent"; this.tabContent.SelectedIndex = 0; this.tabContent.Size = new System.Drawing.Size(389, 134); this.tabContent.TabIndex = 0; this.tabContent.ResumeLayout(false); TaskResultLog webPage = new TaskResultLog("SmartSpider", new List <Config.ExtractionRule>()); webPage.Controls.Clear(); webPage.Controls.Add(new WebBrowser() { Url = new Uri("http://www.google.com.hk"), Dock = DockStyle.Fill }); //加入默认选项卡 this.tabContent.Controls.Add(webPage); #endregion livTaskView = new TaskListView(); #region 初始化面板 this.Panel1.SuspendLayout(); this.Panel2.SuspendLayout(); this.SuspendLayout(); this.Dock = System.Windows.Forms.DockStyle.Fill; this.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.Location = new System.Drawing.Point(0, 0); this.Name = ""; this.Orientation = System.Windows.Forms.Orientation.Horizontal; //panel1 this.Panel1.Controls.Add(this.livTaskView); this.Panel1MinSize = 150; // panel2 this.Panel2.Controls.Add(this.tabContent); this.Panel2MinSize = 100; this.Size = new System.Drawing.Size(389, 288); this.SplitterDistance = 150; this.TabIndex = 0; //挂起Panel1 and panel2 this.Panel1.ResumeLayout(false); this.Panel2.ResumeLayout(false); this.ResumeLayout(false); #endregion #region 任务项订阅事件 this.livTaskView.OnTaskStatusChanges += new Config.OnTaskStatusChanges(livTaskView_OnTaskStatusChanges); this.livTaskView.OnTaskComplete += new Config.OnTaskComplete(livTaskView_OnTaskComplete); this.livTaskView.OnTaskStart += new Config.OnTaskStart(livTaskView_OnTaskStart); this.livTaskView.OnTaskPause += new Config.OnTaskPause(livTaskView_OnTaskPause); this.livTaskView.OnTaskStop += new Config.OnTaskStop(livTaskView_OnTaskStop); this.livTaskView.OnAppendSingileLog += new Config.OnAppendSingileLog(livTaskView_OnAppendSingileLog); this.livTaskView.OnAppendSingleResult += new Config.OnAppendSingleResult(livTaskView_OnAppendSingleResult); this.livTaskView.OnPublishResult += new Config.OnPublishResult(livTaskView_OnPublishResult); this.livTaskView.OnShowTaskRuntimeInfo += new OnShowTaskRuntimeInfo(livTaskView_OnShowTaskRuntimeInfo); #endregion #region 项卡快捷菜单初始化 tabContentQuickMenu = new System.Windows.Forms.ContextMenu(); tabContentQuickMenu.MenuItems.Add(new MenuItem("关闭", new EventHandler(tabContentQuickMenu_MenuItem_Close))); #endregion #region 项卡事件订阅 tabContent.Selected += new TabControlEventHandler(tabContent_Selected); tabContent.ContextMenu = tabContentQuickMenu; #endregion }
private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.statusBar1 = new System.Windows.Forms.StatusBar(); this.treeView1 = new System.Windows.Forms.TreeView(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1, this.label1 }); this.panel1.Location = new System.Drawing.Point(48, 40); this.panel1.Name = "panel1"; this.panel1.TabIndex = 0; // // button1 // this.button1.Location = new System.Drawing.Point(16, 16); this.button1.Name = "button1"; this.button1.TabIndex = 1; this.button1.Text = "button1"; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.Location = new System.Drawing.Point(16, 16); this.label1.Name = "label1"; this.label1.TabIndex = 2; this.label1.Text = "label1"; // // statusBar1 // this.statusBar1.Location = new System.Drawing.Point(0, 295); this.statusBar1.Name = "statusBar1"; this.statusBar1.Size = new System.Drawing.Size(320, 22); this.statusBar1.TabIndex = 1; this.statusBar1.Text = "statusBar1"; // // treeView1 // this.treeView1.ContextMenu = this.contextMenu1; this.treeView1.ImageIndex = -1; this.treeView1.Location = new System.Drawing.Point(64, 152); this.treeView1.Name = "treeView1"; this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { new System.Windows.Forms.TreeNode("Node0", new System.Windows.Forms.TreeNode[] { new System.Windows.Forms.TreeNode("Node1", new System.Windows.Forms.TreeNode[] { new System.Windows.Forms.TreeNode("Node2") }) }) }); this.treeView1.SelectedImageIndex = -1; this.treeView1.TabIndex = 2; this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown); this.treeView1.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.treeView1_AfterLabelEdit); // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem3 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "Edit"; // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "Expand"; // // menuItem3 // this.menuItem3.Index = 2; this.menuItem3.Text = "Collapse"; // // Form2 // this.ClientSize = new System.Drawing.Size(320, 317); this.DoubleClick += new System.EventHandler(this.Form2_DoubleClick); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.treeView1, this.statusBar1, this.panel1 }); this.Name = "Form2"; this.Text = "Form2"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <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.panel1 = new System.Windows.Forms.Panel(); this.timeScaleGroupBox = new System.Windows.Forms.GroupBox(); this.markersRadioButton = new System.Windows.Forms.RadioButton(); this.radioButton20 = new System.Windows.Forms.RadioButton(); this.radioButton19 = new System.Windows.Forms.RadioButton(); this.radioButton18 = new System.Windows.Forms.RadioButton(); this.radioButton17 = new System.Windows.Forms.RadioButton(); this.radioButton16 = new System.Windows.Forms.RadioButton(); this.radioButton15 = new System.Windows.Forms.RadioButton(); this.radioButton14 = new System.Windows.Forms.RadioButton(); this.radioButton13 = new System.Windows.Forms.RadioButton(); this.radioButton12 = new System.Windows.Forms.RadioButton(); this.radioButton11 = new System.Windows.Forms.RadioButton(); this.verticalScaleGroupBox = new System.Windows.Forms.GroupBox(); this.radioButton10 = new System.Windows.Forms.RadioButton(); this.radioButton9 = new System.Windows.Forms.RadioButton(); this.radioButton8 = new System.Windows.Forms.RadioButton(); this.radioButton7 = new System.Windows.Forms.RadioButton(); this.radioButton6 = new System.Windows.Forms.RadioButton(); this.radioButton5 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.graphOuterPanel = new System.Windows.Forms.Panel(); this.graphPanel = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.typeLegendOuterPanel = new System.Windows.Forms.Panel(); this.typeLegendPanel = new System.Windows.Forms.Panel(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.showWhoAllocatedMenuItem = new System.Windows.Forms.MenuItem(); this.exportDataMenuItem = new System.Windows.Forms.MenuItem(); this.exportSaveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.versionTimer = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); this.timeScaleGroupBox.SuspendLayout(); this.verticalScaleGroupBox.SuspendLayout(); this.graphOuterPanel.SuspendLayout(); this.typeLegendOuterPanel.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.Controls.Add(this.timeScaleGroupBox); this.panel1.Controls.Add(this.verticalScaleGroupBox); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(1308, 100); this.panel1.TabIndex = 0; // // timeScaleGroupBox // this.timeScaleGroupBox.Controls.Add(this.markersRadioButton); this.timeScaleGroupBox.Controls.Add(this.radioButton20); this.timeScaleGroupBox.Controls.Add(this.radioButton19); this.timeScaleGroupBox.Controls.Add(this.radioButton18); this.timeScaleGroupBox.Controls.Add(this.radioButton17); this.timeScaleGroupBox.Controls.Add(this.radioButton16); this.timeScaleGroupBox.Controls.Add(this.radioButton15); this.timeScaleGroupBox.Controls.Add(this.radioButton14); this.timeScaleGroupBox.Controls.Add(this.radioButton13); this.timeScaleGroupBox.Controls.Add(this.radioButton12); this.timeScaleGroupBox.Controls.Add(this.radioButton11); this.timeScaleGroupBox.Location = new System.Drawing.Point(512, 16); this.timeScaleGroupBox.Name = "timeScaleGroupBox"; this.timeScaleGroupBox.Size = new System.Drawing.Size(512, 64); this.timeScaleGroupBox.TabIndex = 1; this.timeScaleGroupBox.TabStop = false; this.timeScaleGroupBox.Text = "Time Scale: Seconds/Bar"; // // markersRadioButton // this.markersRadioButton.Enabled = false; this.markersRadioButton.Location = new System.Drawing.Point(432, 17); this.markersRadioButton.Name = "markersRadioButton"; this.markersRadioButton.Size = new System.Drawing.Size(75, 38); this.markersRadioButton.TabIndex = 11; this.markersRadioButton.Text = "Use Markers"; this.markersRadioButton.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton20 // this.radioButton20.Location = new System.Drawing.Point(16, 24); this.radioButton20.Name = "radioButton20"; this.radioButton20.Size = new System.Drawing.Size(48, 24); this.radioButton20.TabIndex = 10; this.radioButton20.Text = "0.05"; this.radioButton20.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton19 // this.radioButton19.Location = new System.Drawing.Point(387, 24); this.radioButton19.Name = "radioButton19"; this.radioButton19.Size = new System.Drawing.Size(40, 24); this.radioButton19.TabIndex = 9; this.radioButton19.Text = "50"; this.radioButton19.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton18 // this.radioButton18.Location = new System.Drawing.Point(350, 24); this.radioButton18.Name = "radioButton18"; this.radioButton18.Size = new System.Drawing.Size(40, 24); this.radioButton18.TabIndex = 8; this.radioButton18.Text = "20"; this.radioButton18.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton17 // this.radioButton17.Location = new System.Drawing.Point(310, 24); this.radioButton17.Name = "radioButton17"; this.radioButton17.Size = new System.Drawing.Size(40, 24); this.radioButton17.TabIndex = 7; this.radioButton17.Text = "10"; this.radioButton17.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton16 // this.radioButton16.Location = new System.Drawing.Point(105, 24); this.radioButton16.Name = "radioButton16"; this.radioButton16.Size = new System.Drawing.Size(42, 24); this.radioButton16.TabIndex = 6; this.radioButton16.Text = "0.2"; this.radioButton16.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton15 // this.radioButton15.Location = new System.Drawing.Point(152, 24); this.radioButton15.Name = "radioButton15"; this.radioButton15.Size = new System.Drawing.Size(42, 24); this.radioButton15.TabIndex = 5; this.radioButton15.Text = "0.5"; this.radioButton15.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton14 // this.radioButton14.Location = new System.Drawing.Point(273, 24); this.radioButton14.Name = "radioButton14"; this.radioButton14.Size = new System.Drawing.Size(32, 24); this.radioButton14.TabIndex = 4; this.radioButton14.Text = "5"; this.radioButton14.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton13 // this.radioButton13.Location = new System.Drawing.Point(236, 24); this.radioButton13.Name = "radioButton13"; this.radioButton13.Size = new System.Drawing.Size(32, 24); this.radioButton13.TabIndex = 3; this.radioButton13.Text = "2"; this.radioButton13.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton12 // this.radioButton12.Location = new System.Drawing.Point(199, 24); this.radioButton12.Name = "radioButton12"; this.radioButton12.Size = new System.Drawing.Size(32, 24); this.radioButton12.TabIndex = 2; this.radioButton12.Text = "1"; this.radioButton12.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton11 // this.radioButton11.Location = new System.Drawing.Point(64, 24); this.radioButton11.Name = "radioButton11"; this.radioButton11.Size = new System.Drawing.Size(46, 24); this.radioButton11.TabIndex = 1; this.radioButton11.Text = "0.1"; this.radioButton11.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // verticalScaleGroupBox // this.verticalScaleGroupBox.Controls.Add(this.radioButton10); this.verticalScaleGroupBox.Controls.Add(this.radioButton9); this.verticalScaleGroupBox.Controls.Add(this.radioButton8); this.verticalScaleGroupBox.Controls.Add(this.radioButton7); this.verticalScaleGroupBox.Controls.Add(this.radioButton6); this.verticalScaleGroupBox.Controls.Add(this.radioButton5); this.verticalScaleGroupBox.Controls.Add(this.radioButton4); this.verticalScaleGroupBox.Controls.Add(this.radioButton3); this.verticalScaleGroupBox.Controls.Add(this.radioButton2); this.verticalScaleGroupBox.Controls.Add(this.radioButton1); this.verticalScaleGroupBox.Location = new System.Drawing.Point(24, 16); this.verticalScaleGroupBox.Name = "verticalScaleGroupBox"; this.verticalScaleGroupBox.Size = new System.Drawing.Size(464, 64); this.verticalScaleGroupBox.TabIndex = 0; this.verticalScaleGroupBox.TabStop = false; this.verticalScaleGroupBox.Text = "Vertical Scale: KB/Pixel"; // // radioButton10 // this.radioButton10.Location = new System.Drawing.Point(400, 24); this.radioButton10.Name = "radioButton10"; this.radioButton10.Size = new System.Drawing.Size(56, 24); this.radioButton10.TabIndex = 9; this.radioButton10.Text = "1000"; this.radioButton10.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton9 // this.radioButton9.Location = new System.Drawing.Point(352, 24); this.radioButton9.Name = "radioButton9"; this.radioButton9.Size = new System.Drawing.Size(48, 24); this.radioButton9.TabIndex = 8; this.radioButton9.Text = "500"; this.radioButton9.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton8 // this.radioButton8.Location = new System.Drawing.Point(304, 24); this.radioButton8.Name = "radioButton8"; this.radioButton8.Size = new System.Drawing.Size(48, 24); this.radioButton8.TabIndex = 7; this.radioButton8.Text = "200"; this.radioButton8.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton7 // this.radioButton7.Location = new System.Drawing.Point(216, 24); this.radioButton7.Name = "radioButton7"; this.radioButton7.Size = new System.Drawing.Size(40, 24); this.radioButton7.TabIndex = 6; this.radioButton7.Text = "50"; this.radioButton7.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton6 // this.radioButton6.Location = new System.Drawing.Point(136, 24); this.radioButton6.Name = "radioButton6"; this.radioButton6.Size = new System.Drawing.Size(40, 24); this.radioButton6.TabIndex = 5; this.radioButton6.Text = "10"; this.radioButton6.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton5 // this.radioButton5.Location = new System.Drawing.Point(256, 24); this.radioButton5.Name = "radioButton5"; this.radioButton5.Size = new System.Drawing.Size(48, 24); this.radioButton5.TabIndex = 4; this.radioButton5.Text = "100"; this.radioButton5.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton4 // this.radioButton4.Location = new System.Drawing.Point(176, 24); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(40, 24); this.radioButton4.TabIndex = 3; this.radioButton4.Text = "20"; this.radioButton4.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton3 // this.radioButton3.Location = new System.Drawing.Point(96, 24); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(32, 24); this.radioButton3.TabIndex = 2; this.radioButton3.Text = "5"; this.radioButton3.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton2 // this.radioButton2.Location = new System.Drawing.Point(56, 24); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(32, 24); this.radioButton2.TabIndex = 1; this.radioButton2.Text = "2"; this.radioButton2.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // radioButton1 // this.radioButton1.Location = new System.Drawing.Point(16, 24); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(32, 24); this.radioButton1.TabIndex = 0; this.radioButton1.Text = "1"; this.radioButton1.CheckedChanged += new System.EventHandler(this.CheckedChanged); // // graphOuterPanel // this.graphOuterPanel.AutoScroll = true; this.graphOuterPanel.BackColor = System.Drawing.SystemColors.Control; this.graphOuterPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.graphOuterPanel.Controls.Add(this.graphPanel); this.graphOuterPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.graphOuterPanel.Location = new System.Drawing.Point(0, 100); this.graphOuterPanel.Name = "graphOuterPanel"; this.graphOuterPanel.Size = new System.Drawing.Size(912, 561); this.graphOuterPanel.TabIndex = 1; // // graphPanel // this.graphPanel.BackColor = System.Drawing.SystemColors.Control; this.graphPanel.Location = new System.Drawing.Point(0, 0); this.graphPanel.Name = "graphPanel"; this.graphPanel.Size = new System.Drawing.Size(488, 528); this.graphPanel.TabIndex = 0; this.graphPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.graphPanel_MouseDown); this.graphPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.graphPanel_MouseMove); this.graphPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.graphPanel_Paint); // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Right; this.splitter1.Location = new System.Drawing.Point(912, 100); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(4, 561); this.splitter1.TabIndex = 2; this.splitter1.TabStop = false; // // typeLegendOuterPanel // this.typeLegendOuterPanel.AutoScroll = true; this.typeLegendOuterPanel.BackColor = System.Drawing.SystemColors.Control; this.typeLegendOuterPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.typeLegendOuterPanel.Controls.Add(this.typeLegendPanel); this.typeLegendOuterPanel.Dock = System.Windows.Forms.DockStyle.Right; this.typeLegendOuterPanel.Location = new System.Drawing.Point(916, 100); this.typeLegendOuterPanel.Name = "typeLegendOuterPanel"; this.typeLegendOuterPanel.Size = new System.Drawing.Size(392, 561); this.typeLegendOuterPanel.TabIndex = 3; // // typeLegendPanel // this.typeLegendPanel.BackColor = System.Drawing.SystemColors.Control; this.typeLegendPanel.Location = new System.Drawing.Point(0, 0); this.typeLegendPanel.Name = "typeLegendPanel"; this.typeLegendPanel.Size = new System.Drawing.Size(384, 504); this.typeLegendPanel.TabIndex = 0; this.typeLegendPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.typeLegendPanel_MouseDown); this.typeLegendPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.typeLegendPanel_Paint); // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.showWhoAllocatedMenuItem, this.exportDataMenuItem }); // // showWhoAllocatedMenuItem // this.showWhoAllocatedMenuItem.Index = 0; this.showWhoAllocatedMenuItem.Text = "Show Who Allocated"; this.showWhoAllocatedMenuItem.Click += new System.EventHandler(this.showWhoAllocatedMenuItem_Click); // // exportDataMenuItem // this.exportDataMenuItem.Index = 1; this.exportDataMenuItem.Text = "Export Data to File..."; this.exportDataMenuItem.Click += new System.EventHandler(this.exportMenuItem_Click); // // exportSaveFileDialog // this.exportSaveFileDialog.FileName = "doc1"; // // versionTimer // this.versionTimer.Enabled = true; this.versionTimer.Tick += new System.EventHandler(this.versionTimer_Tick); // // AgeHistogram // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(1308, 661); this.Controls.Add(this.graphOuterPanel); this.Controls.Add(this.splitter1); this.Controls.Add(this.typeLegendOuterPanel); this.Controls.Add(this.panel1); this.Name = "AgeHistogram"; this.Text = "Histogram by Age for Live Objects"; this.panel1.ResumeLayout(false); this.timeScaleGroupBox.ResumeLayout(false); this.verticalScaleGroupBox.ResumeLayout(false); this.graphOuterPanel.ResumeLayout(false); this.typeLegendOuterPanel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ClientView)); this.dsClients1 = new BPS.BLL.Clients.DataSets.dsClients(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.cbSpecial = new System.Windows.Forms.CheckBox(); this.cbIsInner = new System.Windows.Forms.CheckBox(); this.tbName = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.dataGrid1 = new AM_Controls.DataGridV(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.dataView1 = new System.Data.DataView(); this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle(); this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn(); this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn(); this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn(); this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn(); this.panel2 = new System.Windows.Forms.Panel(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton3 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton5 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton6 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton7 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton8 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton9 = new System.Windows.Forms.ToolBarButton(); this.dvGroups = new System.Data.DataView(); this.panel3 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel(); this.dataGridV1 = new AM_Controls.DataGridV(); this.dvClientRate = new System.Data.DataView(); this.dsInterestRate1 = new BPS.BLL.Clients.DataSets.dsInterestRate(); this.dataGridTableStyle2 = new System.Windows.Forms.DataGridTableStyle(); this.ReqType = new System.Windows.Forms.DataGridTextBoxColumn(); this.ReqTypeName = new System.Windows.Forms.DataGridTextBoxColumn(); this.RateNormal = new System.Windows.Forms.DataGridTextBoxColumn(); this.RateBlack = new System.Windows.Forms.DataGridTextBoxColumn(); this.dvRateList = new System.Data.DataView(); this.dsInterestRateList1 = new BPS.BLL.Clients.DataSets.dsInterestRateList(); this.dsReqTypes1 = new BPS.BLL.ClientsRequests.DataSets.dsReqTypes(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.mnuEdit = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.dsOrgsClients1 = new BPS.BLL.Clients.DataSets.dsOrgsClients(); ((System.ComponentModel.ISupportInitialize)(this.dsClients1)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataView1)).BeginInit(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dvGroups)).BeginInit(); this.panel3.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridV1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dvClientRate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInterestRate1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dvRateList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInterestRateList1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsReqTypes1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsOrgsClients1)).BeginInit(); this.SuspendLayout(); // // dsClients1 // this.dsClients1.DataSetName = "dsClients"; this.dsClients1.Locale = new System.Globalization.CultureInfo("ru-RU"); // // groupBox1 // this.groupBox1.Controls.Add(this.cbSpecial); this.groupBox1.Controls.Add(this.cbIsInner); this.groupBox1.Controls.Add(this.tbName); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox1.Location = new System.Drawing.Point(0, 28); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(792, 38); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "Фильтр"; // // cbSpecial // this.cbSpecial.Location = new System.Drawing.Point(520, 14); this.cbSpecial.Name = "cbSpecial"; this.cbSpecial.TabIndex = 4; this.cbSpecial.Text = "Специальные"; // // cbIsInner // this.cbIsInner.Location = new System.Drawing.Point(414, 14); this.cbIsInner.Name = "cbIsInner"; this.cbIsInner.Size = new System.Drawing.Size(88, 24); this.cbIsInner.TabIndex = 3; this.cbIsInner.Text = "Внутренний"; // // tbName // this.tbName.Location = new System.Drawing.Point(64, 16); this.tbName.Name = "tbName"; this.tbName.Size = new System.Drawing.Size(184, 21); this.tbName.TabIndex = 0; this.tbName.Text = ""; // // label2 // this.label2.Location = new System.Drawing.Point(12, 20); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(48, 16); this.label2.TabIndex = 2; this.label2.Text = "Клиент:"; // // 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; // // dataGrid1 // this.dataGrid1._CanEdit = false; this.dataGrid1._InvisibleColumn = 0; this.dataGrid1.AlternatingBackColor = System.Drawing.Color.LightGray; this.dataGrid1.BackColor = System.Drawing.Color.Gainsboro; this.dataGrid1.CaptionVisible = false; this.dataGrid1.ContextMenu = this.contextMenu1; this.dataGrid1.DataMember = ""; this.dataGrid1.DataSource = this.dataView1; this.dataGrid1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGrid1.GridLineColor = System.Drawing.Color.LightGray; this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGrid1.Location = new System.Drawing.Point(0, 0); this.dataGrid1.Name = "dataGrid1"; this.dataGrid1.ReadOnly = true; this.dataGrid1.Size = new System.Drawing.Size(792, 391); this.dataGrid1.TabIndex = 1; this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this.dataGridTableStyle1 }); this.dataGrid1.DoubleClick += new System.EventHandler(this.dataGrid1_DoubleClick); this.dataGrid1.Paint += new System.Windows.Forms.PaintEventHandler(this.dataGrid1_Paint); // // dataView1 // this.dataView1.Table = this.dsClients1.Clients; // // dataGridTableStyle1 // this.dataGridTableStyle1.AlternatingBackColor = System.Drawing.Color.LightGray; this.dataGridTableStyle1.BackColor = System.Drawing.Color.Gainsboro; this.dataGridTableStyle1.DataGrid = this.dataGrid1; this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this.dataGridTextBoxColumn1, this.dataGridTextBoxColumn3, this.dataGridTextBoxColumn2, this.dataGridTextBoxColumn4 }); this.dataGridTableStyle1.GridLineColor = System.Drawing.Color.LightGray; this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGridTableStyle1.MappingName = "Clients"; // // dataGridTextBoxColumn1 // this.dataGridTextBoxColumn1.Format = ""; this.dataGridTextBoxColumn1.FormatInfo = null; this.dataGridTextBoxColumn1.MappingName = "ClientID"; this.dataGridTextBoxColumn1.NullText = ""; this.dataGridTextBoxColumn1.Width = 40; // // dataGridTextBoxColumn3 // this.dataGridTextBoxColumn3.Format = ""; this.dataGridTextBoxColumn3.FormatInfo = null; this.dataGridTextBoxColumn3.HeaderText = "Группа"; this.dataGridTextBoxColumn3.MappingName = "ClientGroupName"; this.dataGridTextBoxColumn3.NullText = ""; this.dataGridTextBoxColumn3.Width = 130; // // dataGridTextBoxColumn2 // this.dataGridTextBoxColumn2.Format = ""; this.dataGridTextBoxColumn2.FormatInfo = null; this.dataGridTextBoxColumn2.HeaderText = "Имя клиента"; this.dataGridTextBoxColumn2.MappingName = "ClientName"; this.dataGridTextBoxColumn2.NullText = ""; this.dataGridTextBoxColumn2.Width = 250; // // dataGridTextBoxColumn4 // this.dataGridTextBoxColumn4.Format = ""; this.dataGridTextBoxColumn4.FormatInfo = null; this.dataGridTextBoxColumn4.HeaderText = "Примечание"; this.dataGridTextBoxColumn4.MappingName = "ClientRemarks"; this.dataGridTextBoxColumn4.NullText = ""; this.dataGridTextBoxColumn4.Width = 330; // // panel2 // this.panel2.Controls.Add(this.groupBox1); this.panel2.Controls.Add(this.toolBar1); this.panel2.Dock = System.Windows.Forms.DockStyle.Top; this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(792, 66); this.panel2.TabIndex = 10; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton1, this.toolBarButton2, this.toolBarButton4, this.toolBarButton3, this.toolBarButton5, this.toolBarButton6, this.toolBarButton7, this.toolBarButton8, this.toolBarButton9 }); this.toolBar1.ButtonSize = new System.Drawing.Size(100, 22); 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(792, 28); this.toolBar1.TabIndex = 0; this.toolBar1.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // toolBarButton1 // this.toolBarButton1.ImageIndex = 0; this.toolBarButton1.Text = "Новый"; // // toolBarButton2 // this.toolBarButton2.ImageIndex = 1; this.toolBarButton2.Text = "Открыть"; // // toolBarButton4 // this.toolBarButton4.ImageIndex = 2; this.toolBarButton4.Text = "Удалить"; // // toolBarButton3 // this.toolBarButton3.ImageIndex = 2; this.toolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButton5 // this.toolBarButton5.ImageIndex = 3; this.toolBarButton5.Text = "Обновить"; // // toolBarButton6 // this.toolBarButton6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButton7 // this.toolBarButton7.ImageIndex = 5; this.toolBarButton7.Text = "Выбрать"; // // toolBarButton8 // this.toolBarButton8.ImageIndex = 6; this.toolBarButton8.Text = "Сбросить"; // // toolBarButton9 // this.toolBarButton9.ImageIndex = 7; this.toolBarButton9.Text = "Очистить"; // // panel3 // this.panel3.Controls.Add(this.dataGrid1); this.panel3.Controls.Add(this.panel1); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 66); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(792, 507); this.panel3.TabIndex = 11; // // panel1 // this.panel1.Controls.Add(this.dataGridV1); this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 391); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(792, 116); this.panel1.TabIndex = 3; // // dataGridV1 // this.dataGridV1._CanEdit = false; this.dataGridV1._InvisibleColumn = 0; this.dataGridV1.CaptionBackColor = System.Drawing.SystemColors.Control; this.dataGridV1.CaptionForeColor = System.Drawing.SystemColors.WindowText; this.dataGridV1.CaptionText = "Процентные ставки"; this.dataGridV1.DataMember = ""; this.dataGridV1.DataSource = this.dvClientRate; this.dataGridV1.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGridV1.Location = new System.Drawing.Point(0, 0); this.dataGridV1.Name = "dataGridV1"; this.dataGridV1.ReadOnly = true; this.dataGridV1.Size = new System.Drawing.Size(440, 116); this.dataGridV1.TabIndex = 2; this.dataGridV1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this.dataGridTableStyle2 }); // // dvClientRate // this.dvClientRate.AllowDelete = false; this.dvClientRate.AllowNew = false; this.dvClientRate.Table = this.dsInterestRate1.InterestRate; // // dsInterestRate1 // this.dsInterestRate1.DataSetName = "dsInterestRate"; this.dsInterestRate1.Locale = new System.Globalization.CultureInfo("en-US"); // // dataGridTableStyle2 // this.dataGridTableStyle2.DataGrid = this.dataGridV1; this.dataGridTableStyle2.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this.ReqType, this.ReqTypeName, this.RateNormal, this.RateBlack }); this.dataGridTableStyle2.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGridTableStyle2.MappingName = "InterestRate"; // // ReqType // this.ReqType.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.ReqType.Format = ""; this.ReqType.FormatInfo = null; this.ReqType.HeaderText = "ID"; this.ReqType.MappingName = "ReqType"; this.ReqType.Width = 40; // // ReqTypeName // this.ReqTypeName.Format = ""; this.ReqTypeName.FormatInfo = null; this.ReqTypeName.HeaderText = "Тип операции"; this.ReqTypeName.MappingName = "ReqTypeName"; this.ReqTypeName.NullText = "-"; this.ReqTypeName.Width = 200; // // RateNormal // this.RateNormal.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.RateNormal.Format = "#,##0.00"; this.RateNormal.FormatInfo = null; this.RateNormal.HeaderText = "Процент н."; this.RateNormal.MappingName = "RateNormal"; this.RateNormal.NullText = "-"; this.RateNormal.Width = 80; // // RateBlack // this.RateBlack.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.RateBlack.Format = "#,##0.00"; this.RateBlack.FormatInfo = null; this.RateBlack.HeaderText = "Процент ч."; this.RateBlack.MappingName = "RateBlack"; this.RateBlack.NullText = "-"; this.RateBlack.Width = 80; // // dvRateList // this.dvRateList.Table = this.dsInterestRateList1.InterestRates; // // dsInterestRateList1 // this.dsInterestRateList1.DataSetName = "dsInterestRateList"; this.dsInterestRateList1.Locale = new System.Globalization.CultureInfo("ru-RU"); // // dsReqTypes1 // this.dsReqTypes1.DataSetName = "dsReqTypes"; this.dsReqTypes1.Locale = new System.Globalization.CultureInfo("ru-RU"); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuEdit }); // // mnuEdit // this.mnuEdit.Index = 0; this.mnuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2, this.menuItem3, this.menuItem4, this.menuItem5, this.menuItem6, this.menuItem7, this.menuItem8, this.menuItem9, this.menuItem10 }); this.mnuEdit.Text = "Редактирование"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Shortcut = System.Windows.Forms.Shortcut.F3; this.menuItem2.Text = "Новый"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.Shortcut = System.Windows.Forms.Shortcut.F10; this.menuItem3.Text = "Изменить"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem4 // this.menuItem4.Index = 2; this.menuItem4.Shortcut = System.Windows.Forms.Shortcut.CtrlDel; this.menuItem4.Text = "Удалить"; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem5 // this.menuItem5.Index = 3; this.menuItem5.Text = "-"; // // menuItem6 // this.menuItem6.Index = 4; this.menuItem6.Shortcut = System.Windows.Forms.Shortcut.F5; this.menuItem6.Text = "Обновить"; this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click); // // menuItem7 // this.menuItem7.Index = 5; this.menuItem7.Text = "-"; // // menuItem8 // this.menuItem8.Index = 6; this.menuItem8.Text = "Выбрать"; this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click); // // menuItem9 // this.menuItem9.Index = 7; this.menuItem9.Text = "Сбросить"; this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click); // // menuItem10 // this.menuItem10.Index = 8; this.menuItem10.Text = "Очистить"; this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click); // // dsOrgsClients1 // this.dsOrgsClients1.DataSetName = "dsOrgsClients"; this.dsOrgsClients1.Locale = new System.Globalization.CultureInfo("ru-RU"); // // ClientView // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(792, 573); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu1; this.Name = "ClientView"; this.Text = "Клиенты"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.MdiChildActivate += new System.EventHandler(this.ClientView_MdiChildActivate); this.Load += new System.EventHandler(this.ClientView_Load); ((System.ComponentModel.ISupportInitialize)(this.dsClients1)).EndInit(); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataView1)).EndInit(); this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dvGroups)).EndInit(); this.panel3.ResumeLayout(false); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridV1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dvClientRate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInterestRate1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dvRateList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInterestRateList1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsReqTypes1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsOrgsClients1)).EndInit(); this.ResumeLayout(false); }
/// <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(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle9 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle10 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle11 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle12 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo5 = new Syncfusion.Windows.Forms.Grid.GridCellInfo(); this.printPreviewButton = new Syncfusion.Windows.Forms.ButtonAdv(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.output = new System.Windows.Forms.ListBox(); this.checkBoxMouseMessage = new System.Windows.Forms.CheckBox(); this.checkBoxEnableTracing = new System.Windows.Forms.CheckBox(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.panel2 = new System.Windows.Forms.Panel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.panel1 = new System.Windows.Forms.Panel(); this.splitterControl1 = new Syncfusion.Windows.Forms.SplitterControl(); this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl(); this.panel2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.panel1.SuspendLayout(); this.splitterControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); this.SuspendLayout(); // // printPreviewButton // this.printPreviewButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.printPreviewButton.Appearance = Syncfusion.Windows.Forms.ButtonAppearance.Metro; this.printPreviewButton.FlatStyle = FlatStyle.Flat; this.printPreviewButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220))))); this.printPreviewButton.BeforeTouchSize = new System.Drawing.Size(165, 34); this.printPreviewButton.BorderStyleAdv = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner; this.printPreviewButton.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.printPreviewButton.ForeColor = System.Drawing.Color.White; this.printPreviewButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.printPreviewButton.IsBackStageButton = false; this.printPreviewButton.Location = new System.Drawing.Point(684, 527); this.printPreviewButton.Name = "printPreviewButton"; this.printPreviewButton.Size = new System.Drawing.Size(165, 34); this.printPreviewButton.TabIndex = 9; this.printPreviewButton.Text = "Print Preview"; this.printPreviewButton.Click += new System.EventHandler(this.printPreviewButton_Click); // // propertyGrid1 // this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.propertyGrid1.BackColor = System.Drawing.Color.White; this.propertyGrid1.CommandsBackColor = System.Drawing.Color.White; this.propertyGrid1.CommandsLinkColor = System.Drawing.Color.White; this.propertyGrid1.HelpBackColor = System.Drawing.Color.White; this.propertyGrid1.LineColor = System.Drawing.SystemColors.Window; this.propertyGrid1.Location = new System.Drawing.Point(651, 0); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.Size = new System.Drawing.Size(263, 342); this.propertyGrid1.TabIndex = 2; // // output // this.output.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.output.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; // this.output.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(84))))); this.output.Location = new System.Drawing.Point(9, 16); this.output.Name = "output"; this.output.ScrollAlwaysVisible = true; this.output.Size = new System.Drawing.Size(612, 171); this.output.TabIndex = 4; // // checkBoxMouseMessage // this.checkBoxMouseMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxMouseMessage.FlatStyle = System.Windows.Forms.FlatStyle.System; this.checkBoxMouseMessage.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxMouseMessage.Location = new System.Drawing.Point(62, 62); this.checkBoxMouseMessage.Name = "checkBoxMouseMessage"; this.checkBoxMouseMessage.Size = new System.Drawing.Size(165, 33); this.checkBoxMouseMessage.TabIndex = 8; this.checkBoxMouseMessage.Text = "Trace Mouse and Control Messages"; this.checkBoxMouseMessage.CheckedChanged += new System.EventHandler(this.checkBoxMouseMessage_CheckedChanged); // // checkBoxEnableTracing // this.checkBoxEnableTracing.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxEnableTracing.FlatStyle = System.Windows.Forms.FlatStyle.System; this.checkBoxEnableTracing.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxEnableTracing.Location = new System.Drawing.Point(62, 36); this.checkBoxEnableTracing.Name = "checkBoxEnableTracing"; this.checkBoxEnableTracing.Size = new System.Drawing.Size(183, 20); this.checkBoxEnableTracing.TabIndex = 7; this.checkBoxEnableTracing.Text = "Enable Tracing"; this.checkBoxEnableTracing.CheckedChanged += new System.EventHandler(this.checkBoxEnableTracing_CheckedChanged); // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "&Clear Window"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.BackColor = System.Drawing.Color.White; this.panel2.Controls.Add(this.output); this.panel2.Location = new System.Drawing.Point(0, 363); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(640, 210); this.panel2.TabIndex = 9; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.checkBoxEnableTracing); this.groupBox1.Controls.Add(this.checkBoxMouseMessage); this.groupBox1.Location = new System.Drawing.Point(651, 379); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(263, 129); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; this.groupBox1.Text = "Event trace Options"; // // panel1 // this.panel1.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.panel1.BackColor = System.Drawing.Color.White; this.panel1.Controls.Add(this.splitterControl1); this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(640, 342); this.panel1.TabIndex = 8; // // splitterControl1 // this.splitterControl1.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.splitterControl1.BackColor = System.Drawing.Color.White; this.splitterControl1.BeforeTouchSize = new System.Drawing.Size(626, 339); this.splitterControl1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.splitterControl1.Controls.Add(this.gridControl1); this.splitterControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro; this.splitterControl1.Location = new System.Drawing.Point(12, 0); this.splitterControl1.Name = "splitterControl1"; this.splitterControl1.Size = new System.Drawing.Size(626, 339); this.splitterControl1.SizeFactor = 0D; this.splitterControl1.SplitBars = ((Syncfusion.Windows.Forms.DynamicSplitBars)((Syncfusion.Windows.Forms.DynamicSplitBars.SplitRows | Syncfusion.Windows.Forms.DynamicSplitBars.SplitColumns))); this.splitterControl1.TabIndex = 6; this.splitterControl1.ThemesEnabled = true; this.splitterControl1.PaneCreated += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneCreated); this.splitterControl1.PaneClosing += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneClosing); // // gridControl1 // this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222))))); gridBaseStyle9.Name = "Header"; gridBaseStyle9.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle9.StyleInfo.Borders.Left = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle9.StyleInfo.Borders.Right = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle9.StyleInfo.Borders.Top = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle9.StyleInfo.CellType = "Header"; gridBaseStyle9.StyleInfo.Font.Bold = true; gridBaseStyle9.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216)))))); gridBaseStyle9.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle; gridBaseStyle10.Name = "Standard"; gridBaseStyle10.StyleInfo.Font.Facename = "Tahoma"; gridBaseStyle10.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window); gridBaseStyle11.Name = "Column Header"; gridBaseStyle11.StyleInfo.BaseStyle = "Header"; gridBaseStyle11.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center; gridBaseStyle12.Name = "Row Header"; gridBaseStyle12.StyleInfo.BaseStyle = "Header"; gridBaseStyle12.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left; gridBaseStyle12.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216)))))); this.gridControl1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] { gridBaseStyle9, gridBaseStyle10, gridBaseStyle11, gridBaseStyle12 }); this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.gridControl1.ColCount = 12; this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] { new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35) }); this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid; this.gridControl1.DefaultRowHeight = 20; this.gridControl1.FillSplitterPane = true; this.gridControl1.Font = new System.Drawing.Font("Segoe UI", 8.5F); this.gridControl1.ForeColor = System.Drawing.Color.MidnightBlue; gridCellInfo5.Col = -1; gridCellInfo5.Row = -1; gridCellInfo5.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin); gridCellInfo5.StyleInfo.Borders.Right = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin); gridCellInfo5.StyleInfo.Font.Bold = false; gridCellInfo5.StyleInfo.Font.Facename = "Segoe UI"; gridCellInfo5.StyleInfo.Font.Italic = false; gridCellInfo5.StyleInfo.Font.Size = 8.5F; gridCellInfo5.StyleInfo.Font.Strikeout = false; gridCellInfo5.StyleInfo.Font.Underline = false; gridCellInfo5.StyleInfo.Font.Unit = System.Drawing.GraphicsUnit.Point; gridCellInfo5.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White); gridCellInfo5.StyleInfo.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138))))); this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] { gridCellInfo5 }); this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro; this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro; this.gridControl1.HorizontalThumbTrack = true; this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MetroScrollBars = true; this.gridControl1.Name = "gridControl1"; this.gridControl1.Properties.BackgroundColor = System.Drawing.Color.White; this.gridControl1.Properties.ForceImmediateRepaint = false; this.gridControl1.Properties.GridLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); this.gridControl1.Properties.MarkColHeader = false; this.gridControl1.Properties.MarkRowHeader = false; this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.gridControl1.RowCount = 120; this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] { new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21) }); this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeIntoCode; this.gridControl1.Size = new System.Drawing.Size(609, 322); this.gridControl1.SmartSizeBox = false; this.gridControl1.ThemesEnabled = true; this.gridControl1.VerticalThumbTrack = true; this.gridControl1.SelectionChanged += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.grid_SelectionChanged); this.gridControl1.CurrentCellMoved += new Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventHandler(this.grid_CurrentCellMoved); // // Form1 // this.ClientSize = new System.Drawing.Size(926, 573); this.Controls.Add(this.printPreviewButton); this.Controls.Add(this.groupBox1); this.Controls.Add(this.panel1); this.Controls.Add(this.propertyGrid1); this.Controls.Add(this.panel2); this.MinimumSize = new System.Drawing.Size(500, 500); this.Name = "Form1"; this.Text = "Web Browser Cell "; this.panel2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.panel1.ResumeLayout(false); this.splitterControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.mList = new System.Windows.Forms.ListView(); this.Test1 = new System.Windows.Forms.ColumnHeader(); this.mContext = new System.Windows.Forms.ContextMenu(); this.mReset = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // mList // this.mList.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.mList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Test1 }); this.mList.ContextMenu = this.mContext; this.mList.Cursor = System.Windows.Forms.Cursors.Default; this.mList.FullRowSelect = true; this.mList.Location = new System.Drawing.Point(8, 8); this.mList.Name = "mList"; this.mList.Size = new System.Drawing.Size(344, 200); this.mList.TabIndex = 0; this.mList.View = System.Windows.Forms.View.Details; this.mList.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mList_MouseMove); this.mList.SelectedIndexChanged += new System.EventHandler(this.mList_SelectedIndexChanged); // // Test1 // this.Test1.Width = 141; // // mContext // this.mContext.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mReset, this.menuItem1, this.menuItem2 }); // // mReset // this.mReset.Index = 0; this.mReset.Text = "&Reset"; this.mReset.Click += new System.EventHandler(this.mReset_Click); // // menuItem1 // this.menuItem1.Index = 1; this.menuItem1.Text = "-"; // // menuItem2 // this.menuItem2.Index = 2; this.menuItem2.Text = "-"; // // YogaControl // this.Controls.Add(this.mList); this.Name = "YogaControl"; this.Load += new System.EventHandler(this.YogaControl_Load); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RichTextEditor)); this.mainImageList = new System.Windows.Forms.ImageList(this.components); this.toolbarPanel = new System.Windows.Forms.Panel(); this.editorToolbar = new System.Windows.Forms.ToolBar(); this.wordExportToolButton = new System.Windows.Forms.ToolBarButton(); this.printToolButton = new System.Windows.Forms.ToolBarButton(); this.printPreviewToolButton = new System.Windows.Forms.ToolBarButton(); this.saveAsToolButton = new System.Windows.Forms.ToolBarButton(); this.emailToolButton = new System.Windows.Forms.ToolBarButton(); this.toolBarButton5 = new System.Windows.Forms.ToolBarButton(); this.boldToolButton = new System.Windows.Forms.ToolBarButton(); this.underlineToolButton = new System.Windows.Forms.ToolBarButton(); this.italicToolButton = new System.Windows.Forms.ToolBarButton(); this.fontToolButton = new System.Windows.Forms.ToolBarButton(); this.formatingSeperator1 = new System.Windows.Forms.ToolBarButton(); this.leftAlignToolButton = new System.Windows.Forms.ToolBarButton(); this.centerAlignToolButton = new System.Windows.Forms.ToolBarButton(); this.rightAlignToolButton = new System.Windows.Forms.ToolBarButton(); this.unnumberedBulletToolButton = new System.Windows.Forms.ToolBarButton(); this.numberedBulletToolButton = new System.Windows.Forms.ToolBarButton(); this.bulletsSeperator = new System.Windows.Forms.ToolBarButton(); this.findToolButton = new System.Windows.Forms.ToolBarButton(); this.findNextToolButton = new System.Windows.Forms.ToolBarButton(); this.findSeperator = new System.Windows.Forms.ToolBarButton(); this.undoToolButton = new System.Windows.Forms.ToolBarButton(); this.redoToolButton = new System.Windows.Forms.ToolBarButton(); this.editingSeperator1 = new System.Windows.Forms.ToolBarButton(); this.cutToolButton = new System.Windows.Forms.ToolBarButton(); this.copyToolButton = new System.Windows.Forms.ToolBarButton(); this.pasteToolButton = new System.Windows.Forms.ToolBarButton(); this.editingSeperator2 = new System.Windows.Forms.ToolBarButton(); this.hyperLinkToolButton = new System.Windows.Forms.ToolBarButton(); this.spellCheckToolButton = new System.Windows.Forms.ToolBarButton(); this.clearToolButton = new System.Windows.Forms.ToolBarButton(); this.insertDateToolButton = new System.Windows.Forms.ToolBarButton(); this.wordwrapToolButton = new System.Windows.Forms.ToolBarButton(); this.panel2 = new System.Windows.Forms.Panel(); this.innerRichTextBox = new System.Windows.Forms.RichTextBox(); this.splitter1 = new System.Windows.Forms.Splitter(); this.fontDialog1 = new System.Windows.Forms.FontDialog(); this.colorDialog1 = new System.Windows.Forms.ColorDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.toolbarPanel.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // mainImageList // this.mainImageList.ImageSize = new System.Drawing.Size(16, 16); this.mainImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("mainImageList.ImageStream"))); this.mainImageList.TransparentColor = System.Drawing.Color.Transparent; // // toolbarPanel // this.toolbarPanel.Controls.Add(this.editorToolbar); this.toolbarPanel.Dock = System.Windows.Forms.DockStyle.Top; this.toolbarPanel.Location = new System.Drawing.Point(0, 0); this.toolbarPanel.Name = "toolbarPanel"; this.toolbarPanel.Size = new System.Drawing.Size(432, 56); this.toolbarPanel.TabIndex = 2; // // editorToolbar // this.editorToolbar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.editorToolbar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.wordExportToolButton, this.printToolButton, this.printPreviewToolButton, this.saveAsToolButton, this.emailToolButton, this.toolBarButton5, this.boldToolButton, this.underlineToolButton, this.italicToolButton, this.fontToolButton, this.formatingSeperator1, this.leftAlignToolButton, this.centerAlignToolButton, this.rightAlignToolButton, this.unnumberedBulletToolButton, this.numberedBulletToolButton, this.bulletsSeperator, this.findToolButton, this.findNextToolButton, this.findSeperator, this.undoToolButton, this.redoToolButton, this.editingSeperator1, this.cutToolButton, this.copyToolButton, this.pasteToolButton, this.editingSeperator2, this.hyperLinkToolButton, this.spellCheckToolButton, this.clearToolButton, this.insertDateToolButton, this.wordwrapToolButton }); this.editorToolbar.Dock = System.Windows.Forms.DockStyle.Fill; this.editorToolbar.DropDownArrows = true; this.editorToolbar.ImageList = this.mainImageList; this.editorToolbar.Location = new System.Drawing.Point(0, 0); this.editorToolbar.Name = "editorToolbar"; this.editorToolbar.ShowToolTips = true; this.editorToolbar.Size = new System.Drawing.Size(432, 72); this.editorToolbar.TabIndex = 2; this.editorToolbar.SizeChanged += new System.EventHandler(this.editorToolbar_SizeChanged); this.editorToolbar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.editorToolbar_ButtonClick); // // wordExportToolButton // this.wordExportToolButton.ImageIndex = 31; this.wordExportToolButton.ToolTipText = "Edit this document to Microsoft Word"; // // printToolButton // this.printToolButton.ImageIndex = 1; this.printToolButton.ToolTipText = "Print"; // // printPreviewToolButton // this.printPreviewToolButton.ImageIndex = 0; this.printPreviewToolButton.ToolTipText = "Print Preview"; // // saveAsToolButton // this.saveAsToolButton.ImageIndex = 32; this.saveAsToolButton.ToolTipText = "Save As"; // // emailToolButton // this.emailToolButton.ImageIndex = 2; // // toolBarButton5 // this.toolBarButton5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // boldToolButton // this.boldToolButton.ImageIndex = 4; this.boldToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // underlineToolButton // this.underlineToolButton.ImageIndex = 27; this.underlineToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // italicToolButton // this.italicToolButton.ImageIndex = 14; this.italicToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // fontToolButton // this.fontToolButton.ImageIndex = 12; // // formatingSeperator1 // this.formatingSeperator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // leftAlignToolButton // this.leftAlignToolButton.ImageIndex = 16; this.leftAlignToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // centerAlignToolButton // this.centerAlignToolButton.ImageIndex = 30; this.centerAlignToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // rightAlignToolButton // this.rightAlignToolButton.ImageIndex = 23; this.rightAlignToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // unnumberedBulletToolButton // this.unnumberedBulletToolButton.ImageIndex = 19; this.unnumberedBulletToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // numberedBulletToolButton // this.numberedBulletToolButton.ImageIndex = 20; // // bulletsSeperator // this.bulletsSeperator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // findToolButton // this.findToolButton.ImageIndex = 3; // // findNextToolButton // this.findNextToolButton.ImageIndex = 11; // // findSeperator // this.findSeperator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // undoToolButton // this.undoToolButton.ImageIndex = 28; this.undoToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.undoToolButton.ToolTipText = "Undo last operation"; // // redoToolButton // this.redoToolButton.ImageIndex = 22; this.redoToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.redoToolButton.ToolTipText = "Redo last operation"; // // editingSeperator1 // this.editingSeperator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // cutToolButton // this.cutToolButton.ImageIndex = 9; this.cutToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // copyToolButton // this.copyToolButton.ImageIndex = 8; this.copyToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // pasteToolButton // this.pasteToolButton.ImageIndex = 21; this.pasteToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; // // editingSeperator2 // this.editingSeperator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // hyperLinkToolButton // this.hyperLinkToolButton.ImageIndex = 29; // // spellCheckToolButton // this.spellCheckToolButton.ImageIndex = 25; // // clearToolButton // this.clearToolButton.ImageIndex = 17; this.clearToolButton.ToolTipText = "Remove everything from this document"; // // insertDateToolButton // this.insertDateToolButton.ImageIndex = 10; // // wordwrapToolButton // this.wordwrapToolButton.ImageIndex = 33; this.wordwrapToolButton.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.wordwrapToolButton.ToolTipText = "Turn on/off wordwrap"; // // panel2 // this.panel2.Controls.Add(this.innerRichTextBox); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(0, 57); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(432, 143); this.panel2.TabIndex = 3; // // innerRichTextBox // this.innerRichTextBox.AcceptsTab = true; this.innerRichTextBox.AutoWordSelection = true; this.innerRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.innerRichTextBox.Dock = System.Windows.Forms.DockStyle.Fill; this.innerRichTextBox.HideSelection = false; this.innerRichTextBox.Location = new System.Drawing.Point(0, 0); this.innerRichTextBox.Name = "innerRichTextBox"; this.innerRichTextBox.ShowSelectionMargin = true; this.innerRichTextBox.Size = new System.Drawing.Size(432, 143); this.innerRichTextBox.TabIndex = 2; this.innerRichTextBox.Text = "richTextBox1"; this.innerRichTextBox.WordWrap = false; this.innerRichTextBox.ReadOnlyChanged += new System.EventHandler(this.innerRichTextBox_ReadOnlyChanged); this.innerRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.innerRichTextBox_LinkClicked); this.innerRichTextBox.SelectionChanged += new System.EventHandler(this.innerRichTextBox_SelectionChanged); // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Top; this.splitter1.Location = new System.Drawing.Point(0, 56); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(432, 1); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; // // fontDialog1 // this.fontDialog1.ShowApply = true; this.fontDialog1.ShowColor = true; this.fontDialog1.Apply += new System.EventHandler(this.fontDialog1_Apply); // // saveFileDialog1 // this.saveFileDialog1.DefaultExt = "rtf"; this.saveFileDialog1.Filter = "Rich Text File (*.rtf)|*.rtf|Rich Text File Without Ole Objects (*.rtf)|*.rtf|Tex" + "t File (*.txt)|*.txt|Text File Without Ole Objects (*.txt)|*.txt|ANSI Text File " + "(*.txt)|*.txt|All Files|*.*"; this.saveFileDialog1.Title = "Save This Document As"; // // RichTextEditor // this.Controls.Add(this.panel2); this.Controls.Add(this.splitter1); this.Controls.Add(this.toolbarPanel); this.Name = "RichTextEditor"; this.Size = new System.Drawing.Size(432, 200); this.toolbarPanel.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
private void CreateNotifyIcon() { notifyIcon = new System.Windows.Forms.NotifyIcon(); notifyIcon.Text = "CrypTool 2"; notifyIcon.Icon = Properties.Resources.cryptool; notifyIcon.Visible = true; var notifyContextMenu = new System.Windows.Forms.ContextMenu(); notifyIcon.ContextMenu = notifyContextMenu; var openMenuItem = new System.Windows.Forms.MenuItem(Properties.Resources._Open_CrypTool_2_0); openMenuItem.Click += new EventHandler(notifyIcon_DoubleClick); var normalPriority = new System.Windows.Forms.MenuItem(Properties.Resources._Normal_Priority); normalPriority.Checked = true; normalPriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Normal; }); normalPriority.Tag = ProcessPriorityClass.Normal; var idlePriority = new System.Windows.Forms.MenuItem(Properties.Resources._Idle_Priority); idlePriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Idle; }); idlePriority.Tag = ProcessPriorityClass.Idle; var highPriority = new System.Windows.Forms.MenuItem(Properties.Resources._High_Priority); highPriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; }); highPriority.Tag = ProcessPriorityClass.High; var realtimePriority = new System.Windows.Forms.MenuItem(Properties.Resources._Realtime_Priority); realtimePriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.RealTime; }); realtimePriority.Tag = ProcessPriorityClass.RealTime; var belowNormalPriority = new System.Windows.Forms.MenuItem(Properties.Resources._Below_Normal_Priority); belowNormalPriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal; }); belowNormalPriority.Tag = ProcessPriorityClass.BelowNormal; var aboveNormalPriority = new System.Windows.Forms.MenuItem(Properties.Resources._Above_Normal_Priority); aboveNormalPriority.Click += new EventHandler(delegate { Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal; }); aboveNormalPriority.Tag = ProcessPriorityClass.AboveNormal; var exitMenuItem = new System.Windows.Forms.MenuItem(Properties.Resources._Exit); exitMenuItem.Click += new EventHandler(exitMenuItem_Click); var priorityItems = new System.Windows.Forms.MenuItem(Properties.Resources.Change__Priority); playStopMenuItem = new System.Windows.Forms.MenuItem(); playStopMenuItem.Click += new EventHandler(PlayStopMenuItemClicked); playStopMenuItem.Text = "Play"; playStopMenuItem.Tag = true; notifyContextMenu.MenuItems.Add(openMenuItem); notifyContextMenu.MenuItems.Add("-"); notifyContextMenu.MenuItems.Add(playStopMenuItem); notifyContextMenu.MenuItems.Add("-"); notifyContextMenu.MenuItems.Add(priorityItems); notifyContextMenu.MenuItems.Add("-"); notifyContextMenu.MenuItems.Add(exitMenuItem); priorityItems.MenuItems.Add(realtimePriority); priorityItems.MenuItems.Add(highPriority); priorityItems.MenuItems.Add(aboveNormalPriority); priorityItems.MenuItems.Add(normalPriority); priorityItems.MenuItems.Add(belowNormalPriority); priorityItems.MenuItems.Add(idlePriority); notifyIcon.DoubleClick += new EventHandler(notifyIcon_DoubleClick); PriorityChangedListener.PriorityChanged += delegate(ProcessPriorityClass newPriority) { GuiLogMessage(string.Format("Changed CrypTool 2 process priority to '{0}'!", newPriority), NotificationLevel.Info); foreach (System.Windows.Forms.MenuItem item in priorityItems.MenuItems) { if (item.Tag != null && item.Tag is ProcessPriorityClass) { item.Checked = ((ProcessPriorityClass)item.Tag == newPriority); } } }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ColorPickerMainForm)); this.webListView = new System.Windows.Forms.ListView(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // webListView // this.webListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3 }); this.webListView.ContextMenu = this.contextMenu1; this.webListView.Dock = System.Windows.Forms.DockStyle.Fill; this.webListView.FullRowSelect = true; this.webListView.GridLines = true; this.webListView.Location = new System.Drawing.Point(0, 0); this.webListView.Name = "webListView"; this.webListView.Size = new System.Drawing.Size(292, 266); this.webListView.Sorting = System.Windows.Forms.SortOrder.Ascending; this.webListView.TabIndex = 2; this.webListView.View = System.Windows.Forms.View.Details; this.webListView.ItemActivate += new System.EventHandler(this.webListView_ItemActivate); // // columnHeader1 // this.columnHeader1.Text = "Name"; this.columnHeader1.Width = 122; // // columnHeader2 // this.columnHeader2.Text = "Hex"; // // columnHeader3 // this.columnHeader3.Text = "Decimal"; this.columnHeader3.Width = 79; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "Copy\tCtrl+C"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.webListView); this.Icon = ((System.Drawing.Icon)resources.GetObject("$this.Icon")); this.Name = "ColorPickerMainForm"; this.Text = "Color Picker"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.wEditBox1 = new LumiSoft.UI.Controls.WEditBox(); this.wSpinEdit1 = new LumiSoft.UI.Controls.WSpinEdit(); this.wPictureBox1 = new LumiSoft.UI.Controls.WPictureBox(); this.wButtonEdit1 = new LumiSoft.UI.Controls.WButtonEdit(); this.wDatePicker1 = new LumiSoft.UI.Controls.WDatePicker.WDatePicker(); this.wComboBox1 = new LumiSoft.UI.Controls.WComboBox(); this.wCheckBox1 = new LumiSoft.UI.Controls.WCheckBox.WCheckBox(); this.toolBar1 = new LumiSoft.UI.Controls.WToolBar(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton3 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.toolBarButton5 = new System.Windows.Forms.ToolBarButton(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.wEditBox2 = new LumiSoft.UI.Controls.WEditBox(); this.wEditBox3 = new LumiSoft.UI.Controls.WEditBox(); this.wSpinEdit2 = new LumiSoft.UI.Controls.WSpinEdit(); this.wSpinEdit3 = new LumiSoft.UI.Controls.WSpinEdit(); this.wButtonEdit2 = new LumiSoft.UI.Controls.WButtonEdit(); this.wButtonEdit3 = new LumiSoft.UI.Controls.WButtonEdit(); this.wComboBox2 = new LumiSoft.UI.Controls.WComboBox(); this.wComboBox3 = new LumiSoft.UI.Controls.WComboBox(); this.wDatePicker2 = new LumiSoft.UI.Controls.WDatePicker.WDatePicker(); this.wDatePicker3 = new LumiSoft.UI.Controls.WDatePicker.WDatePicker(); this.wCheckBox2 = new LumiSoft.UI.Controls.WCheckBox.WCheckBox(); this.wCheckBox3 = new LumiSoft.UI.Controls.WCheckBox.WCheckBox(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.wEditBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wPictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wEditBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wEditBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox3)).BeginInit(); this.SuspendLayout(); // // wEditBox1 // this.wEditBox1.DecimalPlaces = 2; this.wEditBox1.DecMaxValue = 99999999; this.wEditBox1.DecMinValue = -99999999; this.wEditBox1.Location = new System.Drawing.Point(240, 40); this.wEditBox1.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wEditBox1.MaxLength = 32767; this.wEditBox1.Multiline = false; this.wEditBox1.Name = "wEditBox1"; this.wEditBox1.PasswordChar = '\0'; this.wEditBox1.ReadOnly = false; this.wEditBox1.Size = new System.Drawing.Size(100, 20); this.wEditBox1.TabIndex = 0; this.wEditBox1.Text = "Normal"; this.wEditBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wEditBox1.UseStaticViewStyle = true; // // wSpinEdit1 // this.wSpinEdit1.BackColor = System.Drawing.Color.White; this.wSpinEdit1.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right; this.wSpinEdit1.DecimalPlaces = 0; this.wSpinEdit1.DecMaxValue = 99999999; this.wSpinEdit1.DecMinValue = -99999999; this.wSpinEdit1.DecValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.wSpinEdit1.Location = new System.Drawing.Point(240, 120); this.wSpinEdit1.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric; this.wSpinEdit1.MaxLength = 32767; this.wSpinEdit1.Name = "wSpinEdit1"; this.wSpinEdit1.ReadOnly = false; this.wSpinEdit1.Size = new System.Drawing.Size(104, 20); this.wSpinEdit1.TabIndex = 1; this.wSpinEdit1.Text = "0"; this.wSpinEdit1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wSpinEdit1.UseStaticViewStyle = true; // // wPictureBox1 // this.wPictureBox1.Image = null; this.wPictureBox1.Location = new System.Drawing.Point(384, 200); this.wPictureBox1.Name = "wPictureBox1"; this.wPictureBox1.Size = new System.Drawing.Size(100, 64); this.wPictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Normal; this.wPictureBox1.TabIndex = 2; this.wPictureBox1.UseStaticViewStyle = true; // // wButtonEdit1 // this.wButtonEdit1.AcceptsPlussKey = true; this.wButtonEdit1.BackColor = System.Drawing.Color.White; this.wButtonEdit1.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wButtonEdit1.ButtonIcon"))); this.wButtonEdit1.ButtonWidth = 18; this.wButtonEdit1.Location = new System.Drawing.Point(240, 200); this.wButtonEdit1.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wButtonEdit1.MaxLength = 32767; this.wButtonEdit1.Name = "wButtonEdit1"; this.wButtonEdit1.ReadOnly = false; this.wButtonEdit1.Size = new System.Drawing.Size(118, 20); this.wButtonEdit1.TabIndex = 3; this.wButtonEdit1.Text = "Normal"; this.wButtonEdit1.UseStaticViewStyle = true; this.wButtonEdit1.ButtonPressed += new LumiSoft.UI.Controls.ButtonPressedEventHandler(this.wButtonEdit1_ButtonPressed); // // wDatePicker1 // this.wDatePicker1.AcceptsPlussKey = true; this.wDatePicker1.BackColor = System.Drawing.Color.White; this.wDatePicker1.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wDatePicker1.ButtonIcon"))); this.wDatePicker1.ButtonWidth = 18; this.wDatePicker1.Location = new System.Drawing.Point(384, 120); this.wDatePicker1.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Date; this.wDatePicker1.MaxLength = 32767; this.wDatePicker1.Name = "wDatePicker1"; this.wDatePicker1.ReadOnly = false; this.wDatePicker1.Size = new System.Drawing.Size(88, 20); this.wDatePicker1.TabIndex = 4; this.wDatePicker1.Text = "04/17/2002"; this.wDatePicker1.UseStaticViewStyle = true; this.wDatePicker1.Value = new System.DateTime(2002, 4, 17, 0, 0, 0, 0); // // wComboBox1 // this.wComboBox1.AcceptsPlussKey = true; this.wComboBox1.BackColor = System.Drawing.Color.White; this.wComboBox1.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wComboBox1.ButtonIcon"))); this.wComboBox1.ButtonWidth = 18; this.wComboBox1.DropDownWidth = 120; this.wComboBox1.Location = new System.Drawing.Point(384, 40); this.wComboBox1.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wComboBox1.MaxLength = 32767; this.wComboBox1.Name = "wComboBox1"; this.wComboBox1.ReadOnly = false; this.wComboBox1.Size = new System.Drawing.Size(120, 20); this.wComboBox1.TabIndex = 5; this.wComboBox1.Text = "Normal"; this.wComboBox1.UseStaticViewStyle = true; this.wComboBox1.VisibleItems = 5; // // wCheckBox1 // this.wCheckBox1.Checked = false; this.wCheckBox1.Location = new System.Drawing.Point(240, 280); this.wCheckBox1.Name = "wCheckBox1"; this.wCheckBox1.ReadOnly = false; this.wCheckBox1.Size = new System.Drawing.Size(30, 22); this.wCheckBox1.TabIndex = 6; this.wCheckBox1.UseStaticViewStyle = true; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton1, this.toolBarButton2, this.toolBarButton3, this.toolBarButton4, this.toolBarButton5 }); this.toolBar1.Divider = false; this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.imageList1; this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(536, 23); this.toolBar1.TabIndex = 7; // // toolBarButton1 // this.toolBarButton1.Enabled = false; this.toolBarButton1.ImageIndex = 0; // // toolBarButton2 // this.toolBarButton2.Enabled = false; this.toolBarButton2.ImageIndex = 1; // // toolBarButton3 // this.toolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButton4 // this.toolBarButton4.DropDownMenu = this.contextMenu1; this.toolBarButton4.ImageIndex = 3; this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "Enable print"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "Disable print"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // toolBarButton5 // this.toolBarButton5.ImageIndex = 2; // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 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.Fuchsia; // // wEditBox2 // this.wEditBox2.DecimalPlaces = 2; this.wEditBox2.DecMaxValue = 99999999; this.wEditBox2.DecMinValue = -99999999; this.wEditBox2.Location = new System.Drawing.Point(240, 64); this.wEditBox2.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wEditBox2.MaxLength = 32767; this.wEditBox2.Multiline = false; this.wEditBox2.Name = "wEditBox2"; this.wEditBox2.PasswordChar = '\0'; this.wEditBox2.ReadOnly = true; this.wEditBox2.Size = new System.Drawing.Size(100, 20); this.wEditBox2.TabIndex = 8; this.wEditBox2.Text = "ReadOnly"; this.wEditBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wEditBox2.UseStaticViewStyle = true; // // wEditBox3 // this.wEditBox3.DecimalPlaces = 2; this.wEditBox3.DecMaxValue = 99999999; this.wEditBox3.DecMinValue = -99999999; this.wEditBox3.Enabled = false; this.wEditBox3.Location = new System.Drawing.Point(240, 88); this.wEditBox3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wEditBox3.MaxLength = 32767; this.wEditBox3.Multiline = false; this.wEditBox3.Name = "wEditBox3"; this.wEditBox3.PasswordChar = '\0'; this.wEditBox3.ReadOnly = false; this.wEditBox3.Size = new System.Drawing.Size(100, 20); this.wEditBox3.TabIndex = 9; this.wEditBox3.Text = "Disabled"; this.wEditBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wEditBox3.UseStaticViewStyle = true; // // wSpinEdit2 // this.wSpinEdit2.BackColor = System.Drawing.Color.White; this.wSpinEdit2.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right; this.wSpinEdit2.DecimalPlaces = 0; this.wSpinEdit2.DecMaxValue = 99999999; this.wSpinEdit2.DecMinValue = -99999999; this.wSpinEdit2.DecValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.wSpinEdit2.Location = new System.Drawing.Point(240, 144); this.wSpinEdit2.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric; this.wSpinEdit2.MaxLength = 32767; this.wSpinEdit2.Name = "wSpinEdit2"; this.wSpinEdit2.ReadOnly = true; this.wSpinEdit2.Size = new System.Drawing.Size(104, 20); this.wSpinEdit2.TabIndex = 10; this.wSpinEdit2.Text = "0"; this.wSpinEdit2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wSpinEdit2.UseStaticViewStyle = true; // // wSpinEdit3 // this.wSpinEdit3.BackColor = System.Drawing.Color.White; this.wSpinEdit3.ButtonsAlign = LumiSoft.UI.Controls.LeftRight.Right; this.wSpinEdit3.DecimalPlaces = 0; this.wSpinEdit3.DecMaxValue = 99999999; this.wSpinEdit3.DecMinValue = -99999999; this.wSpinEdit3.DecValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.wSpinEdit3.Enabled = false; this.wSpinEdit3.Location = new System.Drawing.Point(240, 168); this.wSpinEdit3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Numeric; this.wSpinEdit3.MaxLength = 32767; this.wSpinEdit3.Name = "wSpinEdit3"; this.wSpinEdit3.ReadOnly = false; this.wSpinEdit3.Size = new System.Drawing.Size(104, 20); this.wSpinEdit3.TabIndex = 11; this.wSpinEdit3.Text = "0"; this.wSpinEdit3.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.wSpinEdit3.UseStaticViewStyle = true; // // wButtonEdit2 // this.wButtonEdit2.AcceptsPlussKey = true; this.wButtonEdit2.BackColor = System.Drawing.Color.White; this.wButtonEdit2.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wButtonEdit2.ButtonIcon"))); this.wButtonEdit2.ButtonWidth = 18; this.wButtonEdit2.Location = new System.Drawing.Point(240, 224); this.wButtonEdit2.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wButtonEdit2.MaxLength = 32767; this.wButtonEdit2.Name = "wButtonEdit2"; this.wButtonEdit2.ReadOnly = true; this.wButtonEdit2.Size = new System.Drawing.Size(118, 20); this.wButtonEdit2.TabIndex = 12; this.wButtonEdit2.Text = "ReadOnly"; this.wButtonEdit2.UseStaticViewStyle = true; // // wButtonEdit3 // this.wButtonEdit3.AcceptsPlussKey = true; this.wButtonEdit3.BackColor = System.Drawing.Color.White; this.wButtonEdit3.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wButtonEdit3.ButtonIcon"))); this.wButtonEdit3.ButtonWidth = 18; this.wButtonEdit3.Enabled = false; this.wButtonEdit3.Location = new System.Drawing.Point(240, 248); this.wButtonEdit3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wButtonEdit3.MaxLength = 32767; this.wButtonEdit3.Name = "wButtonEdit3"; this.wButtonEdit3.ReadOnly = false; this.wButtonEdit3.Size = new System.Drawing.Size(118, 20); this.wButtonEdit3.TabIndex = 13; this.wButtonEdit3.Text = "Disabled"; this.wButtonEdit3.UseStaticViewStyle = true; // // wComboBox2 // this.wComboBox2.AcceptsPlussKey = true; this.wComboBox2.BackColor = System.Drawing.Color.White; this.wComboBox2.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wComboBox2.ButtonIcon"))); this.wComboBox2.ButtonWidth = 18; this.wComboBox2.DropDownWidth = 120; this.wComboBox2.Location = new System.Drawing.Point(384, 64); this.wComboBox2.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wComboBox2.MaxLength = 32767; this.wComboBox2.Name = "wComboBox2"; this.wComboBox2.ReadOnly = true; this.wComboBox2.Size = new System.Drawing.Size(120, 20); this.wComboBox2.TabIndex = 14; this.wComboBox2.Text = "ReadOnly"; this.wComboBox2.UseStaticViewStyle = true; this.wComboBox2.VisibleItems = 5; // // wComboBox3 // this.wComboBox3.AcceptsPlussKey = true; this.wComboBox3.BackColor = System.Drawing.Color.White; this.wComboBox3.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wComboBox3.ButtonIcon"))); this.wComboBox3.ButtonWidth = 18; this.wComboBox3.DropDownWidth = 120; this.wComboBox3.Enabled = false; this.wComboBox3.Location = new System.Drawing.Point(384, 88); this.wComboBox3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Text; this.wComboBox3.MaxLength = 32767; this.wComboBox3.Name = "wComboBox3"; this.wComboBox3.ReadOnly = false; this.wComboBox3.Size = new System.Drawing.Size(120, 20); this.wComboBox3.TabIndex = 15; this.wComboBox3.Text = "Disabled"; this.wComboBox3.UseStaticViewStyle = true; this.wComboBox3.VisibleItems = 5; // // wDatePicker2 // this.wDatePicker2.AcceptsPlussKey = true; this.wDatePicker2.BackColor = System.Drawing.Color.White; this.wDatePicker2.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wDatePicker2.ButtonIcon"))); this.wDatePicker2.ButtonWidth = 18; this.wDatePicker2.Location = new System.Drawing.Point(384, 144); this.wDatePicker2.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Date; this.wDatePicker2.MaxLength = 32767; this.wDatePicker2.Name = "wDatePicker2"; this.wDatePicker2.ReadOnly = true; this.wDatePicker2.Size = new System.Drawing.Size(88, 20); this.wDatePicker2.TabIndex = 16; this.wDatePicker2.Text = "04/17/2002"; this.wDatePicker2.UseStaticViewStyle = true; this.wDatePicker2.Value = new System.DateTime(2002, 4, 17, 0, 0, 0, 0); // // wDatePicker3 // this.wDatePicker3.AcceptsPlussKey = true; this.wDatePicker3.BackColor = System.Drawing.Color.White; this.wDatePicker3.ButtonIcon = ((System.Drawing.Icon)(resources.GetObject("wDatePicker3.ButtonIcon"))); this.wDatePicker3.ButtonWidth = 18; this.wDatePicker3.Enabled = false; this.wDatePicker3.Location = new System.Drawing.Point(384, 168); this.wDatePicker3.Mask = LumiSoft.UI.Controls.WEditBox_Mask.Date; this.wDatePicker3.MaxLength = 32767; this.wDatePicker3.Name = "wDatePicker3"; this.wDatePicker3.ReadOnly = false; this.wDatePicker3.Size = new System.Drawing.Size(88, 20); this.wDatePicker3.TabIndex = 17; this.wDatePicker3.Text = "04/17/2002"; this.wDatePicker3.UseStaticViewStyle = true; this.wDatePicker3.Value = new System.DateTime(2002, 4, 17, 0, 0, 0, 0); // // wCheckBox2 // this.wCheckBox2.Checked = false; this.wCheckBox2.Location = new System.Drawing.Point(280, 280); this.wCheckBox2.Name = "wCheckBox2"; this.wCheckBox2.ReadOnly = true; this.wCheckBox2.Size = new System.Drawing.Size(30, 22); this.wCheckBox2.TabIndex = 18; this.wCheckBox2.UseStaticViewStyle = true; // // wCheckBox3 // this.wCheckBox3.Checked = false; this.wCheckBox3.Enabled = false; this.wCheckBox3.Location = new System.Drawing.Point(320, 280); this.wCheckBox3.Name = "wCheckBox3"; this.wCheckBox3.ReadOnly = false; this.wCheckBox3.Size = new System.Drawing.Size(30, 22); this.wCheckBox3.TabIndex = 19; this.wCheckBox3.UseStaticViewStyle = true; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(400, 280); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(72, 32); this.button1.TabIndex = 20; this.button1.Text = "Flash controls"; this.button1.Click += new System.EventHandler(this.button1_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(536, 325); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1, this.wCheckBox3, this.wCheckBox2, this.wDatePicker3, this.wDatePicker2, this.wComboBox3, this.wComboBox2, this.wButtonEdit3, this.wButtonEdit2, this.wSpinEdit3, this.wSpinEdit2, this.wEditBox3, this.wEditBox2, this.toolBar1, this.wCheckBox1, this.wComboBox1, this.wDatePicker1, this.wButtonEdit1, this.wPictureBox1, this.wSpinEdit1, this.wEditBox1 }); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.wEditBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wPictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wEditBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wEditBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wSpinEdit3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wButtonEdit3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wComboBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wDatePicker3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.wCheckBox3)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WSChooser)); this.button1 = new System.Windows.Forms.Button(); this.WritingSystems = new System.Windows.Forms.ContextMenu(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.SuspendLayout(); // // button1 // this.button1.ContextMenu = this.WritingSystems; resources.ApplyResources(this.button1, "button1"); this.button1.Name = "button1"; this.button1.Click += new System.EventHandler(this.button1_Click_1); this.button1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button1_MouseDown); this.button1.Paint += new System.Windows.Forms.PaintEventHandler(this.button1_Paint); // // WritingSystems // this.WritingSystems.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem4, this.menuItem5, this.menuItem6 }); // // menuItem4 // this.menuItem4.Index = 0; resources.ApplyResources(this.menuItem4, "menuItem4"); // // menuItem5 // this.menuItem5.Index = 1; resources.ApplyResources(this.menuItem5, "menuItem5"); // // menuItem6 // this.menuItem6.Index = 2; resources.ApplyResources(this.menuItem6, "menuItem6"); // // menuItem1 // this.menuItem1.Index = -1; resources.ApplyResources(this.menuItem1, "menuItem1"); // // menuItem2 // this.menuItem2.Index = -1; resources.ApplyResources(this.menuItem2, "menuItem2"); // // menuItem3 // this.menuItem3.Index = -1; resources.ApplyResources(this.menuItem3, "menuItem3"); // // WSChooser // this.Controls.Add(this.button1); this.Name = "WSChooser"; resources.ApplyResources(this, "$this"); this.Paint += new System.Windows.Forms.PaintEventHandler(this.WSChooser_Paint); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.C_AccessGroup = new System.Windows.Forms.GroupBox(); this.C_ShowRecentFiles = new System.Windows.Forms.LinkLabel(); this.C_RecentFiels = new System.Windows.Forms.ListBox(); this.C_ContextMenu = new System.Windows.Forms.ContextMenu(); this.C_Menu_SelectFile = new System.Windows.Forms.MenuItem(); this.C_Menu_DeleteFile = new System.Windows.Forms.MenuItem(); this.C_SelectedFile = new System.Windows.Forms.TextBox(); this.C_Browse = new System.Windows.Forms.Button(); this.C_TitleMsg = new System.Windows.Forms.Label(); this.C_OpenFileDialog = new System.Windows.Forms.OpenFileDialog(); this.C_AccessGroup.SuspendLayout(); this.SuspendLayout(); // // C_AccessGroup // this.C_AccessGroup.Controls.Add(this.C_ShowRecentFiles); this.C_AccessGroup.Controls.Add(this.C_RecentFiels); this.C_AccessGroup.Controls.Add(this.C_SelectedFile); this.C_AccessGroup.Controls.Add(this.C_Browse); this.C_AccessGroup.Location = new System.Drawing.Point(8, 24); this.C_AccessGroup.Name = "C_AccessGroup"; this.C_AccessGroup.Size = new System.Drawing.Size(768, 440); this.C_AccessGroup.TabIndex = 8; this.C_AccessGroup.TabStop = false; this.C_AccessGroup.Text = "Select Access data source file"; // // C_ShowRecentFiles // this.C_ShowRecentFiles.Location = new System.Drawing.Point(8, 56); this.C_ShowRecentFiles.Name = "C_ShowRecentFiles"; this.C_ShowRecentFiles.Size = new System.Drawing.Size(696, 23); this.C_ShowRecentFiles.TabIndex = 7; this.C_ShowRecentFiles.TabStop = true; this.C_ShowRecentFiles.Text = "Hide recent files <<"; this.C_ShowRecentFiles.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.C_ShowRecentFiles_LinkClicked); // // C_RecentFiels // this.C_RecentFiels.ContextMenu = this.C_ContextMenu; this.C_RecentFiels.ItemHeight = 14; this.C_RecentFiels.Location = new System.Drawing.Point(8, 80); this.C_RecentFiels.Name = "C_RecentFiels"; this.C_RecentFiels.Size = new System.Drawing.Size(752, 354); this.C_RecentFiels.TabIndex = 6; this.C_RecentFiels.DoubleClick += new System.EventHandler(this.C_RecentFiels_DoubleClick); // // C_ContextMenu // this.C_ContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.C_Menu_SelectFile, this.C_Menu_DeleteFile }); // // C_Menu_SelectFile // this.C_Menu_SelectFile.Index = 0; this.C_Menu_SelectFile.Text = "Select File"; this.C_Menu_SelectFile.Click += new System.EventHandler(this.C_Menu_SelectFile_Click); // // C_Menu_DeleteFile // this.C_Menu_DeleteFile.Index = 1; this.C_Menu_DeleteFile.Text = "Remove Recent File"; this.C_Menu_DeleteFile.Click += new System.EventHandler(this.C_Menu_DeleteFile_Click); // // C_SelectedFile // this.C_SelectedFile.BackColor = System.Drawing.SystemColors.Window; this.C_SelectedFile.Location = new System.Drawing.Point(8, 24); this.C_SelectedFile.Name = "C_SelectedFile"; this.C_SelectedFile.ReadOnly = true; this.C_SelectedFile.Size = new System.Drawing.Size(608, 22); this.C_SelectedFile.TabIndex = 4; this.C_SelectedFile.Text = ""; // // C_Browse // this.C_Browse.Location = new System.Drawing.Point(632, 24); this.C_Browse.Name = "C_Browse"; this.C_Browse.TabIndex = 5; this.C_Browse.Text = "Browse..."; this.C_Browse.Click += new System.EventHandler(this.C_Browse_Click); // // C_TitleMsg // this.C_TitleMsg.Location = new System.Drawing.Point(8, 0); this.C_TitleMsg.Name = "C_TitleMsg"; this.C_TitleMsg.Size = new System.Drawing.Size(520, 23); this.C_TitleMsg.TabIndex = 7; this.C_TitleMsg.Text = "Please select a Database to open."; // // C_OpenFileDialog // this.C_OpenFileDialog.DefaultExt = "mdb"; this.C_OpenFileDialog.DereferenceLinks = false; this.C_OpenFileDialog.FileName = "Victory.mdb"; this.C_OpenFileDialog.Filter = "Access database file(*.mdb)|*.mdb|XML file(*.xml)|*.xml|All files(*.*)|*.*"; this.C_OpenFileDialog.RestoreDirectory = true; this.C_OpenFileDialog.Title = "Chose Database file to open"; // // ConfigDBFile // this.Controls.Add(this.C_AccessGroup); this.Controls.Add(this.C_TitleMsg); this.Name = "ConfigDBFile"; this.C_AccessGroup.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmCuttingEars)); this.btnClose = new System.Windows.Forms.Button(); this.btnCut = new System.Windows.Forms.Button(); this.cmnuCuttingEar = new System.Windows.Forms.ContextMenu(); this.cmnuDrawPolygon = new System.Windows.Forms.MenuItem(); this.cmnCut = new System.Windows.Forms.MenuItem(); this.cmnuClean = new System.Windows.Forms.MenuItem(); this.cmnuClose = new System.Windows.Forms.MenuItem(); this.btnDraw = new System.Windows.Forms.Button(); this.gbPolygon = new System.Windows.Forms.GroupBox(); this.rdoTestData = new System.Windows.Forms.RadioButton(); this.rdoSelect = new System.Windows.Forms.RadioButton(); this.pnlDraw = new System.Windows.Forms.Panel(); this.tbCuttingEar = new System.Windows.Forms.ToolBar(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.tbbDraw = new System.Windows.Forms.ToolBarButton(); this.tbbCut = new System.Windows.Forms.ToolBarButton(); this.tbbClean = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator = new System.Windows.Forms.ToolBarButton(); this.tbbClose = new System.Windows.Forms.ToolBarButton(); this.ilToolbar = new System.Windows.Forms.ImageList(this.components); this.mnuCuttingEar = new System.Windows.Forms.MainMenu(this.components); this.mnuPolygon = new System.Windows.Forms.MenuItem(); this.mnuTestData = new System.Windows.Forms.MenuItem(); this.mnuMouseClick = new System.Windows.Forms.MenuItem(); this.mnuDraw = new System.Windows.Forms.MenuItem(); this.mnuDrawPolygon = new System.Windows.Forms.MenuItem(); this.mnuEar = new System.Windows.Forms.MenuItem(); this.mnuRedraw = new System.Windows.Forms.MenuItem(); this.mnuHelp = new System.Windows.Forms.MenuItem(); this.mnuSimplePolygon = new System.Windows.Forms.MenuItem(); this.mnuAbout = new System.Windows.Forms.MenuItem(); this.sbDesc = new System.Windows.Forms.StatusBar(); this.sbpDes = new System.Windows.Forms.StatusBarPanel(); this.sbpName = new System.Windows.Forms.StatusBarPanel(); this.sbpDate = new System.Windows.Forms.StatusBarPanel(); this.sbpTime = new System.Windows.Forms.StatusBarPanel(); this.btnClear = new System.Windows.Forms.Button(); this.ttpPolygon = new System.Windows.Forms.ToolTip(this.components); this.lblDesc = new System.Windows.Forms.Label(); this.tmrDesc = new System.Windows.Forms.Timer(this.components); this.lblNote = new System.Windows.Forms.Label(); this.gbPolygon.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.sbpDes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpTime)).BeginInit(); this.SuspendLayout(); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.Location = new System.Drawing.Point(669, 223); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(136, 32); this.btnClose.TabIndex = 4; this.btnClose.Text = "Clo&se"; this.ttpPolygon.SetToolTip(this.btnClose, "Exit"); this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // btnCut // this.btnCut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnCut.Location = new System.Drawing.Point(669, 149); this.btnCut.Name = "btnCut"; this.btnCut.Size = new System.Drawing.Size(136, 32); this.btnCut.TabIndex = 2; this.btnCut.Text = "&Cut Ear"; this.ttpPolygon.SetToolTip(this.btnCut, "Cut polygon ears"); this.btnCut.Click += new System.EventHandler(this.btnCut_Click); // // cmnuCuttingEar // this.cmnuCuttingEar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.cmnuDrawPolygon, this.cmnCut, this.cmnuClean, this.cmnuClose }); // // cmnuDrawPolygon // this.cmnuDrawPolygon.Index = 0; this.cmnuDrawPolygon.Text = "Draw Polygon"; this.cmnuDrawPolygon.Click += new System.EventHandler(this.btnDraw_Click); // // cmnCut // this.cmnCut.Index = 1; this.cmnCut.Text = "Cut Ear"; this.cmnCut.Click += new System.EventHandler(this.btnCut_Click); // // cmnuClean // this.cmnuClean.Index = 2; this.cmnuClean.Text = "Clean Screen"; this.cmnuClean.Click += new System.EventHandler(this.btnClear_Click); // // cmnuClose // this.cmnuClose.Index = 3; this.cmnuClose.Text = "Close"; this.cmnuClose.Click += new System.EventHandler(this.btnClose_Click); // // btnDraw // this.btnDraw.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnDraw.Location = new System.Drawing.Point(669, 112); this.btnDraw.Name = "btnDraw"; this.btnDraw.Size = new System.Drawing.Size(136, 32); this.btnDraw.TabIndex = 1; this.btnDraw.Text = "&Draw Polygon"; this.ttpPolygon.SetToolTip(this.btnDraw, "Draw a polygon"); this.btnDraw.Click += new System.EventHandler(this.btnDraw_Click); // // gbPolygon // this.gbPolygon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbPolygon.Controls.Add(this.rdoTestData); this.gbPolygon.Controls.Add(this.rdoSelect); this.gbPolygon.Location = new System.Drawing.Point(669, 32); this.gbPolygon.Name = "gbPolygon"; this.gbPolygon.Size = new System.Drawing.Size(136, 72); this.gbPolygon.TabIndex = 0; this.gbPolygon.TabStop = false; this.gbPolygon.Text = "Generate Polygon:"; this.ttpPolygon.SetToolTip(this.gbPolygon, "Initialize a polygon"); // // rdoTestData // this.rdoTestData.Checked = true; this.rdoTestData.Location = new System.Drawing.Point(8, 24); this.rdoTestData.Name = "rdoTestData"; this.rdoTestData.Size = new System.Drawing.Size(104, 16); this.rdoTestData.TabIndex = 1; this.rdoTestData.TabStop = true; this.rdoTestData.Text = "Using test data"; // // rdoSelect // this.rdoSelect.Location = new System.Drawing.Point(8, 40); this.rdoSelect.Name = "rdoSelect"; this.rdoSelect.Size = new System.Drawing.Size(120, 24); this.rdoSelect.TabIndex = 0; this.rdoSelect.Text = "Using mouse click"; // // pnlDraw // this.pnlDraw.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.pnlDraw.AutoScroll = true; this.pnlDraw.BackColor = System.Drawing.Color.LightSalmon; this.pnlDraw.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlDraw.ContextMenu = this.cmnuCuttingEar; this.pnlDraw.Location = new System.Drawing.Point(8, 0); this.pnlDraw.Name = "pnlDraw"; this.pnlDraw.Size = new System.Drawing.Size(653, 430); this.pnlDraw.TabIndex = 7; this.ttpPolygon.SetToolTip(this.pnlDraw, "Draw a polygon and cut ears..."); this.pnlDraw.Click += new System.EventHandler(this.pnlDraw_Click); this.pnlDraw.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlDraw_Paint); this.pnlDraw.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pnlDraw_MouseUp); // // tbCuttingEar // this.tbCuttingEar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton1, this.tbbDraw, this.tbbCut, this.tbbClean, this.tbbSeparator, this.tbbClose }); this.tbCuttingEar.ButtonSize = new System.Drawing.Size(18, 18); this.tbCuttingEar.DropDownArrows = true; this.tbCuttingEar.ImageList = this.ilToolbar; this.tbCuttingEar.Location = new System.Drawing.Point(0, 0); this.tbCuttingEar.Name = "tbCuttingEar"; this.tbCuttingEar.ShowToolTips = true; this.tbCuttingEar.Size = new System.Drawing.Size(813, 42); this.tbCuttingEar.TabIndex = 8; this.tbCuttingEar.Visible = false; this.tbCuttingEar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbCuttingEar_ButtonClick); // // toolBarButton1 // this.toolBarButton1.Name = "toolBarButton1"; this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbDraw // this.tbbDraw.ImageIndex = 0; this.tbbDraw.Name = "tbbDraw"; this.tbbDraw.Text = "Draw"; this.tbbDraw.ToolTipText = "Draw a polygon"; // // tbbCut // this.tbbCut.ImageIndex = 1; this.tbbCut.Name = "tbbCut"; this.tbbCut.Text = "Cut"; this.tbbCut.ToolTipText = "Cut polygon ears"; // // tbbClean // this.tbbClean.ImageIndex = 2; this.tbbClean.Name = "tbbClean"; this.tbbClean.Text = "Clean"; this.tbbClean.ToolTipText = "Reset"; // // tbbSeparator // this.tbbSeparator.Name = "tbbSeparator"; this.tbbSeparator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; this.tbbSeparator.Text = "Separator"; // // tbbClose // this.tbbClose.ImageIndex = 3; this.tbbClose.Name = "tbbClose"; this.tbbClose.Text = "Close"; this.tbbClose.ToolTipText = "Exit"; // // ilToolbar // this.ilToolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilToolbar.ImageStream"))); this.ilToolbar.TransparentColor = System.Drawing.Color.Transparent; this.ilToolbar.Images.SetKeyName(0, ""); this.ilToolbar.Images.SetKeyName(1, ""); this.ilToolbar.Images.SetKeyName(2, ""); this.ilToolbar.Images.SetKeyName(3, ""); // // mnuCuttingEar // this.mnuCuttingEar.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuPolygon, this.mnuDraw, this.mnuHelp }); // // mnuPolygon // this.mnuPolygon.Index = 0; this.mnuPolygon.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuTestData, this.mnuMouseClick }); this.mnuPolygon.Text = "&Polygon"; this.mnuPolygon.Visible = false; this.mnuPolygon.Popup += new System.EventHandler(this.mnuPolygon_Popup); // // mnuTestData // this.mnuTestData.Index = 0; this.mnuTestData.RadioCheck = true; this.mnuTestData.Shortcut = System.Windows.Forms.Shortcut.CtrlT; this.mnuTestData.Text = "Using Test Data"; this.mnuTestData.Click += new System.EventHandler(this.mnuTestData_Click); this.mnuTestData.Popup += new System.EventHandler(this.mnuTestData_Popup); // // mnuMouseClick // this.mnuMouseClick.Index = 1; this.mnuMouseClick.RadioCheck = true; this.mnuMouseClick.Shortcut = System.Windows.Forms.Shortcut.CtrlM; this.mnuMouseClick.Text = "Using Mouse Click"; this.mnuMouseClick.Click += new System.EventHandler(this.mnuMouseClick_Click); this.mnuMouseClick.Popup += new System.EventHandler(this.mnuMouseClick_Popup); // // mnuDraw // this.mnuDraw.Index = 1; this.mnuDraw.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuDrawPolygon, this.mnuEar, this.mnuRedraw }); this.mnuDraw.Text = "Dra&w"; this.mnuDraw.Visible = false; // // mnuDrawPolygon // this.mnuDrawPolygon.Index = 0; this.mnuDrawPolygon.Shortcut = System.Windows.Forms.Shortcut.CtrlG; this.mnuDrawPolygon.Text = "&Polygon"; this.mnuDrawPolygon.Click += new System.EventHandler(this.btnDraw_Click); // // mnuEar // this.mnuEar.Index = 1; this.mnuEar.Shortcut = System.Windows.Forms.Shortcut.CtrlR; this.mnuEar.Text = "&Ears && Polygon"; this.mnuEar.Click += new System.EventHandler(this.btnCut_Click); // // mnuRedraw // this.mnuRedraw.Index = 2; this.mnuRedraw.Shortcut = System.Windows.Forms.Shortcut.CtrlW; this.mnuRedraw.Text = "&Redraw"; this.mnuRedraw.Click += new System.EventHandler(this.btnClear_Click); // // mnuHelp // this.mnuHelp.Index = 2; this.mnuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuSimplePolygon, this.mnuAbout }); this.mnuHelp.Text = "&Help"; this.mnuHelp.Visible = false; // // mnuSimplePolygon // this.mnuSimplePolygon.Index = 0; this.mnuSimplePolygon.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftS; this.mnuSimplePolygon.Text = "&Simple Polygon"; this.mnuSimplePolygon.Click += new System.EventHandler(this.mnuSimplePolygon_Click); // // mnuAbout // this.mnuAbout.Index = 1; this.mnuAbout.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftA; this.mnuAbout.Text = "&About"; this.mnuAbout.Click += new System.EventHandler(this.mnuAbout_Click); // // sbDesc // this.sbDesc.Location = new System.Drawing.Point(0, 441); this.sbDesc.Name = "sbDesc"; this.sbDesc.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.sbpDes, this.sbpName, this.sbpDate, this.sbpTime }); this.sbDesc.ShowPanels = true; this.sbDesc.Size = new System.Drawing.Size(813, 22); this.sbDesc.TabIndex = 9; this.ttpPolygon.SetToolTip(this.sbDesc, "Demo: cutting polygon ears..."); this.sbDesc.Visible = false; // // sbpDes // this.sbpDes.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.sbpDes.Name = "sbpDes"; this.sbpDes.Width = 10; // // sbpName // this.sbpName.Alignment = System.Windows.Forms.HorizontalAlignment.Center; this.sbpName.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.sbpName.Name = "sbpName"; this.sbpName.Text = " F.S "; this.sbpName.Width = 38; // // sbpDate // this.sbpDate.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.sbpDate.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.sbpDate.Name = "sbpDate"; this.sbpDate.Width = 10; // // sbpTime // this.sbpTime.Alignment = System.Windows.Forms.HorizontalAlignment.Right; this.sbpTime.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.sbpTime.Name = "sbpTime"; this.sbpTime.Text = "statusBarPanel3"; this.sbpTime.Width = 97; // // btnClear // this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnClear.Location = new System.Drawing.Point(669, 186); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(136, 32); this.btnClear.TabIndex = 3; this.btnClear.Text = "C&lean Screen"; this.ttpPolygon.SetToolTip(this.btnClear, "Reset"); this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // ttpPolygon // this.ttpPolygon.AutoPopDelay = 5000; this.ttpPolygon.InitialDelay = 500; this.ttpPolygon.ReshowDelay = 100; // // lblDesc // this.lblDesc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblDesc.AutoSize = true; this.lblDesc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblDesc.Location = new System.Drawing.Point(669, 296); this.lblDesc.Name = "lblDesc"; this.lblDesc.Size = new System.Drawing.Size(32, 13); this.lblDesc.TabIndex = 10; this.lblDesc.Text = "Desc"; // // tmrDesc // this.tmrDesc.Enabled = true; this.tmrDesc.Interval = 1000; this.tmrDesc.Tick += new System.EventHandler(this.tmrDesc_Tick); // // lblNote // this.lblNote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblNote.AutoSize = true; this.lblNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblNote.Location = new System.Drawing.Point(669, 272); this.lblNote.Name = "lblNote"; this.lblNote.Size = new System.Drawing.Size(33, 13); this.lblNote.TabIndex = 11; this.lblNote.Text = "Note:"; // // frmCuttingEars // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(813, 463); this.Controls.Add(this.lblNote); this.Controls.Add(this.lblDesc); this.Controls.Add(this.sbDesc); this.Controls.Add(this.btnClear); this.Controls.Add(this.btnDraw); this.Controls.Add(this.gbPolygon); this.Controls.Add(this.pnlDraw); this.Controls.Add(this.tbCuttingEar); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnCut); this.Menu = this.mnuCuttingEar; this.Name = "frmCuttingEars"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Cutting Polygon Ears"; this.Load += new System.EventHandler(this.frmCuttingEars_Load); this.Paint += new System.Windows.Forms.PaintEventHandler(this.frmCuttingEars_Paint); this.gbPolygon.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.sbpDes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sbpTime)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmUserStatistics)); this.grpUsers = new System.Windows.Forms.GroupBox(); this.lstUsers = new System.Windows.Forms.ListView(); this.colUserID = new System.Windows.Forms.ColumnHeader(); this.colUserName = new System.Windows.Forms.ColumnHeader(); this.colUserEmail = new System.Windows.Forms.ColumnHeader(); this.colNumClients = new System.Windows.Forms.ColumnHeader(); this.colTotalAssigned = new System.Windows.Forms.ColumnHeader(); this.colTotalReturned = new System.Windows.Forms.ColumnHeader(); this.colRegistrationDate = new System.Windows.Forms.ColumnHeader(); this.colLastActive = new System.Windows.Forms.ColumnHeader(); this.cmdOK = new System.Windows.Forms.Button(); this.cmdClose = new System.Windows.Forms.Button(); this.mnuUser = new System.Windows.Forms.ContextMenu(); this.mnuUserDetails = new System.Windows.Forms.MenuItem(); this.grpUsers.SuspendLayout(); this.SuspendLayout(); // // grpUsers // this.grpUsers.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.grpUsers.Controls.Add(this.lstUsers); this.grpUsers.Location = new System.Drawing.Point(8, 8); this.grpUsers.Name = "grpUsers"; this.grpUsers.Size = new System.Drawing.Size(520, 200); this.grpUsers.TabIndex = 0; this.grpUsers.TabStop = false; this.grpUsers.Text = "Registered Users"; // // lstUsers // this.lstUsers.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.lstUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colUserID, this.colUserName, this.colUserEmail, this.colNumClients, this.colTotalAssigned, this.colTotalReturned, this.colRegistrationDate, this.colLastActive }); this.lstUsers.FullRowSelect = true; this.lstUsers.GridLines = true; this.lstUsers.Location = new System.Drawing.Point(8, 16); this.lstUsers.MultiSelect = false; this.lstUsers.Name = "lstUsers"; this.lstUsers.Size = new System.Drawing.Size(504, 176); this.lstUsers.TabIndex = 0; this.lstUsers.View = System.Windows.Forms.View.Details; this.lstUsers.MouseUp += new System.Windows.Forms.MouseEventHandler(this.lstUsers_MouseUp); // // colUserID // this.colUserID.Text = "ID"; this.colUserID.Width = 35; // // colUserName // this.colUserName.Text = "Username"; // // colUserEmail // this.colUserEmail.Text = "Email"; this.colUserEmail.Width = 50; // // colNumClients // this.colNumClients.Text = "Clients"; this.colNumClients.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colNumClients.Width = 45; // // colTotalAssigned // this.colTotalAssigned.Text = "Assigned Urls"; this.colTotalAssigned.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colTotalAssigned.Width = 80; // // colTotalReturned // this.colTotalReturned.Text = "Returned Urls"; this.colTotalReturned.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colTotalReturned.Width = 80; // // colRegistrationDate // this.colRegistrationDate.Text = "Registration"; this.colRegistrationDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colRegistrationDate.Width = 75; // // colLastActive // this.colLastActive.Text = "Last Active"; this.colLastActive.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.colLastActive.Width = 75; // // cmdOK // this.cmdOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cmdOK.Location = new System.Drawing.Point(8, 216); this.cmdOK.Name = "cmdOK"; this.cmdOK.Size = new System.Drawing.Size(80, 24); this.cmdOK.TabIndex = 1; this.cmdOK.Text = "Refresh"; this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click); // // cmdClose // this.cmdClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cmdClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cmdClose.Location = new System.Drawing.Point(96, 216); this.cmdClose.Name = "cmdClose"; this.cmdClose.Size = new System.Drawing.Size(80, 24); this.cmdClose.TabIndex = 2; this.cmdClose.Text = "Close"; this.cmdClose.Click += new System.EventHandler(this.cmdClose_Click); // // mnuUser // this.mnuUser.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuUserDetails }); // // mnuUserDetails // this.mnuUserDetails.Index = 0; this.mnuUserDetails.Text = "Detailed statistics"; this.mnuUserDetails.Click += new System.EventHandler(this.mnuUserDetails_Click); // // frmUserStatistics // this.AcceptButton = this.cmdOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.cmdClose; this.ClientSize = new System.Drawing.Size(536, 245); this.Controls.Add(this.cmdClose); this.Controls.Add(this.cmdOK); this.Controls.Add(this.grpUsers); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmUserStatistics"; this.Text = "User Statistics"; this.Closing += new System.ComponentModel.CancelEventHandler(this.frmUserStatistics_Closing); this.Load += new System.EventHandler(this.frmUserStatistics_Load); this.grpUsers.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModuleList)); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.columnHeader4 = new System.Windows.Forms.ColumnHeader(); this.listView1 = new System.Windows.Forms.ListView(); this.columnHeader5 = new System.Windows.Forms.ColumnHeader(); this.ColumnHeader2 = new System.Windows.Forms.ColumnHeader(); this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.dividerPanel1 = new DividerPanel.DividerPanel(); this.ITC_Next = new ImageTextControl.IMGTXTCTRL(); this.ITC_Prev = new ImageTextControl.IMGTXTCTRL(); this.ITC_DelModule = new ImageTextControl.IMGTXTCTRL(); this.ITC_EditModule = new ImageTextControl.IMGTXTCTRL(); this.ITC_NewModule = new ImageTextControl.IMGTXTCTRL(); this.dividerPanel2 = new DividerPanel.DividerPanel(); this.dividerPanel3 = new DividerPanel.DividerPanel(); this.backgroundWorkerFormLoad = new System.ComponentModel.BackgroundWorker(); this.backgroundWorkerDel = new System.ComponentModel.BackgroundWorker(); this.dividerPanel1.SuspendLayout(); this.dividerPanel3.SuspendLayout(); this.SuspendLayout(); // // menuItem2 // this.menuItem2.Index = -1; this.menuItem2.Text = "编辑"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // columnHeader4 // this.columnHeader4.Text = "描述"; this.columnHeader4.Width = 195; // // listView1 // this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader5, this.ColumnHeader2, this.columnHeader3, this.columnHeader1, this.columnHeader4 }); this.listView1.ContextMenu = this.contextMenu1; this.listView1.Dock = System.Windows.Forms.DockStyle.Fill; this.listView1.FullRowSelect = true; this.listView1.GridLines = true; this.listView1.Location = new System.Drawing.Point(2, 2); this.listView1.MultiSelect = false; this.listView1.Name = "listView1"; this.listView1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.listView1.Size = new System.Drawing.Size(658, 253); this.listView1.TabIndex = 1; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details; this.listView1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.listView1_MouseDown); // // columnHeader5 // this.columnHeader5.Text = "编号"; // // ColumnHeader2 // this.ColumnHeader2.Text = "模块名称"; this.ColumnHeader2.Width = 105; // // columnHeader3 // this.columnHeader3.Text = "模块类名"; this.columnHeader3.Width = 118; // // columnHeader1 // this.columnHeader1.Text = "所属游戏"; this.columnHeader1.Width = 120; // // menuItem1 // this.menuItem1.Index = -1; this.menuItem1.Text = "新建"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem3 // this.menuItem3.Index = -1; this.menuItem3.Text = "删除"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // dividerPanel1 // this.dividerPanel1.AllowDrop = true; this.dividerPanel1.Controls.Add(this.ITC_Next); this.dividerPanel1.Controls.Add(this.ITC_Prev); this.dividerPanel1.Controls.Add(this.ITC_DelModule); this.dividerPanel1.Controls.Add(this.ITC_EditModule); this.dividerPanel1.Controls.Add(this.ITC_NewModule); this.dividerPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.dividerPanel1.Location = new System.Drawing.Point(10, 10); this.dividerPanel1.Name = "dividerPanel1"; this.dividerPanel1.Size = new System.Drawing.Size(662, 38); this.dividerPanel1.TabIndex = 2; // // ITC_Next // this.ITC_Next.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_Next.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_Next.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_Next.IMG_SRC"))); this.ITC_Next.ITXT_ForeColor = System.Drawing.Color.Blue; this.ITC_Next.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_Next.ITXT_TEXT = "下一页"; this.ITC_Next.Location = new System.Drawing.Point(403, 10); this.ITC_Next.Name = "ITC_Next"; this.ITC_Next.Size = new System.Drawing.Size(66, 20); this.ITC_Next.TabIndex = 4; this.ITC_Next.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_Next_ITC_CLICIK); // // ITC_Prev // this.ITC_Prev.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_Prev.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_Prev.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_Prev.IMG_SRC"))); this.ITC_Prev.ITXT_ForeColor = System.Drawing.Color.Blue; this.ITC_Prev.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_Prev.ITXT_TEXT = "上一页"; this.ITC_Prev.Location = new System.Drawing.Point(331, 10); this.ITC_Prev.Name = "ITC_Prev"; this.ITC_Prev.Size = new System.Drawing.Size(66, 20); this.ITC_Prev.TabIndex = 3; this.ITC_Prev.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_Prev_ITC_CLICIK); // // ITC_DelModule // this.ITC_DelModule.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_DelModule.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_DelModule.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_DelModule.IMG_SRC"))); this.ITC_DelModule.ITXT_ForeColor = System.Drawing.Color.Black; this.ITC_DelModule.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_DelModule.ITXT_TEXT = "删除模块"; this.ITC_DelModule.Location = new System.Drawing.Point(176, 10); this.ITC_DelModule.Name = "ITC_DelModule"; this.ITC_DelModule.Size = new System.Drawing.Size(76, 18); this.ITC_DelModule.TabIndex = 2; this.ITC_DelModule.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_DelModule_ITC_CLICIK); // // ITC_EditModule // this.ITC_EditModule.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_EditModule.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_EditModule.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_EditModule.IMG_SRC"))); this.ITC_EditModule.ITXT_ForeColor = System.Drawing.Color.Black; this.ITC_EditModule.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_EditModule.ITXT_TEXT = "编辑模块"; this.ITC_EditModule.Location = new System.Drawing.Point(94, 10); this.ITC_EditModule.Name = "ITC_EditModule"; this.ITC_EditModule.Size = new System.Drawing.Size(76, 18); this.ITC_EditModule.TabIndex = 1; this.ITC_EditModule.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_EditModule_ITC_CLICIK); // // ITC_NewModule // this.ITC_NewModule.ControlPoint = new System.Drawing.Point(0, 0); this.ITC_NewModule.Cursor = System.Windows.Forms.Cursors.Hand; this.ITC_NewModule.IMG_SRC = ((System.Drawing.Image)(resources.GetObject("ITC_NewModule.IMG_SRC"))); this.ITC_NewModule.ITXT_ForeColor = System.Drawing.Color.Black; this.ITC_NewModule.ITXT_MouseHoverColor = System.Drawing.Color.Red; this.ITC_NewModule.ITXT_TEXT = "创建模块"; this.ITC_NewModule.Location = new System.Drawing.Point(12, 10); this.ITC_NewModule.Name = "ITC_NewModule"; this.ITC_NewModule.Size = new System.Drawing.Size(76, 18); this.ITC_NewModule.TabIndex = 0; this.ITC_NewModule.ITC_CLICIK += new ImageTextControl.ITCEventHandler(this.ITC_NewModule_ITC_CLICIK); // // dividerPanel2 // this.dividerPanel2.AllowDrop = true; this.dividerPanel2.Border3DStyle = System.Windows.Forms.Border3DStyle.Adjust; this.dividerPanel2.Dock = System.Windows.Forms.DockStyle.Top; this.dividerPanel2.Location = new System.Drawing.Point(10, 48); this.dividerPanel2.Name = "dividerPanel2"; this.dividerPanel2.Size = new System.Drawing.Size(662, 10); this.dividerPanel2.TabIndex = 3; // // dividerPanel3 // this.dividerPanel3.AllowDrop = true; this.dividerPanel3.Controls.Add(this.listView1); this.dividerPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.dividerPanel3.Location = new System.Drawing.Point(10, 58); this.dividerPanel3.Name = "dividerPanel3"; this.dividerPanel3.Padding = new System.Windows.Forms.Padding(2); this.dividerPanel3.Size = new System.Drawing.Size(662, 257); this.dividerPanel3.TabIndex = 4; // // backgroundWorkerFormLoad // this.backgroundWorkerFormLoad.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorkerFormLoad_DoWork); this.backgroundWorkerFormLoad.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorkerFormLoad_RunWorkerCompleted); // // backgroundWorkerDel // this.backgroundWorkerDel.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorkerDel_DoWork); this.backgroundWorkerDel.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorkerDel_RunWorkerCompleted); // // ModuleList // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(682, 325); this.Controls.Add(this.dividerPanel3); this.Controls.Add(this.dividerPanel2); this.Controls.Add(this.dividerPanel1); this.Name = "ModuleList"; this.Padding = new System.Windows.Forms.Padding(10); this.Text = "模块列表"; this.Load += new System.EventHandler(this.ModuleList_Load); this.dividerPanel1.ResumeLayout(false); this.dividerPanel3.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ColorPicker)); this.label1 = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.ctxHSV_RGB = new System.Windows.Forms.MenuItem(); this.ctxHSV_LAB = new System.Windows.Forms.MenuItem(); this.separator1 = new System.Windows.Forms.MenuItem(); this.ctxPrevColor = new System.Windows.Forms.MenuItem(); this.ctxCopy = new System.Windows.Forms.MenuItem(); this.rdHSV_H = new System.Windows.Forms.RadioButton(); this.rdHSV_S = new System.Windows.Forms.RadioButton(); this.rdHSV_V = new System.Windows.Forms.RadioButton(); this.rdSecond_1 = new System.Windows.Forms.RadioButton(); this.rdSecond_2 = new System.Windows.Forms.RadioButton(); this.rdSecond_3 = new System.Windows.Forms.RadioButton(); this.tbHSV_H = new System.Windows.Forms.TextBox(); this.tbHSV_S = new System.Windows.Forms.TextBox(); this.tbHSV_V = new System.Windows.Forms.TextBox(); this.tbSecond_1 = new System.Windows.Forms.TextBox(); this.tbSecond_2 = new System.Windows.Forms.TextBox(); this.tbSecond_3 = new System.Windows.Forms.TextBox(); this.lblHSV_H = new System.Windows.Forms.Label(); this.lblHSV_S = new System.Windows.Forms.Label(); this.lblHSV_V = new System.Windows.Forms.Label(); this.lblSecond_1 = new System.Windows.Forms.Label(); this.lblSecond_2 = new System.Windows.Forms.Label(); this.lblSecond_3 = new System.Windows.Forms.Label(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.lblColorOut = new Common.Controls.ColorManagement.ColorPicker.ColorLabel(); this.colorSelectionFader1 = new Common.Controls.ColorManagement.ColorPicker.ColorSelectionFader(); this.colorSelectionPlane1 = new Common.Controls.ColorManagement.ColorPicker.ColorSelectionPlane(); this.quickPickBox = new System.Windows.Forms.GroupBox(); this.whiteButton = new System.Windows.Forms.Button(); this.blueButton = new System.Windows.Forms.Button(); this.greenButton = new System.Windows.Forms.Button(); this.redButton = new System.Windows.Forms.Button(); this.quickPickBox.SuspendLayout(); this.SuspendLayout(); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.BackColor = System.Drawing.Color.Silver; this.label1.Name = "label1"; // // btnCancel // resources.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Name = "btnCancel"; // // btnOK // resources.ApplyResources(this.btnOK, "btnOK"); this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Name = "btnOK"; // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.ctxHSV_RGB, this.ctxHSV_LAB, this.separator1, this.ctxPrevColor, this.ctxCopy }); // // ctxHSV_RGB // this.ctxHSV_RGB.Checked = true; this.ctxHSV_RGB.Index = 0; this.ctxHSV_RGB.RadioCheck = true; resources.ApplyResources(this.ctxHSV_RGB, "ctxHSV_RGB"); this.ctxHSV_RGB.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxHSV_LAB // this.ctxHSV_LAB.Index = 1; this.ctxHSV_LAB.RadioCheck = true; resources.ApplyResources(this.ctxHSV_LAB, "ctxHSV_LAB"); this.ctxHSV_LAB.Click += new System.EventHandler(this.ctxOptions_Click); // // separator1 // this.separator1.Index = 2; resources.ApplyResources(this.separator1, "separator1"); // // ctxPrevColor // this.ctxPrevColor.Index = 3; resources.ApplyResources(this.ctxPrevColor, "ctxPrevColor"); this.ctxPrevColor.Click += new System.EventHandler(this.ctxOptions_Click); // // ctxCopy // this.ctxCopy.Index = 4; resources.ApplyResources(this.ctxCopy, "ctxCopy"); this.ctxCopy.Click += new System.EventHandler(this.ctxOptions_Click); // // rdHSV_H // this.rdHSV_H.Checked = true; resources.ApplyResources(this.rdHSV_H, "rdHSV_H"); this.rdHSV_H.Name = "rdHSV_H"; this.rdHSV_H.TabStop = true; this.rdHSV_H.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_S // resources.ApplyResources(this.rdHSV_S, "rdHSV_S"); this.rdHSV_S.Name = "rdHSV_S"; this.rdHSV_S.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdHSV_V // resources.ApplyResources(this.rdHSV_V, "rdHSV_V"); this.rdHSV_V.Name = "rdHSV_V"; this.rdHSV_V.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_1 // resources.ApplyResources(this.rdSecond_1, "rdSecond_1"); this.rdSecond_1.Name = "rdSecond_1"; this.rdSecond_1.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_2 // resources.ApplyResources(this.rdSecond_2, "rdSecond_2"); this.rdSecond_2.Name = "rdSecond_2"; this.rdSecond_2.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // rdSecond_3 // resources.ApplyResources(this.rdSecond_3, "rdSecond_3"); this.rdSecond_3.Name = "rdSecond_3"; this.rdSecond_3.CheckedChanged += new System.EventHandler(this.UpdaterdFaderedChanged); // // tbHSV_H // resources.ApplyResources(this.tbHSV_H, "tbHSV_H"); this.tbHSV_H.Name = "tbHSV_H"; this.tbHSV_H.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_H.Leave += new System.EventHandler(this.tbValue_Leave); // // tbHSV_S // resources.ApplyResources(this.tbHSV_S, "tbHSV_S"); this.tbHSV_S.Name = "tbHSV_S"; this.tbHSV_S.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_S.Leave += new System.EventHandler(this.tbValue_Leave); // // tbHSV_V // resources.ApplyResources(this.tbHSV_V, "tbHSV_V"); this.tbHSV_V.Name = "tbHSV_V"; this.tbHSV_V.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbHSV_V.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_1 // resources.ApplyResources(this.tbSecond_1, "tbSecond_1"); this.tbSecond_1.Name = "tbSecond_1"; this.tbSecond_1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_1.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_2 // resources.ApplyResources(this.tbSecond_2, "tbSecond_2"); this.tbSecond_2.Name = "tbSecond_2"; this.tbSecond_2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_2.Leave += new System.EventHandler(this.tbValue_Leave); // // tbSecond_3 // resources.ApplyResources(this.tbSecond_3, "tbSecond_3"); this.tbSecond_3.Name = "tbSecond_3"; this.tbSecond_3.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbValue_KeyUp); this.tbSecond_3.Leave += new System.EventHandler(this.tbValue_Leave); // // lblHSV_H // resources.ApplyResources(this.lblHSV_H, "lblHSV_H"); this.lblHSV_H.Name = "lblHSV_H"; // // lblHSV_S // resources.ApplyResources(this.lblHSV_S, "lblHSV_S"); this.lblHSV_S.Name = "lblHSV_S"; // // lblHSV_V // resources.ApplyResources(this.lblHSV_V, "lblHSV_V"); this.lblHSV_V.Name = "lblHSV_V"; // // lblSecond_1 // resources.ApplyResources(this.lblSecond_1, "lblSecond_1"); this.lblSecond_1.Name = "lblSecond_1"; // // lblSecond_2 // resources.ApplyResources(this.lblSecond_2, "lblSecond_2"); this.lblSecond_2.Name = "lblSecond_2"; // // lblSecond_3 // resources.ApplyResources(this.lblSecond_3, "lblSecond_3"); this.lblSecond_3.Name = "lblSecond_3"; // // toolTip // this.toolTip.AutomaticDelay = 1000; this.toolTip.AutoPopDelay = 5000; this.toolTip.InitialDelay = 1000; this.toolTip.ReshowDelay = 200; // // lblColorOut // resources.ApplyResources(this.lblColorOut, "lblColorOut"); this.lblColorOut.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.lblColorOut.ContextMenu = this.contextMenu; this.lblColorOut.Name = "lblColorOut"; this.lblColorOut.OldColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.toolTip.SetToolTip(this.lblColorOut, resources.GetString("lblColorOut.ToolTip")); this.lblColorOut.ColorChanged += new System.EventHandler(this.lblColorOut_ColorChanged); // // colorSelectionFader1 // resources.ApplyResources(this.colorSelectionFader1, "colorSelectionFader1"); this.colorSelectionFader1.Name = "colorSelectionFader1"; this.colorSelectionFader1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionFader1, resources.GetString("colorSelectionFader1.ToolTip")); // // colorSelectionPlane1 // resources.ApplyResources(this.colorSelectionPlane1, "colorSelectionPlane1"); this.colorSelectionPlane1.Name = "colorSelectionPlane1"; this.colorSelectionPlane1.TabStop = false; this.toolTip.SetToolTip(this.colorSelectionPlane1, resources.GetString("colorSelectionPlane1.ToolTip")); // // quickPickBox // this.quickPickBox.Controls.Add(this.whiteButton); this.quickPickBox.Controls.Add(this.blueButton); this.quickPickBox.Controls.Add(this.greenButton); this.quickPickBox.Controls.Add(this.redButton); resources.ApplyResources(this.quickPickBox, "quickPickBox"); this.quickPickBox.Name = "quickPickBox"; this.quickPickBox.TabStop = false; // // whiteButton // this.whiteButton.BackColor = System.Drawing.Color.White; resources.ApplyResources(this.whiteButton, "whiteButton"); this.whiteButton.Name = "whiteButton"; this.whiteButton.UseVisualStyleBackColor = false; this.whiteButton.Click += new System.EventHandler(this.whiteButton_Click); // // blueButton // this.blueButton.BackColor = System.Drawing.Color.Blue; resources.ApplyResources(this.blueButton, "blueButton"); this.blueButton.Name = "blueButton"; this.blueButton.UseVisualStyleBackColor = false; this.blueButton.Click += new System.EventHandler(this.blueButton_Click); // // greenButton // this.greenButton.BackColor = System.Drawing.Color.Green; resources.ApplyResources(this.greenButton, "greenButton"); this.greenButton.Name = "greenButton"; this.greenButton.UseVisualStyleBackColor = false; this.greenButton.Click += new System.EventHandler(this.greenButton_Click); // // redButton // this.redButton.BackColor = System.Drawing.Color.Red; resources.ApplyResources(this.redButton, "redButton"); this.redButton.Name = "redButton"; this.redButton.UseVisualStyleBackColor = false; this.redButton.Click += new System.EventHandler(this.redButton_Click); // // ColorPicker // this.AcceptButton = this.btnOK; resources.ApplyResources(this, "$this"); this.CancelButton = this.btnCancel; this.Controls.Add(this.quickPickBox); this.Controls.Add(this.lblColorOut); this.Controls.Add(this.lblHSV_H); this.Controls.Add(this.tbSecond_3); this.Controls.Add(this.tbSecond_2); this.Controls.Add(this.tbSecond_1); this.Controls.Add(this.tbHSV_V); this.Controls.Add(this.tbHSV_S); this.Controls.Add(this.tbHSV_H); this.Controls.Add(this.rdHSV_H); this.Controls.Add(this.btnCancel); this.Controls.Add(this.label1); this.Controls.Add(this.colorSelectionFader1); this.Controls.Add(this.colorSelectionPlane1); this.Controls.Add(this.btnOK); this.Controls.Add(this.rdHSV_S); this.Controls.Add(this.rdHSV_V); this.Controls.Add(this.rdSecond_1); this.Controls.Add(this.rdSecond_2); this.Controls.Add(this.rdSecond_3); this.Controls.Add(this.lblHSV_S); this.Controls.Add(this.lblHSV_V); this.Controls.Add(this.lblSecond_1); this.Controls.Add(this.lblSecond_2); this.Controls.Add(this.lblSecond_3); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorPicker"; this.ShowInTaskbar = false; this.quickPickBox.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] { "bla bla", "bla 2 item" }, -1); System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("bla 2"); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.butClose = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.listView1 = new System.Windows.Forms.ListView(); this.Start = new System.Windows.Forms.ColumnHeader(); this.S**t = new System.Windows.Forms.ColumnHeader(); this.Info = new System.Windows.Forms.ColumnHeader(); this.label3 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // notifyIcon1 // this.notifyIcon1.ContextMenu = this.contextMenu1; this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); this.notifyIcon1.Text = "Oles Tidsregistrerings Assistent"; this.notifyIcon1.Visible = true; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "Close"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // butClose // this.butClose.Location = new System.Drawing.Point(416, 168); this.butClose.Name = "butClose"; this.butClose.TabIndex = 3; this.butClose.Text = "Luk"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // textBox1 // this.textBox1.AcceptsReturn = true; this.textBox1.Enabled = false; this.textBox1.Location = new System.Drawing.Point(240, 40); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(248, 112); this.textBox1.TabIndex = 2; this.textBox1.Text = ""; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // label1 // this.label1.Location = new System.Drawing.Point(240, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(32, 16); this.label1.TabIndex = 2; this.label1.Text = "Notat"; // // label2 // this.label2.Location = new System.Drawing.Point(8, 24); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(200, 16); this.label2.TabIndex = 4; this.label2.Text = "Periode"; // // listView1 // this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Start, this.S**t, this.Info }); this.listView1.FullRowSelect = true; this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] { listViewItem1, listViewItem2 }); this.listView1.Location = new System.Drawing.Point(8, 40); this.listView1.MultiSelect = false; this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(224, 112); this.listView1.TabIndex = 0; this.listView1.View = System.Windows.Forms.View.Details; this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged); // // Start // this.Start.Text = "Start"; this.Start.Width = 43; // // S**t // this.S**t.Text = "S**t"; this.S**t.Width = 41; // // Info // this.Info.Text = "Info"; this.Info.Width = 135; // // label3 // this.label3.Location = new System.Drawing.Point(328, 22); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 16); this.label3.TabIndex = 6; this.label3.Text = "Info"; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(352, 16); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(136, 20); this.textBox2.TabIndex = 1; this.textBox2.Text = ""; this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); // // button1 // this.button1.Location = new System.Drawing.Point(288, 168); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(120, 23); this.button1.TabIndex = 4; this.button1.Text = "Hent tekst fra forrige"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(208, 168); this.button2.Name = "button2"; this.button2.TabIndex = 5; this.button2.Text = "Vis dag"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(496, 198); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.textBox2); this.Controls.Add(this.label3); this.Controls.Add(this.listView1); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.textBox1); this.Controls.Add(this.butClose); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Oles tidsregistrerings assistent"; this.TopMost = true; this.WindowState = System.Windows.Forms.FormWindowState.Minimized; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); }
public CameraView() { InitializeComponent(); //call this function when closing //this.Closing +=new CancelEventHandler(Cleanup); //this is depreciated this.FormClosing += new FormClosingEventHandler(CameraView_FormClosing); //do not allow the cameraview to be closed by itself //setup key handeling KeyPreview = true; Global.Instance.mainForm.SetupCursorNavigation(Controls); KeyUp += Global.Instance.mainForm.My_KeyUp; //setup video processing // load the different filter blocks upSet = new AForgeFunctionSet("UP"); downSet = new AForgeFunctionSet("DOWN"); HideFilters(); //start hidden //Setup Checkbox Bindings DownCamera_drawGrid_checkBox.DataBindings.Add("Checked", downSettings, "Draw1mmGrid", false, DataSourceUpdateMode.OnPropertyChanged); DownCameraDrawCross_checkBox.DataBindings.Add("Checked", downSettings, "DrawCross", false, DataSourceUpdateMode.OnPropertyChanged); DownCameraDrawBox_checkBox.DataBindings.Add("Checked", downSettings, "DrawBox", false, DataSourceUpdateMode.OnPropertyChanged); DownCameraDrawTicks_checkBox.DataBindings.Add("Checked", downSettings, "DrawSidemarks", false, DataSourceUpdateMode.OnPropertyChanged); DownCamFindCircles_checkBox.DataBindings.Add("Checked", downSettings, "FindCircles", false, DataSourceUpdateMode.OnPropertyChanged); DownCamFindRectangles_checkBox.DataBindings.Add("Checked", downSettings, "FindRectangles", false, DataSourceUpdateMode.OnPropertyChanged); DownCam_FindComponents_checkBox.DataBindings.Add("Checked", downSettings, "FindComponent", false, DataSourceUpdateMode.OnPropertyChanged); DownCamera_FindFiducials_cb.DataBindings.Add("Checked", downSettings, "FindFiducial", false, DataSourceUpdateMode.OnPropertyChanged); UpCam_DrawCross.DataBindings.Add("Checked", upSettings, "DrawCross", false, DataSourceUpdateMode.OnPropertyChanged); UpCan_DrawBox.DataBindings.Add("Checked", upSettings, "DrawBox", false, DataSourceUpdateMode.OnPropertyChanged); UpCam_DrawDashedBox.DataBindings.Add("Checked", upSettings, "DrawDashedCross", false, DataSourceUpdateMode.OnPropertyChanged); UpCam_FindCircles.DataBindings.Add("Checked", upSettings, "FindCircles", false, DataSourceUpdateMode.OnPropertyChanged); UpCam_FindComponents.DataBindings.Add("Checked", upSettings, "FindComponent", false, DataSourceUpdateMode.OnPropertyChanged); UpCam_FindRectangles.DataBindings.Add("Checked", upSettings, "FindRectangles", false, DataSourceUpdateMode.OnPropertyChanged); //start video capture upVideoCapture = new VideoCapture(CameraType.UpCamera); upVideoProcessing = new VideoProcessing(upVideoCapture, upSettings); upVideoCapture.FrameCaptureDelegates.Add(UpCameraVideoProcessingCallback); upVideoProcessing.SetFunctionsList(""); downVideoCapture = new VideoCapture(CameraType.DownCamera); downVideoProcessing = new VideoProcessing(downVideoCapture, downSettings); downVideoCapture.FrameCaptureDelegates.Add(DownCameraVideoProcessingCallback); downVideoProcessing.SetFunctionsList(""); //fill combobox // todo - restore from defaults UpCamera_FilterSet.DataSource = new BindingSource { DataSource = upSet.GetNames() }; DownCamera_FilterSet.DataSource = new BindingSource { DataSource = downSet.GetNames() }; var videoSources = VideoCapture.GetVideoDeviceList(); UpCam_ComboBox.DataSource = new BindingSource { DataSource = videoSources }; DownCam_ComboBox.DataSource = new BindingSource { DataSource = videoSources }; //load saved values var s = Properties.Settings.Default; if (s.UpCam_index != s.DownCam_index) { if (s.DownCam_index > 0 && s.DownCam_index <= videoSources.Count + 1) { DownCam_ComboBox.SelectedIndex = s.DownCam_index - 1; downVideoCapture.Start(DownCam_ComboBox.SelectedIndex); } if (s.UpCam_index > 0 && s.UpCam_index <= videoSources.Count + 1) { UpCam_ComboBox.SelectedIndex = s.UpCam_index - 1; upVideoCapture.Start(UpCam_ComboBox.SelectedIndex); } } //right click context menu ContextMenu cms = new System.Windows.Forms.ContextMenu(); var i = Global.Instance; cms.MenuItems.Add(new MenuItem("Needle To Table (Probe) And Back", delegate { var x = i.cnc.XYLocation; if (i.needle.Move_m(x) && i.needle.ProbeDown() && i.cnc.Zup() && i.cnc.CNC_XY(x)) { } ; })); cms.MenuItems.Add(new MenuItem("Move To Closest Circle", delegate { i.mainForm.FindPositionAndMoveToClosest(Shapes.ShapeTypes.Circle, 5, .1); })); DownCamera_PictureBox.ContextMenu = cms; //bind editor values uFilter_dataGridView.DataSource = currentUpBinding; dFilter_dataGridView.DataSource = currentDownBinding; methodDataGridViewTextBoxColumn.DataSource = Enum.GetValues(typeof(AForgeMethod)); methodDataGridViewTextBoxColumn1.DataSource = Enum.GetValues(typeof(AForgeMethod)); //monitor frame rate FPStimer.Elapsed += delegate { UpdateFPS(); }; FPStimer.Start(); }
InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ParamEnumSnoop)); this.m_tvObjs = new System.Windows.Forms.TreeView(); this.m_cntxMenuObjId = new System.Windows.Forms.ContextMenu(); this.m_mnuItemCopy = new System.Windows.Forms.MenuItem(); this.m_mnuItemBrowseReflection = new System.Windows.Forms.MenuItem(); this.m_bnOK = new System.Windows.Forms.Button(); this.m_lvData = new System.Windows.Forms.ListView(); this.m_lvCol_label = new System.Windows.Forms.ColumnHeader(); this.m_lvCol_value = new System.Windows.Forms.ColumnHeader(); this.listViewContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.m_printDialog = new System.Windows.Forms.PrintDialog(); this.m_printDocument = new System.Drawing.Printing.PrintDocument(); this.m_printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog(); this.listViewContextMenuStrip.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // m_tvObjs // this.m_tvObjs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.m_tvObjs.ContextMenu = this.m_cntxMenuObjId; this.m_tvObjs.HideSelection = false; this.m_tvObjs.Location = new System.Drawing.Point(11, 38); this.m_tvObjs.Name = "m_tvObjs"; this.m_tvObjs.Size = new System.Drawing.Size(248, 415); this.m_tvObjs.TabIndex = 0; this.m_tvObjs.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeNodeSelected); this.m_tvObjs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeNodeSelected); // // m_cntxMenuObjId // this.m_cntxMenuObjId.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.m_mnuItemCopy, this.m_mnuItemBrowseReflection }); // // m_mnuItemCopy // this.m_mnuItemCopy.Index = 0; this.m_mnuItemCopy.Text = "Copy"; this.m_mnuItemCopy.Click += new System.EventHandler(this.ContextMenuClick_Copy); // // m_mnuItemBrowseReflection // this.m_mnuItemBrowseReflection.Index = 1; this.m_mnuItemBrowseReflection.Text = "Browse Using Reflection..."; this.m_mnuItemBrowseReflection.Click += new System.EventHandler(this.ContextMenuClick_BrowseReflection); // // m_bnOK // this.m_bnOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.m_bnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_bnOK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.m_bnOK.Location = new System.Drawing.Point(364, 459); this.m_bnOK.Name = "m_bnOK"; this.m_bnOK.Size = new System.Drawing.Size(75, 23); this.m_bnOK.TabIndex = 2; this.m_bnOK.Text = "OK"; // // m_lvData // this.m_lvData.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.m_lvData.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.m_lvCol_label, this.m_lvCol_value }); this.m_lvData.ContextMenuStrip = this.listViewContextMenuStrip; this.m_lvData.FullRowSelect = true; this.m_lvData.GridLines = true; this.m_lvData.Location = new System.Drawing.Point(284, 38); this.m_lvData.Name = "m_lvData"; this.m_lvData.Size = new System.Drawing.Size(504, 415); this.m_lvData.TabIndex = 3; this.m_lvData.UseCompatibleStateImageBehavior = false; this.m_lvData.View = System.Windows.Forms.View.Details; this.m_lvData.DoubleClick += new System.EventHandler(this.DataItemSelected); this.m_lvData.Click += new System.EventHandler(this.DataItemSelected); // // m_lvCol_label // this.m_lvCol_label.Text = "Field"; this.m_lvCol_label.Width = 200; // // m_lvCol_value // this.m_lvCol_value.Text = "Value"; this.m_lvCol_value.Width = 300; // // listViewContextMenuStrip // this.listViewContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.copyToolStripMenuItem }); this.listViewContextMenuStrip.Name = "listViewContextMenuStrip"; this.listViewContextMenuStrip.Size = new System.Drawing.Size(103, 26); // // copyToolStripMenuItem // this.copyToolStripMenuItem.Image = global::RevitLookup.Properties.Resources.COPY; this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.Size = new System.Drawing.Size(102, 22); this.copyToolStripMenuItem.Text = "Copy"; this.copyToolStripMenuItem.Click += new System.EventHandler(this.CopyToolStripMenuItem_Click); // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButton1, this.toolStripButton2, this.toolStripButton3 }); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(800, 25); this.toolStrip1.TabIndex = 5; this.toolStrip1.Text = "toolStrip1"; // // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton1.Image = global::RevitLookup.Properties.Resources.Print; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Size = new System.Drawing.Size(23, 22); this.toolStripButton1.Text = "Print"; this.toolStripButton1.Click += new System.EventHandler(this.PrintMenuItem_Click); // // toolStripButton2 // this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton2.Image = global::RevitLookup.Properties.Resources.Preview; this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton2.Name = "toolStripButton2"; this.toolStripButton2.Size = new System.Drawing.Size(23, 22); this.toolStripButton2.Text = "Print Preview"; this.toolStripButton2.Click += new System.EventHandler(this.PrintPreviewMenuItem_Click); // // toolStripButton3 // this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton3.Image = global::RevitLookup.Properties.Resources.COPY; this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton3.Name = "toolStripButton3"; this.toolStripButton3.Size = new System.Drawing.Size(23, 22); this.toolStripButton3.Text = "Copy To Clipboard"; this.toolStripButton3.Click += new System.EventHandler(this.ContextMenuClick_Copy); // // m_printDialog // this.m_printDialog.Document = this.m_printDocument; this.m_printDialog.UseEXDialog = true; // // m_printDocument // this.m_printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.PrintDocument_PrintPage); // // m_printPreviewDialog // this.m_printPreviewDialog.AutoScrollMargin = new System.Drawing.Size(0, 0); this.m_printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.m_printPreviewDialog.ClientSize = new System.Drawing.Size(400, 300); this.m_printPreviewDialog.Document = this.m_printDocument; this.m_printPreviewDialog.Enabled = true; this.m_printPreviewDialog.Icon = ((System.Drawing.Icon)(resources.GetObject("m_printPreviewDialog.Icon"))); this.m_printPreviewDialog.Name = "m_printPreviewDialog"; this.m_printPreviewDialog.Visible = false; // // ParamEnumSnoop // this.AcceptButton = this.m_bnOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.m_bnOK; this.ClientSize = new System.Drawing.Size(800, 489); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.m_bnOK); this.Controls.Add(this.m_tvObjs); this.Controls.Add(this.m_lvData); this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(650, 200); this.Name = "ParamEnumSnoop"; this.ShowInTaskbar = false; this.Text = "Snoop Built-In Parameters"; this.listViewContextMenuStrip.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem3, this.menuItem4, this.menuItem6, this.menuItem7, this.menuItem8, this.menuItem9, this.menuItem5 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "旋转45度"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "旋转90度"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // menuItem3 // this.menuItem3.Index = 2; this.menuItem3.Text = "旋转120度"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem4 // this.menuItem4.Index = 3; this.menuItem4.Text = "旋转180度"; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem5 // this.menuItem5.Index = 8; this.menuItem5.Text = "还原"; this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); // // menuItem6 // this.menuItem6.Index = 4; this.menuItem6.Text = "-"; // // menuItem7 // this.menuItem7.Index = 5; this.menuItem7.Text = "放大120%"; this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click); // // menuItem8 // this.menuItem8.Index = 6; this.menuItem8.Text = "缩小80%"; this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click); // // menuItem9 // this.menuItem9.Index = 7; this.menuItem9.Text = "-"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(480, 357); this.ContextMenu = this.contextMenu1; this.Name = "Form1"; this.Text = "图形的旋转和缩放"; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CodeWindow)); this.tlbModel = new System.Windows.Forms.ToolBar(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.imgList = new System.Windows.Forms.ImageList(this.components); this.tvwModel = new System.Windows.Forms.TreeView(); this.ctxMenu = new System.Windows.Forms.ContextMenu(); this.SuspendLayout(); // // tlbModel // this.tlbModel.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton1, this.toolBarButton2 }); this.tlbModel.DropDownArrows = true; this.tlbModel.ImageList = this.imgList; this.tlbModel.Name = "tlbModel"; this.tlbModel.ShowToolTips = true; this.tlbModel.Size = new System.Drawing.Size(248, 39); this.tlbModel.TabIndex = 0; this.tlbModel.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tlbModel_ButtonClick); // // toolBarButton1 // this.toolBarButton1.ImageIndex = 8; this.toolBarButton1.Tag = "NEWMODEL"; this.toolBarButton1.Text = "New Model"; this.toolBarButton1.ToolTipText = "Create a new Model"; // // toolBarButton2 // this.toolBarButton2.Text = "Syncronize Model View"; // // imgList // this.imgList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.imgList.ImageSize = new System.Drawing.Size(16, 16); this.imgList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList.ImageStream"))); this.imgList.TransparentColor = System.Drawing.Color.Transparent; // // tvwModel // this.tvwModel.BackColor = System.Drawing.SystemColors.Window; this.tvwModel.Dock = System.Windows.Forms.DockStyle.Fill; this.tvwModel.ImageIndex = 1; this.tvwModel.ImageList = this.imgList; this.tvwModel.Location = new System.Drawing.Point(0, 39); this.tvwModel.Name = "tvwModel"; this.tvwModel.Size = new System.Drawing.Size(248, 217); this.tvwModel.TabIndex = 1; this.tvwModel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tvwModel_MouseDown); this.tvwModel.Click += new System.EventHandler(this.tvwModel_Click); this.tvwModel.DoubleClick += new System.EventHandler(this.tvwModel_DoubleClick); this.tvwModel.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvwModel_AfterSelect); this.tvwModel.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.tvwModel_AfterLabelEdit); // // ctxMenu // this.ctxMenu.Popup += new System.EventHandler(this.ctxMenu_Popup); // // CodeWindow // this.Controls.AddRange(new System.Windows.Forms.Control[] { this.tvwModel, this.tlbModel }); this.Name = "CodeWindow"; this.Size = new System.Drawing.Size(248, 256); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.grpWeatherItems = new System.Windows.Forms.GroupBox(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.txtSelect = new System.Windows.Forms.TextBox(); this.lblSelect = new System.Windows.Forms.Label(); this.btnRefreshList = new System.Windows.Forms.Button(); this.lstWeatherItemNames = new System.Windows.Forms.ListBox(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuZoomTo = new System.Windows.Forms.MenuItem(); this.chkNewSelection = new System.Windows.Forms.CheckBox(); this.btnSelect = new System.Windows.Forms.Button(); this.btnDismiss = new System.Windows.Forms.Button(); this.grpWeatherItems.SuspendLayout(); this.SuspendLayout(); // // grpWeatherItems // this.grpWeatherItems.Controls.Add(this.progressBar1); this.grpWeatherItems.Controls.Add(this.txtSelect); this.grpWeatherItems.Controls.Add(this.lblSelect); this.grpWeatherItems.Controls.Add(this.btnRefreshList); this.grpWeatherItems.Controls.Add(this.lstWeatherItemNames); this.grpWeatherItems.Location = new System.Drawing.Point(4, 8); this.grpWeatherItems.Name = "grpWeatherItems"; this.grpWeatherItems.Size = new System.Drawing.Size(200, 328); this.grpWeatherItems.TabIndex = 0; this.grpWeatherItems.TabStop = false; // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(8, 256); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(184, 23); this.progressBar1.Step = 1; this.progressBar1.TabIndex = 4; // // txtSelect // this.txtSelect.Location = new System.Drawing.Point(92, 296); this.txtSelect.Name = "txtSelect"; this.txtSelect.TabIndex = 3; this.txtSelect.Text = ""; this.txtSelect.TextChanged += new System.EventHandler(this.txtSelect_TextChanged); // // lblSelect // this.lblSelect.Location = new System.Drawing.Point(8, 300); this.lblSelect.Name = "lblSelect"; this.lblSelect.Size = new System.Drawing.Size(52, 16); this.lblSelect.TabIndex = 2; this.lblSelect.Text = "Select"; // // btnRefreshList // this.btnRefreshList.Location = new System.Drawing.Point(64, 256); this.btnRefreshList.Name = "btnRefreshList"; this.btnRefreshList.TabIndex = 1; this.btnRefreshList.Text = "Refresh List"; this.btnRefreshList.Click += new System.EventHandler(this.btnRefreshList_Click); // // lstWeatherItemNames // this.lstWeatherItemNames.ContextMenu = this.contextMenu1; this.lstWeatherItemNames.Location = new System.Drawing.Point(8, 16); this.lstWeatherItemNames.Name = "lstWeatherItemNames"; this.lstWeatherItemNames.Size = new System.Drawing.Size(184, 225); this.lstWeatherItemNames.Sorted = true; this.lstWeatherItemNames.TabIndex = 0; this.lstWeatherItemNames.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstWeatherItemNames_MouseDown); this.lstWeatherItemNames.DoubleClick += new System.EventHandler(this.lstWeatherItemNames_DoubleClick); // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuZoomTo }); // // menuZoomTo // this.menuZoomTo.Index = 0; this.menuZoomTo.Text = "Zoom To"; this.menuZoomTo.Click += new System.EventHandler(this.menuZoomTo_Click); // // chkNewSelection // this.chkNewSelection.Checked = true; this.chkNewSelection.CheckState = System.Windows.Forms.CheckState.Checked; this.chkNewSelection.Location = new System.Drawing.Point(12, 344); this.chkNewSelection.Name = "chkNewSelection"; this.chkNewSelection.TabIndex = 1; this.chkNewSelection.Text = "New Selection"; // // btnSelect // this.btnSelect.Location = new System.Drawing.Point(8, 380); this.btnSelect.Name = "btnSelect"; this.btnSelect.TabIndex = 2; this.btnSelect.Text = "Select"; this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); // // btnDismiss // this.btnDismiss.Location = new System.Drawing.Point(124, 384); this.btnDismiss.Name = "btnDismiss"; this.btnDismiss.TabIndex = 3; this.btnDismiss.Text = "Dismiss"; this.btnDismiss.Click += new System.EventHandler(this.btnDismiss_Click); // // WeatherItemSelectionDlg // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(206, 416); this.Controls.Add(this.btnDismiss); this.Controls.Add(this.btnSelect); this.Controls.Add(this.chkNewSelection); this.Controls.Add(this.grpWeatherItems); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "WeatherItemSelectionDlg"; this.ShowInTaskbar = false; this.Text = "Select weather item"; this.TopMost = true; this.Load += new System.EventHandler(this.WeatherItemSelectionDlg_Load); this.VisibleChanged += new System.EventHandler(this.WeatherItemSelectionDlg_VisibleChanged); this.grpWeatherItems.ResumeLayout(false); this.ResumeLayout(false); }
public frmTray() { InitializeComponent(); this.components = new System.ComponentModel.Container(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuLine = new System.Windows.Forms.MenuItem(); this.menuLine2 = new System.Windows.Forms.MenuItem(); this.menuLine3 = new System.Windows.Forms.MenuItem(); this.menuCheckNow = new System.Windows.Forms.MenuItem(); this.menuTellMeAgain = new System.Windows.Forms.MenuItem(); this.menuSettings = new System.Windows.Forms.MenuItem(); this.menuAbout = new System.Windows.Forms.MenuItem(); this.menuExit = new System.Windows.Forms.MenuItem(); this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuCheckNow, this.menuTellMeAgain, this.menuLine, this.menuSettings, this.menuLine2, this.menuAbout, this.menuLine3, this.menuExit }); // Initialize menuCheckNow this.menuCheckNow.Index = 0; this.menuCheckNow.Text = "Check Now"; this.menuCheckNow.Click += new System.EventHandler(this.menuCheckNow_Click); // Initialize menuTellMeAgain this.menuTellMeAgain.Index = 1; this.menuTellMeAgain.Text = "Tell Me Again"; this.menuTellMeAgain.Click += new System.EventHandler(this.menuTellMeAgain_Click); // Initialize menuLine this.menuLine.Index = 2; this.menuLine.Text = "-"; // Initialize menuSettings this.menuSettings.Index = 3; this.menuSettings.Text = "Settings"; this.menuSettings.Click += new System.EventHandler(this.menuSettings_Click); // Initialize menuLine this.menuLine2.Index = 4; this.menuLine2.Text = "-"; // Initialize menuSettings this.menuAbout.Index = 5; this.menuAbout.Text = "About"; this.menuAbout.Click += new System.EventHandler(this.menuAbout_Click); // Initialize menuLine this.menuLine3.Index = 6; this.menuLine3.Text = "-"; // Initialize menuExit this.menuExit.Index = 7; this.menuExit.Text = "Exit"; this.menuExit.Click += new System.EventHandler(this.menuExit_Click); // Set up how the form should be displayed. this.ClientSize = new System.Drawing.Size(292, 266); this.Text = "Notify Icon"; ntfyIcon.ContextMenu = this.contextMenu1; byte[] passwordEnc = null; try { Microsoft.Win32.RegistryKey gmailRegKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\GmailNotifier"); using (gmailRegKey) { Variables.Username = (string)gmailRegKey.GetValue("Username"); passwordEnc = (byte[])gmailRegKey.GetValue("Password"); if (passwordEnc != null) { Variables.Password = UTF8Encoding.UTF8.GetString(ProtectedData.Unprotect(passwordEnc, null, DataProtectionScope.CurrentUser)); } Variables.ChkInterval = (int)gmailRegKey.GetValue("ChkInterval"); Variables.NtfyInterval = (int)gmailRegKey.GetValue("NtfyInterval"); } } catch (Exception e) { //MessageBox.Show(e.Message); MessageBox.Show("Incomplete settings detected. This is not a fatal error. Please update your preferances accordingly.", e.Message, MessageBoxButtons.OK, MessageBoxIcon.Asterisk); //return; if (Variables.Username == null) { Variables.Username = String.Empty; } if (passwordEnc == null) { Variables.Password = String.Empty; } Variables.ChkInterval = 5; Variables.NtfyInterval = 5; frmSettings _frmSettings = new frmSettings(); _frmSettings.Show(); Variables.settingsOpened = true; } if (Variables.Username == String.Empty || Variables.Password == String.Empty) { if (Variables.settingsOpened != true) { frmSettings _frmSettings = new frmSettings(); _frmSettings.Show(); Variables.settingsOpened = true; } } else { checkMail(); } tmrCheckMail.Interval = _ChkInterval(Variables.ChkInterval); tmrCheckMail.Enabled = true; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TravelAgentForm)); this.mMain = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.miNew = new System.Windows.Forms.MenuItem(); this.miOpen = new System.Windows.Forms.MenuItem(); this.miMerge = new System.Windows.Forms.MenuItem(); this.miSave = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.miImport = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.miExit = new System.Windows.Forms.MenuItem(); this.tCat = new System.Windows.Forms.TreeView(); this.cmCat = new System.Windows.Forms.ContextMenu(); this.miCatRename = new System.Windows.Forms.MenuItem(); this.miCatDelete = new System.Windows.Forms.MenuItem(); this.tLoc = new System.Windows.Forms.TreeView(); this.cmLoc = new System.Windows.Forms.ContextMenu(); this.miLocRename = new System.Windows.Forms.MenuItem(); this.miLocDelete = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.miLocUpdate = new System.Windows.Forms.MenuItem(); this.miUpdateClient = new System.Windows.Forms.MenuItem(); this.miUpdateMap = new System.Windows.Forms.MenuItem(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.txCat = new System.Windows.Forms.TextBox(); this.txLoc = new System.Windows.Forms.TextBox(); this.bAddCat = new System.Windows.Forms.Button(); this.bAddLoc = new System.Windows.Forms.Button(); this.m_Map = new TheBox.MapViewer.MapViewer(); this.label3 = new System.Windows.Forms.Label(); this.lnk0 = new System.Windows.Forms.LinkLabel(); this.lnk1 = new System.Windows.Forms.LinkLabel(); this.lnk2 = new System.Windows.Forms.LinkLabel(); this.lnk3 = new System.Windows.Forms.LinkLabel(); this.rClient = new System.Windows.Forms.RadioButton(); this.rMap = new System.Windows.Forms.RadioButton(); this.rManually = new System.Windows.Forms.RadioButton(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.grpPoint = new System.Windows.Forms.GroupBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.nZ = new System.Windows.Forms.NumericUpDown(); this.nY = new System.Windows.Forms.NumericUpDown(); this.nX = new System.Windows.Forms.NumericUpDown(); this.label4 = new System.Windows.Forms.Label(); this.BrowseFolder = new System.Windows.Forms.FolderBrowserDialog(); this.OpenFile = new System.Windows.Forms.OpenFileDialog(); this.lnk4 = new System.Windows.Forms.LinkLabel(); this.groupBox1.SuspendLayout(); this.grpPoint.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nZ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nY)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nX)).BeginInit(); this.SuspendLayout(); // // mMain // this.mMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miNew, this.miOpen, this.miMerge, this.miSave, this.menuItem7, this.menuItem4, this.menuItem9, this.miExit }); this.menuItem1.Text = "File"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // miNew // this.miNew.Index = 0; this.miNew.Text = "New"; this.miNew.Click += new System.EventHandler(this.miNew_Click); // // miOpen // this.miOpen.Index = 1; this.miOpen.Text = "Open"; this.miOpen.Click += new System.EventHandler(this.miOpen_Click); // // miMerge // this.miMerge.Index = 2; this.miMerge.Text = "Merge"; this.miMerge.Click += new System.EventHandler(this.miMerge_Click); // // miSave // this.miSave.Index = 3; this.miSave.Text = "Save"; this.miSave.Click += new System.EventHandler(this.miSave_Click); // // menuItem7 // this.menuItem7.Index = 4; this.menuItem7.Text = "-"; // // menuItem4 // this.menuItem4.Index = 5; this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miImport }); this.menuItem4.Text = "Import"; // // miImport // this.miImport.Index = 0; this.miImport.Text = "Pandora\'s Box 1"; this.miImport.Click += new System.EventHandler(this.miImport_Click); // // menuItem9 // this.menuItem9.Index = 6; this.menuItem9.Text = "-"; // // miExit // this.miExit.Index = 7; this.miExit.Text = "Exit"; this.miExit.Click += new System.EventHandler(this.miExit_Click); // // tCat // this.tCat.ContextMenu = this.cmCat; this.tCat.HideSelection = false; this.tCat.ImageIndex = -1; this.tCat.LabelEdit = true; this.tCat.Location = new System.Drawing.Point(4, 16); this.tCat.Name = "tCat"; this.tCat.SelectedImageIndex = -1; this.tCat.Size = new System.Drawing.Size(132, 192); this.tCat.Sorted = true; this.tCat.TabIndex = 0; this.tCat.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tCat_AfterSelect); // // cmCat // this.cmCat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miCatRename, this.miCatDelete }); this.cmCat.Popup += new System.EventHandler(this.cmCat_Popup); // // miCatRename // this.miCatRename.Index = 0; this.miCatRename.Text = "Rename"; this.miCatRename.Click += new System.EventHandler(this.miCatRename_Click); // // miCatDelete // this.miCatDelete.Index = 1; this.miCatDelete.Text = "Delete"; this.miCatDelete.Click += new System.EventHandler(this.miCatDelete_Click); // // tLoc // this.tLoc.ContextMenu = this.cmLoc; this.tLoc.HideSelection = false; this.tLoc.ImageIndex = -1; this.tLoc.LabelEdit = true; this.tLoc.Location = new System.Drawing.Point(140, 16); this.tLoc.Name = "tLoc"; this.tLoc.SelectedImageIndex = -1; this.tLoc.ShowLines = false; this.tLoc.ShowPlusMinus = false; this.tLoc.ShowRootLines = false; this.tLoc.Size = new System.Drawing.Size(128, 192); this.tLoc.Sorted = true; this.tLoc.TabIndex = 2; this.tLoc.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tLoc_AfterSelect); this.tLoc.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.tLoc_AfterLabelEdit); // // cmLoc // this.cmLoc.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miLocRename, this.miLocDelete, this.menuItem2, this.miLocUpdate }); this.cmLoc.Popup += new System.EventHandler(this.cmLoc_Popup); // // miLocRename // this.miLocRename.Index = 0; this.miLocRename.Text = "Rename"; this.miLocRename.Click += new System.EventHandler(this.miLocRename_Click); // // miLocDelete // this.miLocDelete.Index = 1; this.miLocDelete.Text = "Delete"; this.miLocDelete.Click += new System.EventHandler(this.miLocDelete_Click); // // menuItem2 // this.menuItem2.Index = 2; this.menuItem2.Text = "-"; // // miLocUpdate // this.miLocUpdate.Index = 3; this.miLocUpdate.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miUpdateClient, this.miUpdateMap }); this.miLocUpdate.Text = "Update Location"; // // miUpdateClient // this.miUpdateClient.Index = 0; this.miUpdateClient.Text = "From the Client"; this.miUpdateClient.Click += new System.EventHandler(this.miUpdateClient_Click); // // miUpdateMap // this.miUpdateMap.Index = 1; this.miUpdateMap.Text = "From the Map"; this.miUpdateMap.Click += new System.EventHandler(this.miUpdateMap_Click); // // label2 // this.label2.Location = new System.Drawing.Point(136, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(100, 14); this.label2.TabIndex = 3; this.label2.Text = "Locations"; // // label1 // this.label1.Location = new System.Drawing.Point(4, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 16); this.label1.TabIndex = 1; this.label1.Text = "Categories"; // // txCat // this.txCat.Location = new System.Drawing.Point(4, 212); this.txCat.Name = "txCat"; this.txCat.Size = new System.Drawing.Size(132, 20); this.txCat.TabIndex = 4; this.txCat.Text = ""; this.txCat.TextChanged += new System.EventHandler(this.txCat_TextChanged); this.txCat.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txCat_KeyUp); // // txLoc // this.txLoc.Location = new System.Drawing.Point(140, 212); this.txLoc.Name = "txLoc"; this.txLoc.Size = new System.Drawing.Size(128, 20); this.txLoc.TabIndex = 5; this.txLoc.Text = ""; this.txLoc.TextChanged += new System.EventHandler(this.txLoc_TextChanged); this.txLoc.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txLoc_KeyUp); // // bAddCat // this.bAddCat.Enabled = false; this.bAddCat.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bAddCat.Location = new System.Drawing.Point(92, 236); this.bAddCat.Name = "bAddCat"; this.bAddCat.Size = new System.Drawing.Size(44, 23); this.bAddCat.TabIndex = 6; this.bAddCat.Text = "Add"; this.bAddCat.Click += new System.EventHandler(this.bAddCat_Click); // // bAddLoc // this.bAddLoc.Enabled = false; this.bAddLoc.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bAddLoc.Location = new System.Drawing.Point(216, 236); this.bAddLoc.Name = "bAddLoc"; this.bAddLoc.Size = new System.Drawing.Size(52, 23); this.bAddLoc.TabIndex = 7; this.bAddLoc.Text = "Add"; this.bAddLoc.Click += new System.EventHandler(this.bAddLoc_Click); // // m_Map // this.m_Map.Center = new System.Drawing.Point(0, 0); this.m_Map.DisplayErrors = true; this.m_Map.DrawStatics = true; this.m_Map.Location = new System.Drawing.Point(272, 16); this.m_Map.Map = TheBox.MapViewer.Maps.Felucca; this.m_Map.Name = "m_Map"; this.m_Map.Navigation = TheBox.MapViewer.MapNavigation.None; this.m_Map.RotateView = false; this.m_Map.ShowCross = true; this.m_Map.Size = new System.Drawing.Size(192, 192); this.m_Map.TabIndex = 8; this.m_Map.Text = "mapViewer1"; this.m_Map.WheelZoom = false; this.m_Map.XRayView = false; this.m_Map.ZoomLevel = 0; this.m_Map.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_Map_MouseDown); // // label3 // this.label3.Location = new System.Drawing.Point(272, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(60, 16); this.label3.TabIndex = 9; this.label3.Text = "View Map:"; // // lnk0 // this.lnk0.Location = new System.Drawing.Point(332, 0); this.lnk0.Name = "lnk0"; this.lnk0.Size = new System.Drawing.Size(16, 16); this.lnk0.TabIndex = 10; this.lnk0.TabStop = true; this.lnk0.Text = "0"; this.lnk0.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk0_LinkClicked); // // lnk1 // this.lnk1.Location = new System.Drawing.Point(356, 0); this.lnk1.Name = "lnk1"; this.lnk1.Size = new System.Drawing.Size(16, 16); this.lnk1.TabIndex = 11; this.lnk1.TabStop = true; this.lnk1.Text = "1"; this.lnk1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk1_LinkClicked); // // lnk2 // this.lnk2.Location = new System.Drawing.Point(380, 0); this.lnk2.Name = "lnk2"; this.lnk2.Size = new System.Drawing.Size(16, 16); this.lnk2.TabIndex = 12; this.lnk2.TabStop = true; this.lnk2.Text = "2"; this.lnk2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk2_LinkClicked); // // lnk3 // this.lnk3.Location = new System.Drawing.Point(404, 0); this.lnk3.Name = "lnk3"; this.lnk3.Size = new System.Drawing.Size(16, 16); this.lnk3.TabIndex = 13; this.lnk3.TabStop = true; this.lnk3.Text = "3"; this.lnk3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk3_LinkClicked); // // rClient // this.rClient.Checked = true; this.rClient.FlatStyle = System.Windows.Forms.FlatStyle.System; this.rClient.Location = new System.Drawing.Point(8, 20); this.rClient.Name = "rClient"; this.rClient.Size = new System.Drawing.Size(164, 16); this.rClient.TabIndex = 14; this.rClient.TabStop = true; this.rClient.Text = "Get location from the client"; // // rMap // this.rMap.FlatStyle = System.Windows.Forms.FlatStyle.System; this.rMap.Location = new System.Drawing.Point(8, 40); this.rMap.Name = "rMap"; this.rMap.Size = new System.Drawing.Size(164, 16); this.rMap.TabIndex = 15; this.rMap.Text = "Get location from the map"; // // rManually // this.rManually.FlatStyle = System.Windows.Forms.FlatStyle.System; this.rManually.Location = new System.Drawing.Point(8, 60); this.rManually.Name = "rManually"; this.rManually.Size = new System.Drawing.Size(164, 16); this.rManually.TabIndex = 16; this.rManually.Text = "Set location manually"; // // groupBox1 // this.groupBox1.Controls.Add(this.rManually); this.groupBox1.Controls.Add(this.rMap); this.groupBox1.Controls.Add(this.rClient); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox1.Location = new System.Drawing.Point(272, 212); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(192, 84); this.groupBox1.TabIndex = 17; this.groupBox1.TabStop = false; this.groupBox1.Text = "When adding new locations:"; // // grpPoint // this.grpPoint.Controls.Add(this.label6); this.grpPoint.Controls.Add(this.label5); this.grpPoint.Controls.Add(this.nZ); this.grpPoint.Controls.Add(this.nY); this.grpPoint.Controls.Add(this.nX); this.grpPoint.Controls.Add(this.label4); this.grpPoint.FlatStyle = System.Windows.Forms.FlatStyle.System; this.grpPoint.Location = new System.Drawing.Point(4, 260); this.grpPoint.Name = "grpPoint"; this.grpPoint.Size = new System.Drawing.Size(264, 36); this.grpPoint.TabIndex = 18; this.grpPoint.TabStop = false; this.grpPoint.Text = "Point Edit"; // // label6 // this.label6.Location = new System.Drawing.Point(184, 16); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(17, 14); this.label6.TabIndex = 21; this.label6.Text = "Z"; // // label5 // this.label5.Location = new System.Drawing.Point(96, 16); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(17, 14); this.label5.TabIndex = 20; this.label5.Text = "Y"; // // nZ // this.nZ.Location = new System.Drawing.Point(204, 12); this.nZ.Maximum = new System.Decimal(new int[] { 127, 0, 0, 0 }); this.nZ.Minimum = new System.Decimal(new int[] { 127, 0, 0, -2147483648 }); this.nZ.Name = "nZ"; this.nZ.Size = new System.Drawing.Size(52, 20); this.nZ.TabIndex = 2; this.nZ.ValueChanged += new System.EventHandler(this.nZ_ValueChanged); // // nY // this.nY.Location = new System.Drawing.Point(116, 12); this.nY.Maximum = new System.Decimal(new int[] { 5000, 0, 0, 0 }); this.nY.Name = "nY"; this.nY.Size = new System.Drawing.Size(52, 20); this.nY.TabIndex = 1; this.nY.ValueChanged += new System.EventHandler(this.nY_ValueChanged); // // nX // this.nX.Location = new System.Drawing.Point(28, 12); this.nX.Maximum = new System.Decimal(new int[] { 6500, 0, 0, 0 }); this.nX.Name = "nX"; this.nX.Size = new System.Drawing.Size(52, 20); this.nX.TabIndex = 0; this.nX.ValueChanged += new System.EventHandler(this.nX_ValueChanged); // // label4 // this.label4.Location = new System.Drawing.Point(8, 16); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(17, 14); this.label4.TabIndex = 19; this.label4.Text = "X"; // // OpenFile // this.OpenFile.Filter = "Xml Files (*.xml)|*.xml"; // // lnk4 // this.lnk4.Location = new System.Drawing.Point(428, 0); this.lnk4.Name = "lnk4"; this.lnk4.Size = new System.Drawing.Size(16, 16); this.lnk4.TabIndex = 19; this.lnk4.TabStop = true; this.lnk4.Text = "4"; this.lnk4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk4_LinkClicked); // // TravelAgentForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 298); this.Controls.Add(this.lnk4); this.Controls.Add(this.grpPoint); this.Controls.Add(this.groupBox1); this.Controls.Add(this.lnk3); this.Controls.Add(this.lnk2); this.Controls.Add(this.lnk1); this.Controls.Add(this.lnk0); this.Controls.Add(this.label3); this.Controls.Add(this.m_Map); this.Controls.Add(this.bAddLoc); this.Controls.Add(this.bAddCat); this.Controls.Add(this.txLoc); this.Controls.Add(this.txCat); this.Controls.Add(this.label2); this.Controls.Add(this.tLoc); this.Controls.Add(this.label1); this.Controls.Add(this.tCat); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Menu = this.mMain; this.Name = "TravelAgentForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Travel Agent for Pandora\'s Box"; this.Closing += new System.ComponentModel.CancelEventHandler(this.TravelAgentForm_Closing); this.groupBox1.ResumeLayout(false); this.grpPoint.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.nZ)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nY)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nX)).EndInit(); this.ResumeLayout(false); }
public NotifyIconHandler(System.Drawing.Icon standardIcon, System.Drawing.Icon workingIcon) { StandardIcon = standardIcon; WorkingIcon = workingIcon; NotifyIcon = new System.Windows.Forms.NotifyIcon { BalloonTipText = "GitList", Icon = standardIcon, Visible = true}; var menu = new System.Windows.Forms.ContextMenu(); menu.MenuItems.Add("Show", delegate(object sender, EventArgs e) { NotifyDoubleClick(sender, null); }); menu.MenuItems.Add("Exit", delegate(object sender, EventArgs e) { Application.Current.Shutdown(); }); NotifyIcon.ContextMenu = menu; NotifyIcon.MouseDoubleClick += (sender, e) => NotifyDoubleClick(sender, e); NotifyIcon.BalloonTipClicked += (sender, e) => BalloonTipClick(sender, e); ShowAlert("GitList is running...", TimeSpan.FromSeconds(30)); AutoShowInSystemTray(); }