Пример #1
0
        static void AddEventClicked(object sender, EventArgs e)
        {
            // add event, new event, add new event
            AddEventWindow addEventWindow = new AddEventWindow();

            if (addEventWindow.ShowDialog(MainGlueWindow.Self) == DialogResult.OK)
            {
                HandleAddEventOk(addEventWindow);
            }
        }
Пример #2
0
        public static void ShowAddEventWindow(NamedObjectSave objectToTunnelInto)
        {
            AddEventWindow addEventWindow = new AddEventWindow();
            addEventWindow.DesiredEventType = CustomEventType.Tunneled;

            addEventWindow.TunnelingObject = objectToTunnelInto.InstanceName;;

            if (addEventWindow.ShowDialog(MainGlueWindow.Self) == DialogResult.OK)
            {
                HandleAddEventOk(addEventWindow);
            }

        }