示例#1
0
        //Initalize Main Window
        public LauncherWindow(string[] args)
        {
            InitializeComponent();
            gameData = new GameData();

            #region Init
            Functions.CreateFiles();
            gameData.AddGame("Minecraft", "mcexe.dat");
            gameData.AddGame("Rocket League", "steam://rungameid/252950", false, "Steam");
            gameData.AddGame("CS:GO", "steam://rungameid/730", false, "Steam");
            gameData.AddGame("League OF Legends", "lolexe.dat");
            gameData.AddGame("Scrap Mechanic", "steam://rungameid/387990", false, "Steam");
            gameData.AddGame("Unturned", "steam://rungameid/304930", false, "Steam");
            gameData.AddGame("Factorio", "factorioexe.dat");
            gameData.AddGame("Fortnite", "fortniteexe.dat");
            #endregion


            // If launched with args (from sharp updater) say Updated to that version
            try
            {
                MessageBox.Show(string.Format("Updated to {0}", args[0]), "Multi-Game Launcher", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch
            {
            }

            //Sharp update check for updates
            updater = new SharpUpdater(this);
            updater.DoUpdate();
        }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("http://aceroleplay.xyz/launcher/version.xml"));
     updater.DoUpdate();
     label5.Text = ProductVersion;
 }
示例#3
0
        public Editor()
        {
            InitializeComponent();
            this.Text = Application.ProductVersion;

            updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://krijn.serialpowered.com/ProjectFiles/update.xml"));
        }
 public TopManagement()
 {
     InitializeComponent();
     gridRequest.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     listLeaders.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     updater = new SharpUpdater(this);
 }
示例#5
0
        public Form1()
        {
            InitializeComponent();

            this.label1.Text = this.ApplicationAssembly.GetName().Version.ToString();
            updater          = new SharpUpdater(this);
        }
        public Form1()
        {
            InitializeComponent();

            updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("http://sistemas.jf.ifsudestemg.edu.br/graphfilter/update/update.xml"));

            this.lblVersion.Text = this.ApplicationAssembly.GetName().Version.ToString();
        }
 public Manager()
 {
     InitializeComponent();
     gridRequest.SelectionMode   = DataGridViewSelectionMode.FullRowSelect;
     gridLeave.SelectionMode     = DataGridViewSelectionMode.FullRowSelect;
     listEmployees.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     updater = new SharpUpdater(this);
 }
示例#8
0
        public Form1()
        {
            InitializeComponent();

            this.flatLabel3.Text = "Versão: " + this.ApplicationAssembly.GetName().Version.ToString();
            updater = new SharpUpdater(this);

            updater.DoUpdate();
        }
示例#9
0
        private void f_DBLogin_Load(object sender, EventArgs e)
        {
            new FLogo().ShowDialog();

            // Обновления
            SharpUpdater updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://raw.githubusercontent.com/AlexDives/ProfUpdater/master/version.xml"));

            updater.DoUpdate();
        }
示例#10
0
        public Form1()
        {
            InitializeComponent();

            label1.Text = ProductName + "\n" + ProductVersion;
            // updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://raw.githubusercontent.com/henryxrl/SharpUpdate/master/project.xml"));
            // updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri(new System.IO.FileInfo(@"..\..\..\project.xml").FullName));       // for local testing
            updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://raw.githubusercontent.com/DefPavel/SharpUpdate/master/project.xml"));
        }
示例#11
0
        public FormMain()
        {
            updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://dikbud.ntbprov.go.id/absensi/download/update.xml"));

            Cursor.Current = Cursors.WaitCursor;
            Thread thread = new Thread(new ThreadStart(StartForm));

            thread.Start();
            Thread.Sleep(2000);
            InitializeComponent();
            thread.Abort();
        }
示例#12
0
        public Form1()
        {
            Controller.Init();

            InitializeComponent();

            SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            Controller.RecordSelectedIndex(-1);
            UpdateView();

            updater = new SharpUpdater(this);
        }
示例#13
0
 public MainForm()
 {
     InitializeComponent();
     images = new Image[] {
         Properties.Resources.correct,
         Properties.Resources.wrong,
         Properties.Resources.correct_selected,
         Properties.Resources.wrong_selected
     };
     Annotator.Initiate(this, pictureBox1, images);
     updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://raw.githubusercontent.com/DinushaMS/Assignment-Annotator-V2/master/PDF_Assignment_Annotator/bin/Release/update.xml"));
     //this.Text = ProductName + " - " + ProductVersion;
 }
示例#14
0
        public frmWeCleared()
        {
            InitializeComponent();

            // Classe d'enregistrement des parametres
            Settings = new SettingsClass(this);
            Settings.ReadMainSettings();

            // Attribution du WoWPath
            WoWPath = MainSettings["WoWPath"];
            if (IsWoWPathValid(WoWPath))
            {
                lblPath.Text = WoWPath;
            }

            // Addons Parser class
            AddonsParser = new AddonsParser(this);

            // Zip Class
            ZipClass = new ZipClass(this);

            // Démarrer le timer général.
            tmrRefresh.Start();
            tmrRefresh_Tick(this, EventArgs.Empty);

            // Notify Icon
            NIcon = new NotifyIcon
            {
                BalloonTipIcon  = ToolTipIcon.Info,
                BalloonTipText  = "Vous pouvez réouvrir We Cleared Client via le system tray.",
                BalloonTipTitle = "We Cleared minimisé.",
                Icon            = Properties.Resources.Icon,
                Text            = "Cliquez pour réouvrir We Cleared.",
                Visible         = false
            };
            NIcon.MouseClick += NIcon_Click;

            // Mises à jour de l'UI
            dataGridAddons.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridAddons.RowTemplate.Height            = 50;
            btnUpdate.BackColor = Settings.GetEnabled("AutoUpdate") ? Color.DarkGreen : Color.DarkRed;
            DefineTooltips();

            // ISharpUpdatable UI
            lblUpdateClient.Text = ApplicationAssembly.GetName().Version.ToString();
            Updater = new SharpUpdater(this);
            Updater.DoUpdate();
        }
示例#15
0
文件: Login.cs 项目: JoodJoy/TERA-BOT
 public Login()
 {
     this.InitializeComponent();
     this.temp();
     this.update = new SharpUpdater((ISharpUpdatable)this);
     this.update.doUpdate();
     this.BringToFront();
     if (!File.Exists("user info.json"))
     {
         File.Create("user info.json");
     }
     else
     {
         this.loadDetails();
     }
 }
示例#16
0
        public Form1()
        {
            try
            {
                InitializeComponent();
                IniFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "AmbiLED\\config.ini");
                Read_Ini_File();
                Set_LED_Positions();

                this.Text = "AmbiLED Driver v" + this.ApplicationAssembly.GetName().Version.ToString() + " BETA";
                updater   = new SharpUpdater(this);

                SystemEvents.PowerModeChanged += OnPowerModeChanged;
            }
            catch (Exception ex)
            {
                //MessageBox.Show("Whoops! We have a problem!\n\n" + ex.ToString());
            }
        }
示例#17
0
        /// <summary>
        /// Предоставляет главное MDI окно программы
        /// </summary>
        /// <param name="db">Экземпляр класса для работы с БД.</param>
        /// <param name="userRole">Права пользователя</param>
        public MainMDIForm(IDataBase db, UserRole userRole)
        {
            InitializeComponent();
            this.DataBase = db;
            this.Entities = db.Entities;
            this.userRole = userRole;
            this.updater  = new SharpUpdater(this);

            this.reportCreator = new ReportCreator(new FolderBrowserDialog());
            SetReportCreatorPropertiesBySettings();

            if (userRole == UserRole.Debug)
            {
                statusLblUser.Text = "Отладка";
            }

            if (userRole == UserRole.Moderator)
            {
                statusLblUser.Text = "Редактор";
            }
        }
示例#18
0
        public Form1()
        {
            InitializeComponent();

            DirectoryInfo di = new DirectoryInfo(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));

            if (di != null)
            {
                FileInfo[] subFiles = di.GetFiles();
                if (subFiles.Length > 0)
                {
                    Console.WriteLine("Files:");
                    foreach (FileInfo subFile in subFiles)
                    {
                        Console.WriteLine("   " + subFile.Name + " (" + subFile.Length + " bytes)");
                    }
                }
            }
            this.label1.Text = this.ApplicationAssembly.GetName().Version.ToString();
            this.label3.Text = this.ApplicationAssembly.GetName().Name.ToString();
            updater          = new SharpUpdater(this);
        }
示例#19
0
        public Form1()
        {
            InitializeComponent();

            updater = new SharpUpdater(this);
            updater.DoUpdate();

            // Start listening for packets
            outgauge.Connect("127.0.0.1", 30000);

            // Attach OutGauge packet event
            outgauge.PacketReceived += (sender, e) => {
                /*
                 * Process p = Process.GetProcessesByName("lfs").FirstOrDefault();
                 *      if (p != null)
                 *      {
                 *          IntPtr h = p.MainWindowHandle;
                 *          SetForegroundWindow(h);
                 *          SendKeys.SendWait("a");
                 *          //System.Threading.Thread.Sleep(100);
                 *      }
                 */



                if (checkBox1.Checked)
                {
                    //Devir
                    label2.Text = Convert.ToInt32(e.RPM).ToString();
                    //Araç
                    label10.Text = Convert.ToString(e.Car);
                    //Hız
                    label9.Text = Convert.ToInt32(e.Speed / 0.27777778).ToString();
                    //Benzin
                    label11.Text = Convert.ToInt32(e.Fuel * 100).ToString();
                    //Vites

                    if (e.Gear == 8)
                    {
                        label12.Text = "7";
                    }
                    else if (e.Gear == 7)
                    {
                        label12.Text = "6";
                    }
                    else if (e.Gear == 6)
                    {
                        label12.Text = "5";
                    }
                    else if (e.Gear == 5)
                    {
                        label12.Text = "4";
                    }
                    else if (e.Gear == 4)
                    {
                        label12.Text = "3";
                    }
                    else if (e.Gear == 3)
                    {
                        label12.Text = "2";
                    }
                    else if (e.Gear == 2)
                    {
                        label12.Text = "1";
                    }
                    else if (e.Gear == 1)
                    {
                        label12.Text = "N";
                    }
                    else if (e.Gear == 0)
                    {
                        label12.Text = "R";
                    }
                    else
                    {
                        label12.Text = Convert.ToInt32(e.Gear).ToString();
                    }

                    //Turbo
                    label13.Text = Convert.ToInt32(e.Turbo * 100).ToString();

                    circularProgressBar4.Value = Convert.ToInt32(e.EngTemp);
                    label19.Text = Convert.ToInt32(e.Packet.EngTemp / 0.27777778).ToString();
                    circularProgressBar5.Value = Convert.ToInt32(e.OilPressure);
                    label20.Text = Convert.ToInt32(e.Packet.OilPressure / 0.27777778).ToString();
                    circularProgressBar6.Value = Convert.ToInt32(e.OilTemp);
                    label21.Text = Convert.ToInt32(e.Packet.OilTemp / 0.27777778).ToString();

                    circularProgressBar1.Value = Convert.ToInt32(e.Throttle * 100);
                    circularProgressBar2.Value = Convert.ToInt32(e.Brake * 100);
                    circularProgressBar3.Value = Convert.ToInt32(e.Clutch * 100);


                    //Görünüm 1
                    textBox1.Text = Convert.ToString(e.Display1);
                    //Görünüm 2
                    textBox2.Text = Convert.ToString(e.Display2);
                }
                else
                {
                }
            };
        }
示例#20
0
 public Employee()
 {
     InitializeComponent();
     gridLeave.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     updater = new SharpUpdater(this);
 }
示例#21
0
        private void but_newVersion_Click(object sender, EventArgs e)
        {
            SharpUpdater updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://raw.githubusercontent.com/AlexDives/ProfUpdater/master/version.xml"));

            updater.DoUpdate();
        }
示例#22
0
 public Form1()
 {
     InitializeComponent();
     updater = new SharpUpdater(this);
     updater.DoUpdate();
 }
示例#23
0
 public LoginScreen()
 {
     InitializeComponent();
     updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://unknown-shop.com/myapp/bypass.xml"));
     //currentversion = "2";
 }
 public DashboardForm()
 {
     InitializeComponent();
     updater = new SharpUpdater(Assembly.GetExecutingAssembly(), this, new Uri("https://dl.dropbox.com/s/8lrlgmq2zdqxhl5/project.xml?dl=1"));
     //updater.DoUpdate();
 }
示例#25
0
        public MainWindow()
        {
            SetBrowserFeatureControl();



            InitializeComponent();
            // Create the interop host control.

            AppIcon = System.Drawing.Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetEntryAssembly().ManifestModule.Name);

            updater = new SharpUpdater(this);
            this.tbSystemMessages.Text = this.tbSystemMessages.Text + " [A" + this.ApplicationAssembly.GetName().Version.ToString() + "]";
            string refrate = (ConfigurationManager.AppSettings["DefaultRefresh"] == null || ConfigurationManager.AppSettings["DefaultRefresh"] == "") ? refreshrate.ToString() : ConfigurationManager.AppSettings["DefaultRefresh"];

            refreshrate = int.Parse(refrate);

            mwApiConn = new MWA.Integration.MWApiIntegrationConnector("MWApi");

            buildApiConn = new WebApiIntegrationConnector();

            ((INotifyPropertyChanged)mwApiConn).PropertyChanged +=
                new PropertyChangedEventHandler(mwApiConn_PropertyChanged);

            lwConn = new ExeIntegrationConnector("Logwarrior.exe");
            //lwConn = new LWConn("MatchCompletedPublishingTestForm.exe");

            //MatchLogger.MatchCompletedPublisher.OnMatchCompleted+= HandleMatch;



            OverlaySettings.loadSettings();
            btnLWConn.BorderBrush      = System.Windows.Media.Brushes.Transparent;
            btnLWConn.BorderThickness  = new Thickness(0, 0, 0, 0);
            btnLWConn.Background       = System.Windows.Media.Brushes.Transparent;
            btnApiConn.BorderBrush     = System.Windows.Media.Brushes.Transparent;
            btnApiConn.BorderThickness = new Thickness(0, 0, 0, 0);
            btnApiConn.Background      = System.Windows.Media.Brushes.Transparent;

            if (Properties.Settings.Default.dailyCompletionList == null)
            {
                Properties.Settings.Default.dailyCompletionList = new System.Collections.Specialized.StringCollection();
            }

            btnBuildConn_Click("", new RoutedEventArgs());


            menuItem_filters_Association.IsChecked = Properties.Settings.Default.filterAssociation;
            menuItem_filters_ShowBuilds.IsChecked  = Properties.Settings.Default.filterShowBuilds;


            if (Properties.Settings.Default.positionWidth > 0)
            {
                Width  = Properties.Settings.Default.positionWidth;
                Height = Properties.Settings.Default.positionHeight;
                Left   = Properties.Settings.Default.positionLeft;
                Top    = Properties.Settings.Default.positionTop;
            }

            getStartupInformation();


            if (tbPilotName.Text == "Pilot Name" ||
                (string.IsNullOrEmpty(Properties.Settings.Default.UserName) ||
                 Properties.Settings.Default.UserName == "Pilot Name"))
            {
                ForcePilotNameEntry();
            }
            else
            {
                InitIntegrationConnectors();
                tcMWApi.SelectedItem = TabHome;
            }
        }