Exemplo n.º 1
0
        public frmMain()
        {
            InitializeComponent();
            lstMods.HeaderStyle       = ColumnHeaderStyle.Clickable;
            lstMods.CheckBoxes        = true;
            lstMods.OwnerDraw         = true;
            lstMods.ColumnClick      += lstMods_ColumnClick;
            lstMods.DrawColumnHeader += lstMods_DrawColumnHeader;
            lstMods.DrawItem         += lstMods_DrawItem;
            lstMods.DrawSubItem      += lstMods_DrawSubItem;
            lstMods.ItemChecked      += LstModsOnItemChecked;

            chkPlay.Checked      = BuildSettings.Instance.AutoPlay;
            chkAutoClose.Checked = BuildSettings.Instance.AutoClose;
            mnuVersion.Text      = BuildSettings.GetVersion();
            LoadPlugins();
        }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Icon = Resources.HAL9000;
            LoadModsUI();

            if (!Directory.Exists(BuildSettings.Instance.ModFolder))
            {
                this.BeginInvoke((MethodInvoker)this.ShowSettings);
            }

            this.Text += " " + BuildSettings.GetVersion();

            if (BuildSettings.Instance.AutoCheckForUpdates)
            {
                new Thread(() => { UpdateCheckThread(true); }).Start();
            }
        }
Exemplo n.º 3
0
        private void makeReleaseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var curr = Application.StartupPath + "/";
            var loc  = Application.StartupPath + "/DMTv" + BuildSettings.GetVersion() + "/";

            Directory.CreateDirectory(loc);

            BuildFile(curr, loc, "DMTViewer.exe");
            BuildFile(curr, loc, "DMTViewer.exe.config");
            BuildFile(curr, loc, "UpdateMover.exe");

            foreach (var f in Directory.GetFiles(curr))
            {
                if (f.ToLower().EndsWith(".dll"))
                {
                    var name = Path.GetFileName(f);
                    BuildFile(curr, loc, name);
                }
            }

            Helper.CopyFolder(curr + "UnityResources", loc + "UnityResources", true);
        }
Exemplo n.º 4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Icon = Resources.HAL9000;
            LoadModsUI();
            Helper.ClearTempFolder();
            if (!Directory.Exists(BuildSettings.Instance.ModFolder))
            {
                this.BeginInvoke((MethodInvoker)this.ShowSettings);
            }

            this.Text += " " + BuildSettings.GetVersion();

            if (BuildSettings.Instance.AutoCheckForUpdates)
            {
                new Thread(() => { UpdateCheckThread(true); }).Start();
            }

            if (Helper.IsDevBuild == false)
            {
                makeReleaseToolStripMenuItem.Visible = false;
            }
            frmMain_Resize(null, null);
        }
Exemplo n.º 5
0
 private void MnuVersion_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(BuildSettings.GetVersion());
 }