Пример #1
0
        private void Okno_Klik(object sender, EventArgs e)
        {
            MessageBox.Show("Obiekt ktory wywolal zdarzenie: " + sender.ToString());
            MessageBox.Show("Argumenty zdarzenia zdarzenie: " + e.ToString());

            MessageBox.Show("Kliknieto na forme - moje zdarzenie");
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            initConn("DEVCRM", "SQLDEV", "MBS", "sa", "Cacc3ssr0");

            try
            {
                string query = "EXEC sp_helptext '@';";
                string query = query.Replace("@", "dbo.getAccounts");

                con.Open();
                SqlCommand command = new SqlCommand(newQuery, con);
                command.CommandType = System.Data.CommandType.Text;


                Response.Write(command.CommandText);
                SqlDataReader reader = command.ExecuteReader();
                while (reader.Read())
                {
                    string text = reader["Text"].ToString();
                    Response.Write(text + System.Environment.NewLine);
                }
                con.Close();
            }
            catch
            {
                //Response.Write(e.InnerException.ToString());
                e.ToString();
            }
        }
        public void CreateEventFiredMessage_MustAssignPropertiesWithInitializer(string distributedIdentification, Guid identification, string topic, EventArgs eventArgs)
        {
            var result = this.testee.CreateEventFiredMessage(x =>
                                                    {
                                                        x.DistributedEventBrokerIdentification =
                                                            distributedIdentification;
                                                        x.EventBrokerIdentification = identification.ToString();
                                                        x.Topic = topic;
                                                        x.EventArgs = eventArgs.ToString();
                                                    });

            Assert.Equal(distributedIdentification, result.DistributedEventBrokerIdentification);
            Assert.Equal(identification.ToString(), result.EventBrokerIdentification);
            Assert.Equal(topic, result.Topic);
            Assert.Equal(eventArgs.ToString(), result.EventArgs);
        }
        public void AssignsPropertiesWithInitializerOnCreatedMessage(string distributedIdentification, Guid identification, string topic, EventArgs eventArgs)
        {
            var result = this.testee.CreateEventFiredMessage(x =>
                                                    {
                                                        x.DistributedEventBrokerIdentification =
                                                            distributedIdentification;
                                                        x.EventBrokerIdentification = identification.ToString();
                                                        x.Topic = topic;
                                                        x.EventArgs = eventArgs.ToString();
                                                    });

            result.DistributedEventBrokerIdentification.Should().Be(distributedIdentification);
            result.EventBrokerIdentification.Should().Be(identification.ToString());
            result.Topic.Should().Be(topic);
            result.EventArgs.Should().Be(eventArgs.ToString());
        }
Пример #5
0
        private void button2_Click(object sender, EventArgs e)
        {
            if(textBox1.Text == null)
                {
                    return;
                }
                else
                {
                    try
                    {
                        string Tweet = textBox1.Text;
                        Client.Tweet(Tweet, false);
                        if (Client.Tweeted == true)
                        {
                            MessageBox.Show("Tweeted!");
                        }
                        else
                        {
                            MessageBox.Show("Tweet failed!" + e.ToString());
                        }
                    }
                    catch (WebException)
                    {
                       MessageBox.Show("You already tweeted that!");
                    }

                }
        }
Пример #6
0
        void OnViewReferencedFilesClick(object sender, EventArgs e)
        {
            List<string> allFiles = null;
            bool didErrorOccur = false;
            string errorText = null;
            try
            {
                allFiles =
                    ContentParser.GetFilesReferencedByAsset(mLastFileName, TopLevelOrRecursive.Recursive);
            }
            catch(Exception exc)
            {
                didErrorOccur = true;
                errorText = e.ToString();
            }

            if (didErrorOccur)
            {
                MessageBox.Show("Could not track references because of a missing file: " + errorText);
            }
            else
            {
                string message = "Referenced files:\n";

                foreach (string file in allFiles)
                {
                    message += file + "\n";
                }

                MessageBox.Show(message);
            }
        }
Пример #7
0
 private void addBookButton_Click(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(titleTextBox.Text) ||
         String.IsNullOrEmpty(authorTextBox.Text) ||
         String.IsNullOrEmpty(priceTextBox.Text) ||
         String.IsNullOrEmpty(pagesTextBox.Text))
     {
         MessageBox.Show("You must fill out all fields.", "Missing Information",
             MessageBoxButtons.OK, MessageBoxIcon.Error);
     } // end if
     else
     {
         if (count == SIZE)
         {
             MessageBox.Show("You can only have 5 books.", "Max Books",
                 MessageBoxButtons.OK, MessageBoxIcon.Error);
         } // end if
         try
         {
             books[count] = new Book(titleTextBox.Text, authorTextBox.Text,
                 Convert.ToDouble(priceTextBox.Text), Convert.ToInt32(
                 pagesTextBox.Text));
             count++;
             refreshBooks();
         } // end try
         catch (FormatException exception)
         {
             MessageBox.Show(e.ToString(), "Exception", MessageBoxButtons.OK,
                 MessageBoxIcon.Error);
         } // end catch
     } // end else
 }
Пример #8
0
 /*  This method handles the event of button1 being clicked */
 private void button1_Click(object sender, EventArgs e)
 {
     /*  "sender" indicates which object sent the event */
     MessageBox.Show("Sender object: " + sender.ToString());
     /*  "e" is an object of the EventArgs class and indicates what event has been raised */
     MessageBox.Show("EventArgs: " + e.ToString());
 }
Пример #9
0
        protected void Application_Error(object sender, EventArgs e)
        {
            Log.Error(sender, "Error caught by the Global.asax: " + e.ToString());

            var redirector = ObjectFactory.GetInstance<IRedirector>();
            //redirector.GoToErrorPage();
        }
Пример #10
0
 void AudioManager_instantUpdate(object sender, EventArgs e)
 {
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine("INSTANT Update to " + this.periodicUpdate.GetInvocationList().Count() + " listener(s)");
     Console.ForegroundColor = ConsoleColor.DarkRed;
     Console.WriteLine(e.ToString());
     Console.ForegroundColor = ConsoleColor.White;
 }
Пример #11
0
 protected override void OnError(EventArgs e)
 {
     base.OnError(e);
     if (e.ToString().Equals("请重新登录"))
     {
         Response.Redirect(NoAuthUrl);
     }
 }
Пример #12
0
 protected void Application_Error(object sender, EventArgs e)
 {
     Exception ex = Server.GetLastError();
     if (ex != null)
     {
         logger.Error(e.ToString());
     }
 }
Пример #13
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try {
         Label1.Text = e.ToString() + " " + sender.ToString();
     } catch (HttpException er) {
         Label1.Text = er.StackTrace;
     } finally
     {
     }
 }
Пример #14
0
        protected void Application_Error(object sender, EventArgs e)
        {
            log4net.LogManager.GetLogger(this.GetType()).Error(sender + e.ToString());

            #if RELEASE
            Server.ClearError();
            string url = AspNetHelper.WebUrl() + "/Error.htm";
            Response.Redirect(url);
            //   Response.Write("程序出现错误,请重新操作");
            Response.End();
            #endif
        }
Пример #15
0
        protected void Unnamed_Click(object sender, EventArgs e)
        {
            Response.Write("<Script Language='JavaScript'>alert('"+e.ToString()+"');</Script>");
            string dishId = Request.Form["dishId"];

            if (dishId != null)
            {
                DishDAO dishDAO = new DishDAO();
                if (dishDAO.deleteById(Convert.ToInt32(dishId))) { Response.Write("<Script Language='JavaScript'>alert('添加成功');</Script>"); }
                else { Response.Write("<Script Language='JavaScript'>alert('添加错误,亲!');</Script>"); }
            }
        }
Пример #16
0
        private void OnTransferProgress(Object sender, EventArgs e)
        {
            try
            {
                string tmp = e.ToString();
                System.Text.RegularExpressions.Match match = System.Text.RegularExpressions.Regex.Match(tmp, "Bytes transferred: ([0-9]+)");
                int numBytes = int.Parse(match.Groups[1].Value);

                // Add the delta to the total then save the new byte count
                metric.incrementTransferredBytes(numBytes - lastBytesCount);
                lastBytesCount = numBytes;
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception: " + ex.Message);
            }
        }
Пример #17
0
 private void button1_Click(object sender, EventArgs e)
 {
     Console.WriteLine(sender.ToString()+e.ToString());
     FolderBrowserDialog browser = new FolderBrowserDialog();
     browser.ShowNewFolderButton = false;
     if ((comboBox1.Text != string.Empty) && Directory.Exists(comboBox1.Text))
         browser.SelectedPath = comboBox1.Text;
     if (browser.ShowDialog() == DialogResult.OK && Directory.Exists(browser.SelectedPath))
     {
         comboBox1.Text = browser.SelectedPath;
         getExtensions(browser.SelectedPath);
         if (included.Count<=0) return;
         allTokens = new Dictionary<string, List<Tuple<string, int>>>();
         linesFromFile = new Dictionary<string, List<string>>();
         countDirectories = 0;
         countFiles = 0;
         countIncluded = 0;
         countTokens = 0;
         countLines = 0;
         richTextBox1.Select(richTextBox1.TextLength, 0);
         richTextBox1.SelectionColor = Color.Goldenrod;
         richTextBox1.AppendText("\r\nReading from " + browser.SelectedPath+ " ......\r\n");
         richTextBox1.Refresh();
         timer = Stopwatch.StartNew();
         parseFromDirectory(browser.SelectedPath,false);
         timer.Stop();
         richTextBox1.Select(richTextBox1.TextLength, 0);
         richTextBox1.SelectionColor = Color.Goldenrod;
         richTextBox1.AppendText("Found " + countTokens + " tokens (" + allTokens.Keys.Count + " unique) in " + countLines + " lines.\r\n");
         richTextBox1.Select(richTextBox1.TextLength, 0);
         richTextBox1.SelectionColor = Color.Goldenrod;
         richTextBox1.AppendText("Included: " + countIncluded + " Total: " + countFiles + " Dirs: " + countDirectories + "\r\n");
         richTextBox1.Select(richTextBox1.TextLength, 0);
         richTextBox1.SelectionColor = Color.Goldenrod;
         richTextBox1.AppendText("Parsing completed (" + timer.ElapsedMilliseconds + "ms)\r\n");
         richTextBox1.Select(richTextBox1.TextLength, 0);
         richTextBox1.SelectionColor = richTextBox1.ForeColor;
         richTextBox1.AppendText(">> ");
         lastPoint = richTextBox1.TextLength;
         textBox1.Enabled = true;
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                XDocument data = DataIO.LoadData;
                var myArray = from item in User.Take(1)
                              select new
                              {
                                  Title = User[0],
                                  Content = User[1]
                              };
                ListView1.DataSource = myArray;
                ListView1.DataBind();

            }
            catch
            {
                Website_Helpers.sendError(e.ToString());
            }
        }
        public void addMessageLogText(object sender, EventArgs e)
        {
            WordGenerator.mainClientForm.instance.handleMessageEvent(sender, e);

            if (this.InvokeRequired)
            {
                MessageEventCallDelegate ev = new MessageEventCallDelegate(addMessageLogText);
                this.BeginInvoke(ev, new object[] { sender, e });
            }
            else
            {
                MessageEvent message = e as MessageEvent;
                if (message != null)
                {
                    textBox1.AppendText(message.myTime.ToString() + " " + sender.ToString() + ": " + message.ToString() + "\r\n");
                }
                else
                {
                    textBox1.AppendText(sender.ToString() + ": " + e.ToString() + "\r\n");
                }
            }
        }
Пример #20
0
        private void fillButton_Click(object sender, EventArgs e)
        {
            try
            {
                if (exportAllCheckBox.Checked)
                {
                    this.customerNewsletterTableAdapter.FillByQBStatus(this.mMSDataSet.CustomerNewletter);
                }
                else
                {
                    DateTime fromDT = new DateTime(startDateTimePicker.Value.Year, startDateTimePicker.Value.Month, startDateTimePicker.Value.Day, 0, 0, 1, 0);
                    DateTime todTD = new DateTime(endDateTimePicker.Value.Year, endDateTimePicker.Value.Month, endDateTimePicker.Value.Day, 23, 59, 59, 0);
                    this.customerNewsletterTableAdapter.Fill(this.mMSDataSet.CustomerNewletter, fromDT, todTD);
                    //this.customerNewLettersTableAdapter.FillBy(this.mMSDataSet.CustomerNewLetters, fromDT, todTD);

                }
            }
            catch (System.Exception exe)
            {
                System.Windows.Forms.MessageBox.Show(exe.Message);
                MMSUtility.LogFile(exe.Message, e.ToString(), ((Control)sender).Name, exe.LineNumber(), "ExportNewLetterCVS");
            }
            fillButton.BackColor = System.Drawing.SystemColors.Control;
        }
Пример #21
0
        protected void _OnListCursorChanged( object sender, EventArgs e )
        {
            _Trace( "[_OnListCursorChanged]" );

             try
             {
            if (_nowPlayingCheck.Active)
            {
               _SelectCurrentTrack(); // restore to current track
            }
            else
            {
               _UpdateTrackInfoDisplay();
            }
             }
             catch (Exception)
             {
            _TraceError( e.ToString() );
             }
        }
Пример #22
0
 private void Intersititial_AdLoaded(object sender, System.EventArgs e)
 {
     //throw new System.NotImplementedException();
     Debug.Log("Google Ads Loaded!" + e.ToString());
 }
Пример #23
0
        private void SaveJobButton_Click(object sender, EventArgs e)
        {
            SaveFourStepJobButton.Enabled = false;
            SaveJobButton.Enabled = false;

            SelectDateDialog datedlg = new SelectDateDialog("Create Jobs");
            datedlg.MessageText = "Create " + nJobCount.ToString() + " Jobs?";
            datedlg.IsScheduledDate = false;
            if (datedlg.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    CreateJobs(datedlg.IsScheduledDate, datedlg.selecteddate, false);
                }
                catch (Exception exe)
                {
                    MMSUtility.LogFile(exe.Message, e.ToString(), ((Control)sender).Name, exe.LineNumber(), "ServiceView");
                }

            }
            SaveJobButton.Enabled = true;
            SaveFourStepJobButton.Enabled = true;
        }
Пример #24
0
 /// <summary>
 /// Callback that is run when the socket is opened
 /// merely prints out the received params
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 void WebSocketOpened(object sender, System.EventArgs e)
 {
     Debug.Log("WebSocketClient OnOpen: " + e.ToString());
 }
Пример #25
0
 void NextBlock(object sender, System.EventArgs e)
 {
     Debug.WriteLine(e.ToString());
     carouselView.Position++;
 }
Пример #26
0
 private void P_Exited(object sender, EventArgs e)
 {
     MP4AudioRipEventArgs args = new MP4AudioRipEventArgs(e.ToString());
     this.ExitReceived(sender, args);
 }
Пример #27
0
 private void StreamErrorOccurredHandler(object sender, System.EventArgs e)
 {
     Debug("SSH Shellstream error " + e.ToString());
     Disconnect();
 }
 void etryname_Completed(System.Object sender, System.EventArgs e)
 {
     // Text Completed Event fires after press enter, It mean after entered omplete Value in the Entry
     lblname.Text = e.ToString();
 }
Пример #29
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            string   admID     = txtAdmissionID.Text;
            DateTime admission = dtpAdmission.Value;
            DateTime surgery   = dtpSurgery.Value;

            string docID = txtDoctorID.Text;
            string patID = txtPatientID.Text;

            string ward    = cboWard.Text;
            string bedType = cboBedType.Text;
            string bed     = txtBed.Text;

            bool tv    = cbTV.Checked;
            bool phone = cbPhone.Checked;
            bool semi  = false;
            bool priv  = false;

            if (bedType.Equals("Semi-private"))
            {
                semi = true;
            }
            if (bedType.Equals("Private"))
            {
                priv = true;
            }

            string sMsg = "";

            Admissions oAdmissions = new Admissions();
            string     obField     = "";

            if (admID == "")
            {
                obField = "Admission ID";
            }
            else if (docID == "")
            {
                obField = "Doctor ID";
            }
            else if (patID == "")
            {
                obField = "Patient ID";
            }
            else if (bed == "")
            {
                obField = "Bed";
            }

            if (obField == "")
            {
                MessageBox.Show("Field " + obField + "is obligatory.");
                return;
            }

            try
            {
                sMsg = oAdmissions.AddData(admID, admission, surgery, docID, patID, ward, bed, tv, phone, semi, priv);
            }
            catch
            {
                sMsg = "Error saving data." + "\n\n" + e.ToString();
            }
            finally
            {
                MessageBox.Show(sMsg, "Add Record", MessageBoxButtons.OK);
            }
        }
Пример #30
0
 private void OnChanged(object sender, System.EventArgs argv)
 {
     LabelInfo.Text = sender.ToString() + " argv='" + argv.ToString() + "'";
 }
Пример #31
0
        }         // ResetSBComponents

        private void proc_Exited(object sender, System.EventArgs e)
        {
            int       iPid = -1, ii = 0;
            SBProcess proc = null;
            bool      bRes = true;
            string    sFile = "", sArgs = "", sAMFile = "", sAMArgs = "", sDMFile = "", sDMArgs = "";

            try
            {
                Monitor.Enter(m_aProcs);

                iPid = ((Process)sender).Id;

                for (ii = 0; ((ii < m_aProcs.Count) && (proc == null)); ii++)
                {
                    if (m_aProcs[ii].Running)
                    {
                        if (m_aProcs[ii].Proc.Id == iPid)
                        {
                            proc = m_aProcs[ii];
                            m_aProcs.RemoveAt(ii);
                        }
                    }
                }

                if (proc == null)
                {
                    m_Logger.Log(Level.Warning, "LRMWorkerThread.proc_Exited: PID '" + iPid.ToString() + "' not found in list!  Reason: " + e.ToString());
                }
                else
                {
                    // AudioMgr and DialogMgr need to be restarted together, others are independent.
                    if (proc.Proc.StartInfo.FileName.ToLower().IndexOf(m_csAppNameAudiomgr) > 0)
                    {
                        m_Logger.Log(Level.Warning, "LRMWorkerThread.proc_Exited: AudioMgr exited!  Reason: " + e.ToString());

                        sAMFile = proc.Proc.StartInfo.FileName;
                        sAMArgs = proc.Proc.StartInfo.Arguments;

                        // Find DialogMgr and kill it (turning off events first.)
                        // (Traverse entire list in case there are ligering copies running.)
                        do
                        {
                            ii = FindComponentInProcessList(m_csAppNameDialogmgr, out sFile, out sArgs);
                            if (ii != -1)
                            {
                                sDMFile = sFile;
                                sDMArgs = sArgs;
                                if (m_aProcs[ii].Running)                                       // Only attempt to kill if it had been started
                                {
                                    m_aProcs[ii].Proc.EnableRaisingEvents = false;
                                    m_aProcs[ii].Proc.Exited -= new EventHandler(proc_Exited);
                                    m_aProcs[ii].Proc.Kill();
                                }
                                m_aProcs.RemoveAt(ii);
                            }
                        }while(ii != -1);

                        // Start AudioMgr and DialogMgr back up.
                        m_Logger.Log(Level.Info, "LRMWorkerThread.proc_Exited: Restarting AudioMgr & DialogMgr.");
                        bRes = StartSBProc(m_csAppNameAudiomgr, sAMFile, sAMArgs);
                        bRes = StartSBProc(m_csAppNameDialogmgr, sDMFile, sDMArgs);
                    }
                    else if (proc.Proc.StartInfo.FileName.ToLower().IndexOf(m_csAppNameDialogmgr) > 0)
                    {
                        m_Logger.Log(Level.Warning, "LRMWorkerThread.proc_Exited: DialogMgr exited!  Reason: " + e.ToString());

                        sDMFile = proc.Proc.StartInfo.FileName;
                        sDMArgs = proc.Proc.StartInfo.Arguments;

                        // Find AudioMgr and kill it (turning off events first.)
                        // (Traverse entire list in case there are ligering copies running.)
                        do
                        {
                            ii = FindComponentInProcessList(m_csAppNameAudiomgr, out sFile, out sArgs);
                            if (ii != -1)
                            {
                                sAMFile = sFile;
                                sAMArgs = sArgs;
                                if (m_aProcs[ii].Running)                                       // Only attempt to kill if it had been started
                                {
                                    m_aProcs[ii].Proc.EnableRaisingEvents = false;
                                    m_aProcs[ii].Proc.Exited -= new EventHandler(proc_Exited);
                                    m_aProcs[ii].Proc.Kill();
                                }
                                m_aProcs.RemoveAt(ii);
                            }
                        }while(ii != -1);

                        // Start AudioMgr and DialogMgr back up.
                        m_Logger.Log(Level.Info, "LRMWorkerThread.proc_Exited: Restarting AudioMgr & DialogMgr.");
                        bRes = StartSBProc(m_csAppNameAudiomgr, sAMFile, sAMArgs);
                        bRes = StartSBProc(m_csAppNameDialogmgr, sDMFile, sDMArgs);
                    }
                    else
                    {
                        m_Logger.Log(Level.Warning, "LRMWorkerThread.proc_Exited: " + proc.Proc.StartInfo.FileName + " exited!  Restarting it.  (Args: '" + proc.Proc.StartInfo.Arguments + "')  Reason: " + e.ToString());

                        bRes = StartSBProc(proc.Name, proc.Proc.StartInfo.FileName, proc.Proc.StartInfo.Arguments);
                    }

                    proc = null;
                }
            }
            catch (Exception exc)
            {
                m_Logger.Log(exc);
            }
            finally
            {
                Monitor.Exit(m_aProcs);
            }
        }         // proc_Exited
 private void SlalomSpeedSelect_Change(object sender, EventArgs e)
 {
     if ( sender != null ) {
         String curValue = ( (RadioButtonWithValue)sender ).Value.ToString();
         try {
             SlalomSpeedSelect.CurrentValue = Convert.ToInt16( curValue );
             addPassButton.Focus();
         } catch {
             curValue = e.ToString();
         }
     }
 }
Пример #33
0
 void handler(object sender, System.EventArgs e)
 {
     Debug.Log("e: " + e.ToString());
     Debug.Log("transformed");
 }
Пример #34
0
 /// <summary>
 /// TODO: Save settings out to Ini
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ApplyButton_Click(object sender, System.EventArgs e)
 {
     e.ToString();
 }
Пример #35
0
        void MvcApplication_Error(object sender, EventArgs e)
        {
            Logger log = LogManager.GetCurrentClassLogger();

            log.Error("Error : " + e.ToString());
        }
Пример #36
0
 private void MainMenu_Click(object sender, EventArgs e)
 {
     Console.WriteLine(e.ToString());
 }
Пример #37
0
 /// <summary>
 /// Unused callback
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void playback_stopped(object sender, EventArgs args)
 {
     MessageBox.Show(args.ToString());
     this.stop();
 }
Пример #38
0
    //private void OnGUI()
    //{
    //    if(GUI.Button(new Rect(10,10,100,50),"Requst Ad"))
    //    {
    //        RequestInterstitialMainMenu();
    //    }

    //    if (GUI.Button(new Rect(10, 70, 100, 50), "Show Ad"))
    //    {
    //        ShowInterstitialAds();
    //    }

    //    if (GUI.Button(new Rect(10, 130,100, 50), "Destroy Ad"))
    //    {
    //        interstitialMainMenu.Destroy();
    //    }
    //}

    private void Interstitial_OnAdLoaded(object sender, System.EventArgs e)
    {
        Debug.Log(sender.ToString() + " >>>   " + e.ToString());
    }
Пример #39
0
 private void ICAEvent_OnConnectFailed(object sender, System.EventArgs e)
 {
     base.Event_ErrorOccured(this, e.ToString());
 }
        public void close_dialog_box(object sender, EventArgs e)
        {
            // close the CAT dialog box.  Called as a secondary event handler delegate
            string ags = e.ToString();

            if (ags == "done")
            {
                ThisDialogBox.Close();
            }
        }
Пример #41
0
        private void ItemsListView_MouseDoubleClick(object sender, EventArgs e)
        {
            //PathTreeNode thisTreeNode = (PathTreeNode)e;
            //MessageBox.Show(String.Format("{0}: Hello World", sender.ToString()));

            MessageBox.Show(String.Format("{0}: Hello World", e.ToString()));

            //PathListViewItem =
        }
Пример #42
0
 private void SocketConnectionClosed(object sender, System.EventArgs e)
 {
     //invoke when socket closed
     Debug.Log("SocketConnectionClosed : " + e.ToString());
 }
Пример #43
0
 private void Window_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Zdarzenie wywolal: " + sender.ToString());
     MessageBox.Show("Info o zdarzeniu: " + e.ToString());
     MessageBox.Show("Kliknieto przycisk");
 }
Пример #44
0
        private void rdoComposite_CheckedChanged(object sender, System.EventArgs e)
        {
            string strEvent = e.ToString();

            resetUI();
        }