当前位置: 首页>>代码示例>>C#>>正文


C# FormClosingEventHandler类代码示例

本文整理汇总了C#中FormClosingEventHandler的典型用法代码示例。如果您正苦于以下问题:C# FormClosingEventHandler类的具体用法?C# FormClosingEventHandler怎么用?C# FormClosingEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FormClosingEventHandler类属于命名空间,在下文中一共展示了FormClosingEventHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GBTradeLink

        public GBTradeLink()
        {
            TrackEnabled = Util.TrackUsage();
            Program = PROGRAM;

            InitializeComponent();

            TradeLink.API.TLServer tls;
            if (Properties.Settings.Default.TLClientAddress == string.Empty)
                tls = new TradeLink.Common.TLServer_WM();
            else
                tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort);
            try
            {
            GB = new GrayBox(tls,this.lstStatusList,this.bt_Connect);
            }
            catch (Exception ex)
            {
                const string URL = @"http://code.google.com/p/tradelink/wiki/HoldBrosGrayBox";
                debug("problem connecting to graybox...");
                debug("please check guide at: " + URL);
                System.Diagnostics.Process.Start(URL);
                debug(ex.Message + ex.StackTrace);
            }

            UpdateLoginDetails();
            FormClosing += new FormClosingEventHandler(GBTradeLink_FormClosing);

            GB.Start();

            this.txtPasword.Focus() ;
        }
开发者ID:sopnic,项目名称:larytet-master,代码行数:32,代码来源:GBTradeLink.cs

示例2: MainFormGR

        public MainFormGR(PXCMSession session, MainScreen mainScreen)
        {
            InitializeComponent();
            this.mainScreen = mainScreen;
            this.session = session;
            PopulateDeviceMenu();
            PopulateModuleMenu();
            FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
            Panel2.Paint += new PaintEventHandler(Panel_Paint);

            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval = 2000;
            timer.Start();

            pictures = new Hashtable();
            pictures[PXCMGesture.Gesture.Label.LABEL_HAND_CIRCLE] = Properties.Resources.circle;
            pictures[PXCMGesture.Gesture.Label.LABEL_HAND_WAVE] = Properties.Resources.wave;
            pictures[PXCMGesture.Gesture.Label.LABEL_NAV_SWIPE_DOWN] = Properties.Resources.swipe_down;
            pictures[PXCMGesture.Gesture.Label.LABEL_NAV_SWIPE_LEFT] = Properties.Resources.swipe_left;
            pictures[PXCMGesture.Gesture.Label.LABEL_NAV_SWIPE_RIGHT] = Properties.Resources.swipe_right;
            pictures[PXCMGesture.Gesture.Label.LABEL_NAV_SWIPE_UP] = Properties.Resources.swipe_up;
            pictures[PXCMGesture.Gesture.Label.LABEL_POSE_BIG5] = Properties.Resources.big5;
            pictures[PXCMGesture.Gesture.Label.LABEL_POSE_PEACE] = Properties.Resources.peace;
            pictures[PXCMGesture.Gesture.Label.LABEL_POSE_THUMB_DOWN] = Properties.Resources.thumb_down;
            pictures[PXCMGesture.Gesture.Label.LABEL_POSE_THUMB_UP] = Properties.Resources.thumb_up;
        }
开发者ID:rahulroy9202,项目名称:jarvis,代码行数:26,代码来源:MainFormGR.cs

示例3: DASServerMain

        public DASServerMain()
        {
            TrackEnabled = Util.TrackUsage();
            Program = PROGRAM;
           
            InitializeComponent();
            FormClosing += new FormClosingEventHandler(DASServerMain_FormClosing);
            if (Properties.Settings.Default.TLClientAddress == string.Empty)
                tl = new TradeLink.Common.TLServer_WM();
            else
                tl = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort);


            // bindings
            tl.newProviderName = Providers.DAS;
            tl.newFeatureRequest += new MessageArrayDelegate(tl_newFeatureRequest);
            tl.newSendOrderRequest += new OrderDelegateStatus(tl_gotSrvFillRequest);
            tl.newAcctRequest += new StringDelegate(tl_newAcctRequest);
            tl.newOrderCancelRequest += new LongDelegate(tl_newOrderCancelRequest);
            tl.newUnknownRequest += new UnknownMessageDelegate(tl_newUnknownRequest);
            tl.newRegisterSymbols +=new SymbolRegisterDel(tl_newRegisterSymbols);
            tl.newPosList += new PositionArrayDelegate(tl_newPosList);


        }
开发者ID:antonywu,项目名称:tradelink,代码行数:25,代码来源:DASServerMain.cs

示例4: NaoDebugger

 public NaoDebugger()
 {
     InitializeComponent();
     tabControl.SelectedIndex = 2;
     Load += new EventHandler(NaoDebugger_Load);
     FormClosing += new FormClosingEventHandler(NaoDebugger_FormClosing);
 }
开发者ID:boschbc,项目名称:NaoRobot,代码行数:7,代码来源:NaoDebugger.cs

示例5: MainForm

        public MainForm(PXCMSession session)
        {
            InitializeComponent();

            this.session = session;
            PopulateDeviceMenu();
            FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
            pictureBox1.Paint += new PaintEventHandler(pictureBitmap_Paint);

            this.comboBoxQualityEstimator.Items.AddRange(
                new object[] {"ColorClusters"
                });

            this.comboBoxColoringMethod.Items.AddRange(
                new object[] {"None"
                        , "ByScore"
                        , "ByClusterMeanColor"
                        , "ByClusterMaxColor"
                        , "ByClusterDepth"
                });

            this.cameraSettingsTrackBars = new TrackBar[]
            {
                this.trackBarCamDepthCofidenceThreshold,
                this.trackBarCamIvcamAccuracy,
                this.trackBarCamIVCAMFilterOption,
                this.trackBarCamIVCAMLaserPower,
                this.trackBarCamIVCAMMotionRangeTradeOff
            };

            this.resetAllParams();
        }
开发者ID:badrobot25,项目名称:RealSenseObjDetector,代码行数:32,代码来源:MainForm.cs

示例6: TextSplitHotkeys

        public TextSplitHotkeys(TextSplitShow TSS)
        {
            InitializeComponent();

            bCancel.Click += new EventHandler(bCancel_Click);
            bOK.Click += new EventHandler(bOK_Click);
            FormClosing += new FormClosingEventHandler(TSH_Closing);

            this.TSS = TSS;

            textboxNames = new string[] { "tNext1", "tNext2", "tPrev1", "tPrev2", "tFirst1", "tFirst2", "tLast1", "tLast2" };
            tempHotkeys = new ArrayList();
            for (int i = 0; i < Properties.Settings.Default.Hotkeys.Count; i++) {
                tempHotkeys.Add((Keys)Properties.Settings.Default.Hotkeys[i]);
            }

            foreach (var c in Controls) {
                if (c is TextBox) {
                    for (int i = 0; i < textboxNames.Length; i++) {
                        if (((TextBox)c).Name == textboxNames[i]) {
                            ((TextBox)c).Text = ((Keys)tempHotkeys[i]).ToString();
                        }
                    }
                    ((TextBox)c).GotFocus += new EventHandler(tKeyPrompt_Focus);
                    ((TextBox)c).LostFocus += new EventHandler(tKeyPrompt_LostFocus);
                    ((TextBox)c).KeyDown += new KeyEventHandler(tKeyPrompt_Key);
                }
            }
        }
开发者ID:mwaltman,项目名称:TextSplit,代码行数:29,代码来源:TSHotkeys.cs

示例7: kadinamain

        public kadinamain()
        {
            TrackEnabled = Util.TrackUsage();
            
            Program = PROGRAM;
            _dps = "N" + _dp;
            SimBroker.UseBidAskFills = Properties.Settings.Default.UseBidAskFills;
            InitializeComponent();
            Text += " " + Util.TLVersion();
            initgrids();
            debugControl1.NewCreateTicketEvent += new DebugDelegate(debugControl1_NewCreateTicketEvent);
            sizetabs();
            restorerecentfiles();
            restorerecentlibs();
            restoreskins();
            FormClosing += new FormClosingEventHandler(kadinamain_FormClosing);
            Resize += new EventHandler(kadinamain_Resize);
            bw.DoWork += new DoWorkEventHandler(Play);
            bw.WorkerReportsProgress = false;
            bw.WorkerSupportsCancellation = true;
            bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(PlayComplete);

            bw2.DoWork += new DoWorkEventHandler(bw2_DoWork);
            bw2.RunWorkerAsync();
            debug(Util.TLSIdentity());
            debug(RunTracker.CountNewGetPrettyRuns(PROGRAM, Util.PROGRAM));
            // grid errors
            dg.DataError += new DataGridViewDataErrorEventHandler(dg_DataError);
            ig.DataError += new DataGridViewDataErrorEventHandler(ig_DataError);
            fg.DataError += new DataGridViewDataErrorEventHandler(fg_DataError);
            og.DataError += new DataGridViewDataErrorEventHandler(og_DataError);
            pg.DataError += new DataGridViewDataErrorEventHandler(pg_DataError);
        }
开发者ID:wang-shun,项目名称:tradelink,代码行数:33,代码来源:KadinaMain.cs

示例8: frmSearch

 public frmSearch(SearchPdfHandler callback)
 {
     InitializeComponent();
     _callback = callback;
     Load += new EventHandler(frmSearch_Load);
     FormClosing += new FormClosingEventHandler(frmSearch_FormClosing);
 }
开发者ID:jazzlife,项目名称:pdfviewer-win32,代码行数:7,代码来源:frmSearch.cs

示例9: MainForm

        public MainForm()
        {
            InitializeComponent();

            // 01. Initialize readonly members

            var config_dir = Path.Combine(
                Environment.GetFolderPath(
                Environment.SpecialFolder.ApplicationData),
                Application.ProductName
            );
            if (!Directory.Exists(config_dir)) Directory.CreateDirectory(config_dir);

            mSoundPackListConfigPath = Path.Combine(config_dir, "SoundPackList.config");
            mSoundEngineConfigPath = Path.Combine(config_dir, "SoundEngine.config");
            mKeysDisplayForm = new KeysDisplayForm();

            // 02. Parepare events for MainForm

            Load += new EventHandler(MainForm_Load);
            FormClosed += new FormClosedEventHandler(MainForm_FormClosed);
            FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
            KeyDisplayEnabledChanged += new EventHandler(MainForm_KeyDisplayEnabledChanged);

            AppDomain.CurrentDomain.FirstChanceException += (_sender, _e) =>
            {
                ShowBaloon("初回例外。{0}:{1}\r\n" +
                    "正しく初期化されなかった可能性があります",
                    _e.Exception.Source,
                    _e.Exception.Message);
            };
        }
开发者ID:daruyanagi,项目名称:SoundKeyboard2012.old,代码行数:32,代码来源:MainForm.cs

示例10: BigTradeUI

        public BigTradeUI(BigTrades engine)
        {
            // save our response engine
            _engine = engine;
            // setup grid
            InitializeComponent();
            // here our the columns we'll save for 10ten trades
            _dt.Columns.Add("Time", typeof(int));
            _dt.Columns.Add("Sym");
            _dt.Columns.Add("Price", typeof(decimal));
            _dt.Columns.Add("TradeSize", typeof(int));
            _dt.Columns.Add("Exch");
            _dg.MultiSelect = false;
            // we'll bid the above columns to our grid
            _bs.DataSource = _dt;
            _dg.DataSource = _bs;
            // setup right click
            ContextMenu = new ContextMenu();
            ContextMenu.MenuItems.Add("Buy 100 Market", new EventHandler(butbuy_Click));
            ContextMenu.MenuItems.Add("Sell 100 Market", new EventHandler(butsell_Click));

            // then the grid to the user
            Show();
            // make sure to invalidate and unsubscribe on form closing
            // otherwise, it will continue to process in background
            FormClosing += new FormClosingEventHandler(BigTradeUI_FormClosing);
        }
开发者ID:antonywu,项目名称:tradelink,代码行数:27,代码来源:BigTradeUI.cs

示例11: Gauntlet

        public Gauntlet()
        {
            InitializeComponent();
            debug(Util.TLSIdentity());
            args.GotDebug += new DebugDelegate(args_GotDebug);
            args.ParseArgs(Environment.GetCommandLineArgs());
            FormClosing += new FormClosingEventHandler(Gauntlet_FormClosing);

            bw.WorkerSupportsCancellation = true;
            bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
            bw.DoWork += new DoWorkEventHandler(bw_DoWork);

            if (args.isUnattended)
            {
                background = true;
                ordersincsv.Checked = true;
                //ShowWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle, SW_MINIMIZE);
                bindresponseevents();
                queuebut_Click(null, null);
            }
            else
            {
                tickFileFilterControl1.SetSymbols(args.Folder);
                UpdateResponses(Util.GetResponseList(args.DllName));
                debug(Util.TLSIdentity());
            }
            
        }
开发者ID:antonywu,项目名称:tradelink,代码行数:28,代码来源:Gauntlet.cs

示例12: Quote

        public Quote()
        {
            InitializeComponent();
            if ((Location.X == 0) && (Location.Y == 0))
            {
                Quotopia.Properties.Settings.Default.location = new Point(300, 300);
                Quotopia.Properties.Settings.Default.Save();
                Refresh();
            }
            
            Size = Quotopia.Properties.Settings.Default.wsize;
            debug(Util.TLSIdentity());
            QuoteGridSetup();
            statfade.Interval = 3000;
            statfade.Tick += new EventHandler(statfade_Tick);
            statfade.Start();
            ar.GotTick += new TickDelegate(ar_GotTick);
            tl.gotTick += new TickDelegate(tl_gotTick);
            tl.gotFill += new FillDelegate(tl_gotFill);
            tl.gotOrder += new OrderDelegate(tl_gotOrder);
            tl.gotOrderCancel += new UIntDelegate(tl_gotOrderCancel);
            tl.gotPosition += new PositionDelegate(tl_gotPosition);
            tl.gotAccounts += new DebugDelegate(tl_gotAccounts);
            ordergrid.ContextMenuStrip = new ContextMenuStrip();
            ordergrid.ContextMenuStrip.Items.Add("Cancel", null, new EventHandler(cancelorder));
            FormClosing += new FormClosingEventHandler(Quote_FormClosing);
            Resize += new EventHandler(Quote_Resize);
            if (tl.LinkType!= TLTypes.NONE)
                tl.RequestAccounts();
            else
                
            Util.ExistsNewVersions(tl);

        }
开发者ID:antonywu,项目名称:tradelink,代码行数:34,代码来源:Quote.cs

示例13: connectionType

 public connectionType()
 {
     InitializeComponent();
     LocalButton.Click += new EventHandler(LocalButton_click);
     ServerButton.Click += new EventHandler(ServerButton_click);
     FormClosing += new FormClosingEventHandler(form_closing);
 }
开发者ID:Aronhalt,项目名称:Invoice,代码行数:7,代码来源:connectionType.cs

示例14: RediMain

        public RediMain()
        {
            TradeLink.API.TLServer tls;
            if (Properties.Settings.Default.TLClientAddress == string.Empty)
                tls = new TradeLink.Common.TLServer_WM();
            else
                tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort);

            tl = new ServerRedi(tls);
            if (Properties.Settings.Default.AccountsAvailable != string.Empty)
            {
                tl.Accounts = Properties.Settings.Default.AccountsAvailable.Split(',');
                debug("Advertising static accounts: " + tl.Accounts);
            }
            TrackEnabled = Util.TrackUsage();
            Program = PROGRAM;
            InitializeComponent();
            tl.TickDebugVerbose = Properties.Settings.Default.TickDebuggingVerbose;
            tl.isAddingFuturesEXSpace = Properties.Settings.Default.isAddingFuturesEXSpace;
            tl.FuturesEXchanges = new List<string>(Properties.Settings.Default.FuturesEXchanges.Split(','));
            tl.isPaperTradeEnabled = Properties.Settings.Default.PaperTrade;
            tl.isPaperTradeUsingBidAsk = Properties.Settings.Default.PaperTradeBidAsk;
            tl.VerboseDebugging = Properties.Settings.Default.VerboseDebugging;
            tl.SendDebug += new TradeLink.API.DebugDelegate(tl_SendDebug);
            tl.AutoConvertToSmart = Properties.Settings.Default.AutoConvertToSmartForAvailable;

            FormClosing += new FormClosingEventHandler(RediMain_FormClosing);
        }
开发者ID:antonywu,项目名称:tradelink,代码行数:28,代码来源:RediMain.cs

示例15: Gauntlet

        public Gauntlet()
        {
            TrackEnabled = Util.TrackUsage();
            Program = PROGRAM;
            InitializeComponent();
            debug(Util.TLSIdentity());
            args.GotDebug += new DebugDelegate(args_GotDebug);
            args.ParseArgs(Environment.GetCommandLineArgs());
            FormClosing += new FormClosingEventHandler(Gauntlet_FormClosing);
            debug(RunTracker.CountNewGetPrettyRuns(PROGRAM, Util.PROGRAM));
            bw.WorkerSupportsCancellation = true;
            bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
            bw.DoWork += new DoWorkEventHandler(bw_DoWork);
            getsymwork.WorkerSupportsCancellation = true;
            getsymwork.DoWork += new DoWorkEventHandler(getsymwork_DoWork);
            getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted);
            getsymwork.RunWorkerAsync();
            getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted);

            if (args.isUnattended)
            {
                ordersincsv.Checked = true;
                //ShowWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle, SW_MINIMIZE);
                bindresponseevents();
                queuebut_Click(null, null);
            }
            else
            {
                status("wait while tickdata is loaded...");
                UpdateResponses(Util.GetResponseList(args.DllName));
            }

        }
开发者ID:antonywu,项目名称:tradelink,代码行数:33,代码来源:Gauntlet.cs


注:本文中的FormClosingEventHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。