Exemplo n.º 1
0
        void QE31CU_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            if (_ischangedList)
            {
                string path = @"resources\\QE31_QE31CU.xml";
                string str  = @"<?xml version=""1.0""?><CVALUE>";
                for (int i = 0; i < correctDataList.Rows.Count - 1; i++)
                {
                    //lưu vào file xml
                    DataRow dr = correctDataList.Rows[i];
                    str += @"<COLUMN><LOT_NO>" + dr["LOT_NO"].ToString()
                           + "</LOT_NO><L>" + dr["L"].ToString()
                           + "</L><a>" + dr["a"].ToString()
                           + "</a><b>" + dr["b"].ToString()
                           + "</b></COLUMN>";
                }
                str += "</CVALUE>";
                Console.WriteLine("Create new QE31_QE31CU.xml:");
                Console.WriteLine(str);
                XDocument xdoc = XDocument.Load(path);
                xdoc = XDocument.Parse(str);
                xdoc.Save(path);
            }

            //}
            return;
        }
Exemplo n.º 2
0
 private void frmMain3_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (frmStart != null)
     {
         frmStart.Visible = true;
     }
 }
 private void FormWaiting_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (timer.Enabled)
     {
         timer.Stop();
     }
 }
Exemplo n.º 4
0
 private void frmPriceSet_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
 {
     //UPGRADE_WARNING: Screen property Screen.MousePointer has a new behavior. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6BA9B8D2-2A32-4B6E-8D36-44949974A5B4"'
     System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
     txtholdvalue.Text        = _txtFields_0.Text;
     modApplication.Holdvalue = txtholdvalue.Text;
 }
Exemplo n.º 5
0
 private void frmScript_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (!btnOKPressed)
     {
         Script = tmpScript;
     }
 }
Exemplo n.º 6
0
 private void frmMain_FormClosed(object sender, FormClosedEventArgs e)
 {
     UdpClient uc = new UdpClient();
     string msg = "LOGOUT";
     byte[] bmsg = Encoding.Default.GetBytes(msg);
     uc.Send(bmsg, bmsg.Length, new IPEndPoint(IPAddress.Parse("255.255.255.255"), 9527));
 }
Exemplo n.º 7
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            if (SuperPuTTY.MainForm == null) return;

            // only 1 panel
            if (SuperPuTTY.MainForm.CurrentPanel == this && this.NextPanel == this && this.PreviousPanel == this)
            {
                SuperPuTTY.MainForm.CurrentPanel = null;
                return;
            }

            // Remove ourselves from our position in chain and set last active tab as current
            if (this.PreviousPanel != null)
            {
                this.PreviousPanel.NextPanel = this.NextPanel;
            }
            if (this.NextPanel != null)
            {
                this.NextPanel.PreviousPanel = this.PreviousPanel;
            }
            SuperPuTTY.MainForm.CurrentPanel = this.PreviousPanel;

            // manipulate tabs
            if (this.DockHandler.Pane != null)
            {
                int idx = this.DockHandler.Pane.Contents.IndexOf(this);
                if (idx > 0)
                {
                    IDockContent contentToActivate = this.DockHandler.Pane.Contents[idx - 1];
                    contentToActivate.DockHandler.Activate();
                }
            }
        }
 private void SingleplayerMode_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.RestartAfterClose)
     {
         this.ApplicationController.RestartAfterSingleplayerMode();
     }
 }
Exemplo n.º 9
0
 /// <summary>
 /// Закрыто окно удалённого пульта. Удаляем его из списка открытых окон.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void currentForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     lock (this.visibleForms)
     {
         this.visibleForms.Remove((Vkt5RemoteConsoleForm)sender);
     }
 }
Exemplo n.º 10
0
 private void Report_FormClosed(object sender, FormClosedEventArgs e)
 {
     //窗体关闭时将内容保存至父窗体
    MainForm.S.rtb.Rtf = richTextBox1.Rtf;
    MainForm.S.ReportIsOn = 0;
     //将开关关闭
 }
Exemplo n.º 11
0
 private void NewBinding_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (MidiMap != null)
     {
         MidiMap.UnhandledMessageReceived -= Owner_MessageReceived;
     }
 }
Exemplo n.º 12
0
 static void m_form_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     lock (typeof(UIService))
     {
         m_form = null;
     }
 }
 private void FacebookAuthentication_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (DialogResult != DialogResult.OK)
     {
         DialogResult = DialogResult.Cancel;
     }
 }
Exemplo n.º 14
0
 private void fmCard_FormClosed(object sender, FormClosedEventArgs e)
 {
     CommiManager.GlobalManager.ClearCommand();
     ThreadManager.AbortAll();
     CommiManager.GlobalManager.ResetClient();
     Application.Exit();
 }
Exemplo n.º 15
0
        private void frmPersonFPVerify_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            //rs.Close
            //cnx.Close
            //UPGRADE_NOTE: Object op may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            op = null;
            //UPGRADE_NOTE: Object vp may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            vp = null;

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Exemplo n.º 16
0
 private void PreferencesDialog_FormClosed(object sender, FormClosedEventArgs e)
 {
     Console.WriteLine("PreferencesDialog.FormClosing");
     if (e.CloseReason == CloseReason.UserClosing && this.DialogResult == DialogResult.OK)
     {
         Console.WriteLine("Should Save: ");
         Properties.Settings.Default.Upgrade();
         Properties.Settings.Default.endNode = highNodeSpinner.Value;
         Properties.Settings.Default.autostart = autostartCheckBox.Checked;
         Properties.Settings.Default.executable = executableField.Text;
         Properties.Settings.Default.homeDirectory = homeField.Text;
         Properties.Settings.Default.localNode = localNodeSpinner.Value;
         Properties.Settings.Default.parameters = parametersField.Text;
         Properties.Settings.Default.parameters2 = parametersField2.Text;
         Properties.Settings.Default.port = portSpinner.Value;
         Properties.Settings.Default.portSSH = sshSpinner.Value;
         Properties.Settings.Default.startNode = lowNodeSpinner.Value;
         Properties.Settings.Default.useBalloons = balloonsCheckBox.Checked;
         Properties.Settings.Default.useBegindayEvent = beginDayCheckBox.Checked;
         Properties.Settings.Default.useEvents = runEventsCheckbox.Checked;
         Properties.Settings.Default.launchMinimized = launchMinimizedCheckBox.Checked;
         Properties.Settings.Default.launchLocalNodeAtStartup = launchLocalNodeCheckBox.Checked;
         Properties.Settings.Default.launchNetworkAtStartup = launchNetworkCheckBox.Checked;
         Properties.Settings.Default.checkUpdates = checkUpdates.Text;
         Properties.Settings.Default.Save();
     }
 }
Exemplo n.º 17
0
 private void Frm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     if (!Flag_Login)
     {
         this.Close();
         //Cancel exist
         if (!exist)
         {
             Form_Login frm = new Form_Login();
             Flag_Login           = false;
             frm.txtUserName.Text = user.Username;
             frm.txtPassword.Focus();
             frm.FormClosed += Frm_FormClosed;
             LoadControlForPhanQuyen();
             frm.ShowDialog();
         }
         else
         {
             System.Windows.Forms.Application.Exit();
         }
     }
     else
     {
         this.Show();
     }
 }
Exemplo n.º 18
0
 private void MainForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     _options.Save();
     SaveGridToDatabase();
     _timer.Dispose();
     _browser.Dispose();
 }
        private void DCMainForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            if (ServerDictionaries.RealtimeIds.Count > 0)
            {
                Program.MainForm.Visible = false;

                string eventKey = Core.CreateUniqueKey();

                EventHandler.EventAppsSubscribersNum.Add("DCClosed", Listener.SubscribersCount);

                var eventInfo = new FakeCQG.Internal.Models.EventInfo(eventKey, "DCClosed", numOfSubscribers: Listener.SubscribersCount);

                EventHandler.FireEvent(eventInfo);

                QueryHandler.ReadQueries(false);
                if (QueryHandler.QueryList.Count > 0)
                {
                    QueryHandler.ProcessEntireQueryList();
                }

                Environment.Exit(0);
            }
            else
            {
                CqgDataManagement.shutDownCQGConn();
            }
        }
Exemplo n.º 20
0
 private void Form2_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (f.gamego == false)
     {
         Application.Exit();
     }
 }
Exemplo n.º 21
0
 private void frmStockTakeLIQ_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
 {
     if (rsLIQ.State)
     {
         rsLIQ.Close();
     }
 }
Exemplo n.º 22
0
 private void HogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (unsubscribeCheckBox.Checked)
     {
         _mainForm.PigOut -= OnPigOut;
     }
 }
Exemplo n.º 23
0
 private void DBGForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.tsbtn_stopLog.Text != "Start log")
     {
         this.DBG.LogEvent -= DBG_LogEvent;
     }
 }
Exemplo n.º 24
0
        private void OnFormClosed(object sender, FormClosedEventArgs e)
        {
            _btnStart.Enabled = true;
            _btnStop.Enabled = false;

            ServerSystem.ServerMain.Instance.StopServer();
        }
Exemplo n.º 25
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            if (IsAutoSerialize)
                this.Serialize();

            base.OnFormClosed(e);
        }
Exemplo n.º 26
0
 private void frmMapSelection_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (frmStart != null)
     {
         frmStart.Close();
     }
 }
Exemplo n.º 27
0
 private void ContextLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (ctx != null) {
         ctx.onSentence -= onContextSentence;
         forms.Remove(ctx.id);
     }
 }
Exemplo n.º 28
0
		private void FormSync_FormClosed(object sender, FormClosedEventArgs e)
		{
			if (DialogResult != DialogResult.OK) return;
			Library.SyncSettings.MinimizeOnSync = ckMinimizeOnSync.Checked;
			Library.SyncSettings.CloseAfterSync = ckCloseAfterSync.Checked;
			Library.SyncSettings.ShowProgress = ckShowSyncStatus.Checked;
		}
Exemplo n.º 29
0
 void Form1_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     StopAllThreads();
     scoreListView1.StopAllThreads();
     userConfigView1.StopAllThreads();
     scoreDistribution2.StopAllThreads();
 }
Exemplo n.º 30
0
        //When the application is terminating, close the Phidget.
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            lcd.rows[0].DisplayString = "";
            lcd.rows[1].DisplayString = "";

            lcd.Attach -= new AttachEventHandler(lcd_Attach);
            lcd.Detach -= new DetachEventHandler(lcd_Detach);
            lcd.Error -= new ErrorEventHandler(lcd_Error);

            ifk.Attach -= new AttachEventHandler(ifk_Attach);
            ifk.Detach -= new DetachEventHandler(ifk_Detach);
            ifk.Error -= new ErrorEventHandler(ifk_Error);

            ifk.InputChange -= new InputChangeEventHandler(ifk_InputChange);
            ifk.OutputChange -= new OutputChangeEventHandler(ifk_OutputChange);
            ifk.SensorChange -= new SensorChangeEventHandler(ifk_SensorChange);

            //run any events in the message queue - otherwise close will hang if there are any outstanding events
            Application.DoEvents();

            lcd.close();
            ifk.close();

            lcd = null;
            ifk = null;
        }
Exemplo n.º 31
0
 private void LoginForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (Session.USER.Count == 0)
     {
         Application.Exit();
     }
 }
Exemplo n.º 32
0
 private void frmDenominatorSetup_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
 {
     //
     //
     //
     My.MyProject.Forms.frmIndicatorReportSetup.refreshPage();
 }
Exemplo n.º 33
0
        void DataEntry_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            Main dd = new Main();

            dd.ChangeA(1);
            dd.ShowMain();
        }
Exemplo n.º 34
0
         private void loginform_FormClosed(object sender, FormClosedEventArgs e)
        {
            // this part will contain anything require before we close the application

            // close the application
            Application.Exit();
        }
Exemplo n.º 35
0
 private void VideoForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (videoPlayer.IsRunning)
     {
         StopVideo();
     }
 }
Exemplo n.º 36
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if ((Session.SERVER.Count != 0) && (Session.USER.Count != 0))
     {
         Application.Exit();
     }
 }
Exemplo n.º 37
0
 void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     string ten = (string)((Form)sender).Tag;
     DateTime from = dpkfrom.Value;
     DateTime to = dkpTo.Value;
     ShowcongnoKH(ten,from, to);
 }
Exemplo n.º 38
0
 private void FormNetworkControl_FormClosed(object sender, FormClosedEventArgs e)
 {
     lock (SyncRoot)
     {
         _Instance = null;
     }
 }
Exemplo n.º 39
0
 private void content_Closed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     if (_codeEditors.ContainsValue(sender as CodeEditorContent))
     {
         _codeEditors.Remove((sender as LiteDocumentContent).AssociatedFile);
     }
 }
 private void GestionProveedores_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (Application.OpenForms["GestionProveedoresBuscar"] != null)
     {
         Application.OpenForms["GestionProveedoresBuscar"].Activate();
     }
 }
Exemplo n.º 41
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (Con.State == ConnectionState.Open)
     {
         Con.Close();
     }
 }
 private void NewQuestionnaireWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.sender != null)
     {
         this.sender.Show();
     }
 }
Exemplo n.º 43
0
 private void Form1_FormClosed( object sender, FormClosedEventArgs e)
 {
     if (capWebCam != null)
     {
         capWebCam.Dispose();
     }
 }
Exemplo n.º 44
0
 public void TabContent_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     // if the form is closed closes the tabpage
     if (CloseEvent != null)
     {
         CloseEvent(this, new EventArgs());
     }
 }
Exemplo n.º 45
0
 public void formclose(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     this.ButtonLiveImage.Enabled    = true;
     this.FormCogDisplay.FormClosed -= new System.Windows.Forms.FormClosedEventHandler(this.formclose);
     this.cogDisplayPanel.StopCogDisplayPanel();
     this.FormCogDisplay  = null;
     this.cogDisplayPanel = null;
 }
Exemplo n.º 46
0
 private void frmLogin_FormClosed(System.Object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     // Si el usuario no ha iniciado session, terminamos la aplicación.
     if (ModUsuario.SessionIdUsuario == 0)
     {
         Close();
     }
 }
Exemplo n.º 47
0
        private void Form1_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            Hide();
            Form2 f = new Form2();

            f.ShowDialog();
            this.Close();
        }
Exemplo n.º 48
0
        private void DeviceListForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            deviceListForm.Dispose();
            deviceListForm = null;

            _controller.Stop();
            Application.Exit();
        }
Exemplo n.º 49
0
 private void TextEditor_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     this.scintilla1.ClearRegisteredImages();
     mInstances.Remove(this);
     if (!string.IsNullOrEmpty(this.FileName))
     {
         PortHub.OnCloseDocument.Value = this.FileName;
     }
 }
Exemplo n.º 50
0
        void frm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                Excel._Worksheet a = (Excel._Worksheet)Application.ActiveWorkbook.ActiveSheet;
                if (frm.Status == "C")
                {
                    try
                    {
                        a.get_Range(frm.Pos, type).ClearComments();
                    }
                    catch { }
                    a.get_Range(frm.Pos, type).AddComment(frm.TTFormular);
                }
                else if (frm.Status == "L")
                {
                    try
                    {
                        //DataTable dt = frm.DataReturn;

                        System.Data.DataTable dt = frm.DataReturn;
                        //Microsoft.Office.Interop.Excel.DataTable dtEx;
                        //Excel.Workbook _wbook = (Excel.Workbook)Application.ActiveWorkbook;
                        //_wbook.Sheets.Add(Type.Missing, Type.Missing, 1, Type.Missing);
                        Excel.Worksheet _wsheet = (Excel.Worksheet)Application.ActiveWorkbook.ActiveSheet;
                        Microsoft.Office.Interop.Excel.Range currentRange = _wsheet.get_Range(_address, Type.Missing);

                        for (int i = 0; i < dt.Columns.Count; i++)
                        {
                            Excel.Range _range = (Excel.Range)_wsheet.Cells[currentRange.Row, i + currentRange.Column];
                            _range.Font.Bold = true;
                            _range.set_Value(Type.Missing, dt.Columns[i].ColumnName);
                        }
                        for (int i = 0; i < dt.Rows.Count; i++)
                        {
                            for (int j = 0; j < dt.Columns.Count; j++)
                            {
                                Excel.Range _range = (Excel.Range)_wsheet.Cells[i + currentRange.Row + 1, j + currentRange.Column];
                                _range.set_Value(Type.Missing, dt.Rows[i][j]);
                            }
                        }
                        //string add = _wsheet.Name + "!R1C1:R" + (dt.Rows.Count + 1) + "C" + dt.Columns.Count;

                        //_wbook.Sheets.Add(Type.Missing, Type.Missing, 1, Type.Missing);
                        //Excel.Worksheet _wpivotsheet = (Excel.Worksheet)Application.ActiveWorkbook.ActiveSheet;
                        //string des = _wpivotsheet.Name + "!R3C1";
                        //_wbook.PivotCaches().Add(Microsoft.Office.Interop.Excel.XlPivotTableSourceType.xlDatabase, add).CreatePivotTable(des, "PivotTable1", Type.Missing, Microsoft.Office.Interop.Excel.XlPivotTableVersionList.xlPivotTableVersion10);
                    }
                    catch (Exception ex) { BUS.CommonControl.AddLog("ErroLog", __documentDirectory + "\\Log", "[Addin] [" + DateTime.Now.ToString() + "] : " + ex.Message + "\n\t" + ex.Source + "\n\t" + ex.StackTrace); }
                    //a.get_Range(frm.Pos, type).AddComment(frm.TTFormular);
                }
                else
                {
                    a.get_Range(frm.Pos, type).set_Value(type, frm.TTFormular);
                }
            }
        }
Exemplo n.º 51
0
        public void LogOut(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            Program.AuthenticatedUser = null;
            usernameEmailTextBox.Text = "Username\\Email";

            passwordTextBox.Text = "Password";
            passwordTextBox.UseSystemPasswordChar = false;
            this.Show();
        }
Exemplo n.º 52
0
 private void SelectionForm_Closed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     if (!Deleted &&
         InsertedSelections.Count == 0)
     {
         selection.HallId    = deep_copy.HallId;
         selection.SubjectId = deep_copy.SubjectId;
     }
 }
Exemplo n.º 53
0
 public virtual void BaseDiagram_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     if (_thread != null && _thread.ThreadState != ThreadState.Stopped)
     {
         _timer.Change(Timeout.Infinite, 100);
         _thread.Abort();
         _thread = null;
     }
 }
 void _form_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     //  put any code to clean up the communicator resources (if needed) here
     //  --------------------------------------------------------------------
     _communicator = null;
     //  Then exit
     //  ---------
     Application.Exit();
 }
Exemplo n.º 55
0
        private static void Form_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            FileExplorerForm form = (FileExplorerForm)sender;

            if (FormHandler.ContainsKey(form.Client.ID))
            {
                FormHandler.Remove(form.Client.ID);
            }
            form.Dispose();
        }
Exemplo n.º 56
0
 private void Form1_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     _dData.Clear();
     _dData.Add(CXMLControl._TICK, iTick.ToString());
     _dData.Add(CXMLControl._TOTAL, iTotal.ToString());
     _dData.Add(CXMLControl._LEVEL_1, i1Level.ToString());
     _dData.Add(CXMLControl._LEVEL_3, i3Level.ToString());
     _dData.Add(CXMLControl._LEVEL_50, i50Level.ToString());
     _xml.fXML_Writer(strPath, _dData);
 }
Exemplo n.º 57
0
        private void PartieCampagne_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            //TODO:: problems HERE too!!!!!!
            FonctionsNatives.releaseVisiteurs();
            FonctionsNatives.libererOpenGL();
            //FonctionsNatives.reinitialiser();

            Program.menuPrincipal.Show();
            this.Dispose();
        }
Exemplo n.º 58
0
        private void TextEditor_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            ATrigger.DataCenter.RemoveInstance(this);

            mInstances.Remove(this);
            if (!string.IsNullOrEmpty(this.FileName))
            {
                Center.CurrentCloseDoucment.value = this.FileName;
            }
        }
Exemplo n.º 59
0
 /// <summary>
 /// Handles the FormClosed event of the F9612 control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.Forms.FormClosedEventArgs"/> instance containing the event data.</param>
 private void F9612_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     try
     {
         TerraScanCommon.activityForm = null;
     }
     catch (Exception ex)
     {
         ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm);
     }
 }
Exemplo n.º 60
0
 private void frmCustomerStatementRun_FormClosed(System.Object eventSender, System.Windows.Forms.FormClosedEventArgs eventArgs)
 {
     //Dim x As Short
     //Dim bit As Integer
     //    For x = 0 To Me.lstCustomer.ListCount - 1
     //        If lstCustomer.Selected(x) Then
     //            bit = bit + lstCustomer.ItemData(x)
     //        End If
     //    Next x
     //    cnnDB.Execute "UPDATE Person SET Person.Person_SecurityBit = " & bit & " WHERE (((Person.PersonID)=" & gID & "));"
 }