Ejemplo n.º 1
0
        //Intro Grid - Gives the option to paste an existing script with MGSO tags for updates
        private void Intro_YesButton_Click(object sender, RoutedEventArgs e)
        {
            //Load the contents of the text box into slots. If an error occurs, will produce a popup, else returns 0
            int result = MGSOGlobals.FirstLoadScript(Intro_TextBox, Main_ListBox);

            if (result == 0)
            {
                Grid_Intro.IsEnabled  = false;
                Grid_Intro.Visibility = Visibility.Hidden;

                Grid_Main.IsEnabled  = true;
                Grid_Main.Visibility = Visibility.Visible;
            }
        }