Esempio n. 1
0
        /// <summary>
        /// When clicked on a history item in the file menu, load that file. First we must recall which item it actually is from the history.
        /// </summary>
        /// <param name="sender">Sending Object</param>
        /// <param name="e">Event Args</param>
        private void HistoryHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;

            RegMemory.HistoryFile f = (RegMemory.HistoryFile)clickedItem.Tag;
            this.LoadGCodeOrSTL(f.file);
        }
Esempio n. 2
0
        private void HistoryHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;

            RegMemory.HistoryFile f = (RegMemory.HistoryFile)clickedItem.Tag;
            LoadGCodeOrSTL(f.file);
            // Take some action based on the data in clickedItem
        }