Example #1
0
        private void Form3_FormClosing(object sender, FormClosingEventArgs e)
        {
            // instance the event args and pass it each value
            ScanFormCloseEventArgs args = new ScanFormCloseEventArgs(0x01);

            // raise the event with the updated arguments
            ScanFormClosing(this, args);
            if (net_conn.GetTcpConnected())
            {
                if (net_conn.IsMyConnection(Form3NeworkConnectionOwner))
                {
                    net_conn.CloseConnection(Form3NeworkConnectionOwner);
                }
            }
            if (ann != null)
            {
                ann.Dispose();
            }
        }
Example #2
0
 private void ScanFormClosed(object sender, ScanFormCloseEventArgs e)
 {
     Energyscan.Enabled = true;
 }