Beispiel #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     FormNavigator.TransitionSpeed = Properties.Settings.Default.TransitionSpeed;
     FormNavigator.OpenForm <LoginFrm>(null);
     Application.Run();
 }
Beispiel #2
0
    void Start()
    {
        formNavigator = GameObject.Find("FormNavigator").GetComponent <FormNavigator> ();
        copy          = CopyFormatter.AddWrongPronounsToString(EmailCopy.emailCopy);

        GetWidthMeasurements();
        GetWords();
        GenerateWords();
        Pronoun.OnPronounCaught += this.GenerateGrid;
    }
Beispiel #3
0
        internal void MoveToDialog(string dest)
        {
            if (string.IsNullOrEmpty(dest))
            {
                MessageBox.Show(
                    @"Местоположение неизвестно." + Environment.NewLine + @"Сначала посмотрите на карту!",
                    AppVars.AppVersion.ProductShortVersion,
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Stop);
                return;
            }

            if (buttonNavigator.Checked)
            {
                buttonNavigator.Checked = false;
                AppVars.AutoMoving      = false;
                try
                {
                    if (AppVars.MainForm != null)
                    {
                        AppVars.MainForm.BeginInvoke(
                            new ReloadMainPhpInvokeDelegate(AppVars.MainForm.ReloadMainPhpInvoke),
                            new object[] { });
                    }
                }
                catch (InvalidOperationException)
                {
                }
            }
            else
            {
                using (var ff = new FormNavigator(dest, null, null, null))
                {
                    if (ff.ShowDialog() != DialogResult.OK)
                    {
                        return;
                    }
                    buttonNavigator.Checked = true;
                    UpdateFishOff();
                    try
                    {
                        if (AppVars.MainForm != null)
                        {
                            AppVars.MainForm.BeginInvoke(
                                new ReloadMainPhpInvokeDelegate(AppVars.MainForm.ReloadMainPhpInvoke),
                                new object[] { });
                        }
                    }
                    catch (InvalidOperationException)
                    {
                    }
                }
            }
        }
Beispiel #4
0
 public void ExecuteBackClick()
 {
     FormNavigator.OpenForm <MainFrm>(this);
 }
Beispiel #5
0
 public NavScriptManager(FormNavigator form)
 {
     _formnavigator = form;
 }
Beispiel #6
0
 private void btn_Tables_Click(object sender, EventArgs e)
 {
     FormNavigator.OpenForm <RoboDesk.TablesFrm>(this);
 }
Beispiel #7
0
 private void backArrowControl1_Click(object sender, EventArgs e)
 {
     FormNavigator.OpenForm <RoboDesk.LoginFrm>(this);
 }
 // Start is called before the first frame update
 void Start()
 {
     formNavigator = GameObject.Find("FormNavigator").GetComponent <FormNavigator> ();
     GenerateSpeech();
 }