Beispiel #1
0
 void LogoPictureBoxClick(object sender, EventArgs e)
 {
     if (!_options.HaveNoNetworkAndInternet)
     {
         SupportManager.DoSupport(SupportRequest.VisitHomepage);
     }
 }
Beispiel #2
0
 void SharpDevelopPictureBoxClick(object sender, EventArgs e)
 {
     if (!_options.HaveNoNetworkAndInternet)
     {
         SupportManager.DoSupport(SupportRequest.SharpDevelop);
     }
 }
Beispiel #3
0
 void VirtuawinPictureBoxClick(object sender, EventArgs e)
 {
     if (!_options.HaveNoNetworkAndInternet)
     {
         SupportManager.DoSupport(SupportRequest.VirtuaWin);
     }
 }
Beispiel #4
0
        /// <summary>
        /// Opens file log
        /// </summary>
        /// <exception cref="LogException">any problems</exception>
        public override void Open()
        {
            // creating log on the base of template
            // required to reduce problems with encoding
            try
            {
                File.WriteAllText(_fileName,
                                  string.Format(
                                      CultureInfo.CurrentCulture,
                                      File.ReadAllText(Files.FileLogTemplate),
                                      DateTime.Now.ToString("f"),
                                      Translation.Current[509],
                                      SupportManager.GetLink(SupportRequest.VisitHomepage),
                                      SupportManager.GetLink(SupportRequest.BugReport),
                                      SupportManager.GetLink(SupportRequest.Support),
                                      Translation.Current[288],
                                      Translation.Current[290],
                                      Translation.Current[291]));
                _logFile = File.AppendText(_fileName);
            }
            catch (Exception e)
            {
                throw new LogException(e.Message, e);
            }

            IsOpened = true;
        }
Beispiel #5
0
 void BulocalizationPictureBoxClick(object sender, EventArgs e)
 {
     if (!_options.HaveNoNetworkAndInternet)
     {
         SupportManager.DoSupport(SupportRequest.BULocalization);
     }
 }
        public void Support()
        {
            DataTable dt = SupportManager.SelectAll();

            rptSupporrt.DataSource = dt;
            rptSupporrt.DataBind();
        }
Beispiel #7
0
        private void FindFile()
        {
            SupportManager sp          = SupportManager.Instance();
            string         currentPath = String.Empty;

            foreach (string path in sp.IncludePaths)
            {
                if (File.Exists(path + _xlsFileName))
                {
                    currentPath = path + _xlsFileName;
                    break;
                }
            }
            _props = new Dictionary <string, string>
            {
                { "Provider", "Microsoft.Jet.OLEDB.4.0" },
                { "Data Source", currentPath },
                { "Extended Properties", "Excel 8.0" }
            };

            var stringBuilder = new StringBuilder();

            foreach (var prop in _props)
            {
                stringBuilder.AppendFormat("{0}={1};", prop.Key, prop.Value);
            }
            _excelConnectionString = stringBuilder.ToString();
        }
        /// <summary>
        /// Requests OS to open the log
        /// </summary>
        /// <param name="info">Log information</param>
        public void OpenLogInBrowser(LogInfo info)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            SupportManager.OpenWebLink(info.LogFile);
        }
Beispiel #9
0
 private void Awake()
 {
     if (SupportInstance != null && SupportInstance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     SupportInstance = this;
     DontDestroyOnLoad(this);
 }
Beispiel #10
0
        private void EditData(int Id)
        {
            SupportInfo obj = SupportManager.Select((int)Id);

            txtTitle.Text               = obj.Title;
            txtNicknam.Text             = obj.Yahoo;
            txtPhone.Text               = obj.Phone;
            DropDownList1.SelectedValue = obj.Type.ToString();
            vID = obj.ID;
            EditPanel.Enabled = true;
        }
Beispiel #11
0
        private void BindData()
        {
            DataTable dt = SupportManager.SelectAll();

            if (dt != null)
            {
                DataView dv = dt.DefaultView;
                dv.Sort       = "ID ASC";
                dg.DataSource = dv;
                dg.DataBind();
            }
        }
Beispiel #12
0
        private void EffectButtonClicked(Player player, string buttonName)
        {
            var ButtonConfig = Configuration.Instance.EffectSettings.effectButtonsModel;
            var uPlayer      = UnturnedPlayer.FromPlayer(player);

            var BoxData = DataManager.getData(ulong.Parse(uPlayer.CSteamID.ToString()), "ReportBox", DataType.String);

            if (ButtonConfig.BugName == buttonName || ButtonConfig.CheatingName == buttonName || ButtonConfig.InsultingName == buttonName || ButtonConfig.QuestionName == buttonName || ButtonConfig.OtherName == buttonName)
            {
                if (BoxData != null)
                {
                    if (BoxData.ToString().Replace(" ", null).Length < 5)
                    {
                        Message.Send(uPlayer, "MinimumTextLimit", "{MinimumTextLimit}", Configuration.Instance.EffectSettings.MinimumTextLimit.ToString());
                        return;
                    }
                }
                else
                {
                    return;
                }
            }

            if (ButtonConfig.BugName == buttonName && BoxData != null)
            {
                SupportManager.Add(uPlayer, SupportType.Bug, BoxData.ToString());
            }

            else if (ButtonConfig.CheatingName == buttonName && BoxData != null)
            {
                SupportManager.Add(uPlayer, SupportType.Cheating, BoxData.ToString());
            }

            else if (ButtonConfig.InsultingName == buttonName && BoxData != null)
            {
                SupportManager.Add(uPlayer, SupportType.Insulting, BoxData.ToString());
            }

            else if (ButtonConfig.QuestionName == buttonName && BoxData != null)
            {
                SupportManager.Add(uPlayer, SupportType.Question, BoxData.ToString());
            }

            else if (ButtonConfig.OtherName == buttonName && BoxData != null)
            {
                SupportManager.Add(uPlayer, SupportType.Other, BoxData.ToString());
            }

            SupportUI.Close(uPlayer);
        }
Beispiel #13
0
        private void btnSaveAsDefaults_Click(object sender, EventArgs e)
        {
            SupportManager.DefaultSupportSettings = new DAL.Catalogs.SupportCatalogItem()
            {
                BottomHeight = this._datasource.BottomHeight,
                BottomRadius = this._datasource.BottomRadius,
                IsDefault    = true,
                MiddleRadius = this._datasource.MiddleRadius,
                TopHeight    = this._datasource.TopHeight,
                TopRadius    = this._datasource.TopRadius
            };

            SupportManager.Save();
        }
Beispiel #14
0
        public void Process(SqlConnection connection)
        {
            SqlCommand     preCommand = connection.CreateCommand();
            string         fileDir    = String.Empty;
            SupportManager sp         = SupportManager.Instance();

            foreach (string path in sp.IncludePaths)
            {
                if (File.Exists(path + _fileName))
                {
                    fileDir = path + _fileName;
                }
            }
            var    file   = new FileInfo(fileDir);
            string script = file.OpenText().ReadToEnd();

            preCommand.CommandText = script;
            preCommand.ExecuteNonQuery();
        }
Beispiel #15
0
    public string GetStatesText()
    {
        System.Text.StringBuilder sb = new System.Text.StringBuilder();

        sb.Append(UnitManager.GetAtkText());
        sb.Append(SupportManager.GetAtkText());
        sb.Append(UnitManager.GetSkillText());
        sb.Append(SupportManager.GetSkillText());
        sb.Append(Buff.GetBuffText());

        sb.Append("\n");
        sb.Append("攻撃力:" + AttackPower);
        sb.Append("\n");
        sb.Append("技ダメージ:" + SkillDamage);
        sb.Append("\n");
        sb.Append("防御力:" + Defence);

        return(sb.ToString());
    }
Beispiel #16
0
        protected void SaveData()
        {
            try
            {
                if (vID != null)
                {
                    //Edit on the object.
                    int Id;
                    if (int.TryParse(vID.ToString(), out Id))
                    {
                        SupportInfo obj = SupportManager.Select(Id);
                        obj.Title = txtTitle.Text;
                        obj.Yahoo = txtNicknam.Text;
                        obj.Phone = txtPhone.Text;
                        obj.Type  = int.Parse(DropDownList1.SelectedValue);
                        SupportManager.Update(obj);
                    }
                }
                else
                {
                    //this is a new object.
                    SupportInfo obj = new SupportInfo();
                    obj.Title = txtTitle.Text;
                    obj.Yahoo = txtNicknam.Text;
                    obj.Phone = txtPhone.Text;
                    obj.Type  = int.Parse(DropDownList1.SelectedValue);;
                    SupportManager.Insert(obj);
                }

                lblMessage.Text   = "Đã lưu dữ liệu thành công!";
                EditPanel.Enabled = false;
                BindData();
                vID = null;
            }
            catch (Exception ex)
            {
                lblMessage.Text = ex.Message;
            }
        }
Beispiel #17
0
        protected void DeleteData(int ID)
        {
            try
            {
                if (SupportManager.Delete(ID))
                {
                    lblMessage.Text   = "Đã xóa mục hỗ trợ ";
                    EditPanel.Enabled = false;

                    BindData();
                    vID = null;
                }
                else
                {
                    this.lblMessage.Text = ProviderManager.ErrorMessage;
                }
            }
            catch (Exception ex)
            {
                lblMessage.Text = ex.Message;
            }
        }
Beispiel #18
0
        void CheckForUpdatesLabelClick(object sender, EventArgs e)
        {
            string newVersion;
            string changes;

            try
            {
                if (UpdateChecker.CheckForUpdate(out newVersion, out changes))
                {
                    Messages.ShowInformationBox(string.Format(Translation.Current[531], newVersion, changes));
                    SupportManager.DoSupport(SupportRequest.OpenDownloadPage);
                }
                else
                {
                    Messages.ShowInformationBox(Translation.Current[532]);
                }
            }
            catch (InvalidOperationException exc)
            {
                Messages.ShowErrorBox(exc.Message);
            }
        }
Beispiel #19
0
 void VisitWebSiteLabelClick(object sender, EventArgs e)
 {
     SupportManager.DoSupport(SupportRequest.VisitHomepage);
 }
Beispiel #20
0
        public void Execute(IRocketPlayer rPlayer, string[] args)
        {
            var uPlayer = (UnturnedPlayer)rPlayer;

            if (!rPlayer.HasPermission(Main.Instance.Configuration.Instance.PermissionSetting.permissionsConfig.CommandSupport))
            {
                Message.Send(uPlayer, "NotPermission");
                return;
            }

            if (args.Length == 0)
            {
                if (SupportManager.Has(uPlayer))
                {
                    Message.Send(uPlayer, "HasSupport");
                    return;
                }

                SupportUI.Send(uPlayer);
            }
            else if (args[0].ToLower() == "liste")
            {
                if (!Permission.hasPermission(uPlayer, Main.Instance.Configuration.Instance.PermissionSetting.permissionsConfig.CommandList))
                {
                    Message.Send(uPlayer, "NotPermission");
                    return;
                }

                if (SupportManager.Count == 0)
                {
                    Message.Send(uPlayer, "NoActiveSupport");
                    return;
                }

                int count = 1;

                ChatManager.serverSendMessage($"<color=orange>[</color><color=yellow>#</color><color=orange>]</color> Destek Talepleri;", UnityEngine.Color.white, null, uPlayer.SteamPlayer(), EChatMode.SAY, null, true);
                foreach (var Support in SupportManager.List)
                {
                    string SupportType = Support.supportType.ToString().Replace("Question", "Genel").Replace("Cheating", "Hile").Replace("Insulting", "Hakaret").Replace("Other", "Diğer");
                    ChatManager.serverSendMessage($"<color=orange>[</color><color=yellow>{count}</color><color=orange>]</color> Oyuncu: <color=green>{Support.unturnedPlayer.CharacterName}</color> <color=orange>|</color> Tür: <color=green>{SupportType}</color>", UnityEngine.Color.white, null, uPlayer.SteamPlayer(), EChatMode.SAY, null, true);
                    count++;
                }
            }
            else if (args[0].ToLower() == "git")
            {
                if (!Permission.hasPermission(uPlayer, Main.Instance.Configuration.Instance.PermissionSetting.permissionsConfig.CommandGo))
                {
                    Message.Send(uPlayer, "NotPermission");
                    return;
                }

                if (args.Length == 1)
                {
                    Message.Send(uPlayer, "GoArgsNull");
                    return;
                }

                var TargetPlayer = UnturnedPlayer.FromName(args[1]);

                if (TargetPlayer == null)
                {
                    Message.Send(uPlayer, "NoPlayerFound");
                    return;
                }

                if (!SupportManager.Has(TargetPlayer))
                {
                    Message.Send(uPlayer, "HasNotPlayer");
                    return;
                }

                var SupportRequest = SupportManager.List[SupportManager.List.IndexOf(SupportManager.List.Where(X => X.unturnedPlayer.CSteamID == TargetPlayer.CSteamID).FirstOrDefault())];

                uPlayer.Teleport(TargetPlayer);
                SupportManager.List.Remove(SupportRequest);
                SupportUI.Sound(TargetPlayer, SoundType.Getting);
                Message.Send(TargetPlayer, "GettingNotification", "{Player}", uPlayer.CharacterName);
            }
            else if (args[0].ToLower() == "sil")
            {
                if (!Permission.hasPermission(uPlayer, Main.Instance.Configuration.Instance.PermissionSetting.permissionsConfig.CommandRemove))
                {
                    Message.Send(uPlayer, "NotPermission");
                    return;
                }

                if (args.Length == 1)
                {
                    Message.Send(uPlayer, "GoArgsNull");
                    return;
                }

                var TargetPlayer = UnturnedPlayer.FromName(args[1]);

                if (TargetPlayer == null)
                {
                    Message.Send(uPlayer, "NoPlayerFound");
                    return;
                }

                if (!SupportManager.Has(TargetPlayer))
                {
                    Message.Send(uPlayer, "HasNotPlayer");
                    return;
                }

                var SupportRequest = SupportManager.List[SupportManager.List.IndexOf(SupportManager.List.Where(X => X.unturnedPlayer.CSteamID == TargetPlayer.CSteamID).FirstOrDefault())];

                SupportManager.List.Remove(SupportRequest);
                Message.Send(uPlayer, "RemovePlayerSupport", "{Player}", TargetPlayer.CharacterName);
            }
            else if (args[0].ToLower() == "bilgi")
            {
                if (!Permission.hasPermission(uPlayer, Main.Instance.Configuration.Instance.PermissionSetting.permissionsConfig.CommandInformation))
                {
                    Message.Send(uPlayer, "NotPermission");
                    return;
                }

                if (args.Length == 1)
                {
                    Message.Send(uPlayer, "GoArgsNull");
                    return;
                }

                var TargetPlayer = UnturnedPlayer.FromName(args[1]);

                if (TargetPlayer == null)
                {
                    Message.Send(uPlayer, "NoPlayerFound");
                    return;
                }

                if (!SupportManager.Has(TargetPlayer))
                {
                    Message.Send(uPlayer, "HasNotPlayer");
                    return;
                }

                var SupportRequest = SupportManager.List[SupportManager.List.IndexOf(SupportManager.List.Where(X => X.unturnedPlayer.CSteamID == TargetPlayer.CSteamID).FirstOrDefault())];

                ChatManager.serverSendMessage($"<color=orange>[</color><color=yellow>Bilgi</color><color=orange>]</color> Oyuncu: <color=green>{SupportRequest.unturnedPlayer.CharacterName}</color> <color=orange>|</color> Tür: <color=green>{SupportRequest.supportType}</color>", UnityEngine.Color.white, null, uPlayer.SteamPlayer(), EChatMode.SAY, null, true);
                string SupportType = SupportRequest.supportType.ToString().Replace("Question", "Genel").Replace("Cheating", "Hile").Replace("Insulting", "Hakaret").Replace("Other", "Diğer");
                ChatManager.serverSendMessage($"<color=orange>[</color><color=yellow>#</color><color=orange>]</color> <color=green>{SupportType}</color>", UnityEngine.Color.white, null, uPlayer.SteamPlayer(), EChatMode.SAY, null, true);
            }
            else
            {
                ChatManager.serverSendMessage($"Kullanım: <color=green>/destek [liste/git/sil/bilgi]</color>", UnityEngine.Color.white, null, uPlayer.SteamPlayer(), EChatMode.SAY, null, true);
            }
        }
Beispiel #21
0
        public async Task InitializeData()
        {
            _dbContext.Database.EnsureDeleted();
            if (_dbContext.Database.EnsureCreated())
            {
                await InitializeUsersAndCustomers();

                Console.WriteLine("Database Created");
            }
            if (!_dbContext.ContractTypes.Any())
            {
                ContractType type = new ContractType("test", "open", DateTime.Now, DateTime.Now.AddDays(30), DateTime.Now.AddDays(15), 500.00);
                _dbContext.ContractTypes.AddRange(type);
                _dbContext.SaveChanges();
            }
            if (!_dbContext.TicketTypes.Any())
            {
                TicketType type_1 = new TicketType("PRODUCTIE_GEIMPACTEERD_BINNEN_2U_OPLOSSING", "Hoog");
                TicketType type_2 = new TicketType("PRODUCTIE_ZAL_STIL_VALLEN_BINNEN_4U_OPLOSSING", "Medium");
                TicketType type_3 = new TicketType("GEEN_PRODUCTIE_IMPACT_BINNEN_3DAGEN_ANTWOORD", "Laag");
                _dbContext.TicketTypes.AddRange(type_1, type_2, type_3);
                _dbContext.SaveChanges();
            }
            if (!_dbContext.Gebruikers.Any())
            {
                Klant jan = new Klant()
                {
                    GebruikersNaam = "*****@*****.**", Naam = "Peeters", Voornaam = "Jan", Email = "*****@*****.**"
                };
                Klant peter = new Klant()
                {
                    GebruikersNaam = "*****@*****.**", Naam = "Claeyssens", Voornaam = "Peter", Email = "*****@*****.**"
                };
                _dbContext.Gebruikers.AddRange(peter, jan);
                _dbContext.SaveChanges();

                #region jan tickets contracten
                Contract contract = new Contract(ContractStatus.LOPEND, "contract1", 1, _dbContext.ContractTypes.First());
                Ticket   ticket;
                for (int j = 1; j < 6; j++)
                {
                    ticket = new Ticket(jan, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.First(), DateTime.Today.AddDays(-j), DateTime.Today.AddDays(-j + 1));
                    contract.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                jan.VoegContractToe(contract);
                _dbContext.Contracten.Add(contract);

                Contract contract2 = new Contract(ContractStatus.LOPEND, "contract2", 2, _dbContext.ContractTypes.First());
                for (int j = 6; j < 11; j++)
                {
                    ticket = new Ticket(jan, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.Find(2), DateTime.Today.AddDays(-j - 7), DateTime.Today.AddDays(-j - 6));
                    ticket.TicketStatus = TicketStatus.INBEHANDELING;
                    contract2.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                jan.VoegContractToe(contract2);
                _dbContext.Contracten.Add(contract2);
                Contract contract3 = new Contract(ContractStatus.LOPEND, "contract3", 3, _dbContext.ContractTypes.First());
                for (int j = 11; j < 16; j++)
                {
                    ticket = new Ticket(jan, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.Find(3), DateTime.Today.AddDays(-j - 14), DateTime.Today.AddDays(-j - 13));
                    ticket.TicketStatus = TicketStatus.AFGEHANDELD;
                    contract3.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                jan.VoegContractToe(contract3);
                _dbContext.Contracten.Add(contract3);
                _dbContext.SaveChanges();
                #endregion


                #region Peter tickets contracten
                Contract contract4 = new Contract(ContractStatus.LOPEND, "contract1", 1, _dbContext.ContractTypes.First());

                for (int j = 16; j < 21; j++)
                {
                    ticket = new Ticket(peter, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.First(), DateTime.Today.AddDays(-j + 15));
                    contract4.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                peter.VoegContractToe(contract4);
                _dbContext.Contracten.Add(contract4);

                Contract contract5 = new Contract(ContractStatus.LOPEND, "contract2", 2, _dbContext.ContractTypes.First());
                for (int j = 21; j < 26; j++)
                {
                    ticket = new Ticket(peter, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.Find(2), DateTime.Today.AddDays(-j + 10), DateTime.Today.AddDays(-j + 15));
                    ticket.TicketStatus = TicketStatus.GEANNULEERD;
                    contract5.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                peter.VoegContractToe(contract5);
                _dbContext.Contracten.Add(contract5);
                Contract contract6 = new Contract(ContractStatus.LOPEND, "contract3", 3, _dbContext.ContractTypes.First());
                for (int j = 26; j < 31; j++)
                {
                    ticket = new Ticket(peter, $"ticket{j}", $"Omschijving test{j}", $"Opmerking test{j} ", _dbContext.TicketTypes.Find(3), DateTime.Today.AddDays(-j + 5), DateTime.Today.AddDays(-j + 10));
                    ticket.TicketStatus = TicketStatus.AFGEHANDELD;
                    contract6.VoegTicketToe(ticket);
                    _dbContext.Tickets.Add(ticket);
                }
                peter.VoegContractToe(contract6);
                _dbContext.Contracten.Add(contract6);
                _dbContext.SaveChanges();
                #endregion

                SupportManager supportManager = new SupportManager {
                    GebruikersNaam = "*****@*****.**", Email = "*****@*****.**", StartDatumTeWerkStelling = DateTime.Now, Naam = "admin", Voornaam = "admin"
                };
                _dbContext.Gebruikers.Add(supportManager);
                _dbContext.SaveChanges();
            }
            if (!_dbContext.Bedrijven.Any())
            {
                String[]  nummers   = { "+32 517 47 89 65", "+32 586 44 88 66", "+32 886 54 89 63" };
                Bedrijf   BEEGO     = new Bedrijf("BEEGO", nummers, "BELGIUM", "OVERAL");
                Bedrijf   Microsoft = new Bedrijf("Microsoft", nummers, "BELGIUM", "1K BrusselsAirport");
                Bedrijf   Apple     = new Bedrijf("Apple", nummers, "BELGIUM", "Gulden-Vlieslaan26/28");
                Bedrijf[] bedrijven = { BEEGO, Microsoft, Apple };
                _dbContext.Bedrijven.AddRange(bedrijven);
                _dbContext.SaveChanges();
            }
        }
Beispiel #22
0
 private void OnHelpToolStripMenuItemClick(object sender, EventArgs e)
 {
     SupportManager.StartProcess(Files.HelpFile, true);
 }
Beispiel #23
0
 void DocumentationLabelClick(object sender, EventArgs e)
 {
     SupportManager.StartProcess(Files.HelpFile, true);
 }
Beispiel #24
0
 void SupportLabelClick(object sender, EventArgs e)
 {
     SupportManager.DoSupport(SupportRequest.Support);
 }
        private void onBackupFinsihedHelper()
        {
            BackupClass.Dispose();

            if (BackupFinished != null)
            {
                BackupFinished.Invoke();
            }

            if (HearSoundWhenBackupCompleted)
            {
                Miscellaneous.DoBeeps();
            }

            // in support mode we always opening log and do not perform power task
            if (_options.LoggingLevel == LogLevel.Support)
            {
                SupportManager.OpenWebLinkAsync(_fileLogFile);

                Environment.Exit(0);
            }
            else
            {
                if (ErrorsOrWarningsRegistered)
                {
                    // user chose to shutdown PC or logoff from it. In this case we should
                    // add a registry key in RunOnce section to show him log in browser
                    // of backup when he will login into the system next time
                    if ((PowerTask == PowerTask.Shutdown) ||
                        (PowerTask == PowerTask.Reboot) ||
                        (PowerTask == PowerTask.LogOff))
                    {
                        NativeMethods.ScheduleOpeningFileAfterLoginOfUserIntoTheSystem(_fileLogFile);
                    }
                    else
                    // Hibernate, Sleep, Nothing
                    // we should open browser and perform required power operation
                    {
                        SupportManager.OpenWebLinkAsync(_fileLogFile);
                    }
                }
                // No problems during backup registered. In this case we should notify
                // user that's all is ok
                else
                {
                    // user is here and we can show him the message
                    if (PowerTask == PowerTask.None)
                    {
                        MessageBox.Show(Translation.Current[180], ";-)", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 0);
                    }
                }

                PowerPC.DoTask(PowerTask);

                if (PowerTask == PowerTask.None && ErrorsOrWarningsRegistered)
                {
                    ;
                }
                else
                {
                    Environment.Exit(0);
                }
            }
        }
 public void OpenLogFileInBrowser()
 {
     SupportManager.OpenWebLink(_fileLogFile);
 }
Beispiel #27
0
 void SuggestAFeatureLabelClick(object sender, EventArgs e)
 {
     SupportManager.DoSupport(SupportRequest.NewFeature);
 }
Beispiel #28
0
 void ReportABugLabelClick(object sender, EventArgs e)
 {
     SupportManager.DoSupport(SupportRequest.BugReport);
 }
 /// <summary>
 /// Opens the logs folder in explorer
 /// </summary>
 public void OpenLogsFolderInExplorer()
 {
     SupportManager.StartProcess(_logsFolder, true);
 }