Ejemplo n.º 1
0
        private void ItmStart_Tick(object sender, EventArgs e)
        {
            var Sett = new Settings();

            Timer++;
            if (Timer > 2)
            {
                IlbStatus.Text = "Initialization";
                if (Timer > 6)
                {
                    if (Arg.Count() == 0)
                    {
                        if (Sett.CompactMod)
                        {
                            var TIfrMain = new IfrCompact();
                            TIfrMain.Show();
                            this.Hide();
                            ItmStart.Stop();
                        }
                        else
                        {
                            var TIfrMain = new IfrMain();
                            TIfrMain.Show();
                            this.Hide();
                            ItmStart.Stop();
                        }
                    }
                    else
                    {
                        if (Sett.CompactMod)
                        {
                            var TIfrMain = new IfrCompact();
                            TIfrMain.Show();
                            TIfrMain.Open(Arg[0]);
                            this.Hide();
                            ItmStart.Stop();
                        }
                        else
                        {
                            var TIfrMain = new IfrMain();
                            TIfrMain.Show();
                            TIfrMain.Open(Arg[0]);
                            this.Hide();
                            ItmStart.Stop();
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private void compactModToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to enable full size mode?", "Compact mode", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         var Sett = new Settings();
         Sett.CompactMod = false;
         Sett.Save();
         this.Hide();
         string Appdata  = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
         string TempPath = Appdata + "\\Inventory editor\\";
         Save(TempPath + "CompactMode");
         var TIfrFull = new IfrMain();
         TIfrFull.Show();
         TIfrFull.Open(TempPath + "CompactMode");
         File.Delete(TempPath + "CompactMode");
         CanClose = true;
         this.Close();
     }
 }