Пример #1
0
 public DlgMessage(FrmMain mainForm, string caption, string message) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     this.Text = caption;
     this.gpgLabelMsg.Text = Loc.Get(message);
 }
Пример #2
0
 public DlgCreateChannel(FrmMain mainForm, string name) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     this.gpgTextBoxName.Text = name;
     this.gpgTextBoxMaxPop.Text = Chatroom.MaxRoomSize.ToString();
 }
Пример #3
0
 public DlgFriendRequests(FrmMain mainForm, MappedObjectList<FriendRequest> requests)
 {
     this.InitializeComponent();
     base.MainForm = mainForm;
     this.mRequestList = requests;
     this.RefreshList();
 }
Пример #4
0
 public DlgEmotes(FrmMain mainForm) : base(mainForm)
 {
     EventHandler handler = null;
     this.ImageSet = false;
     this.mRestrictedEmotes = null;
     this.mSelectedIcon = null;
     this.components = null;
     this.InitializeComponent();
     this.gpgTextBoxNewOutFile.Text = Emote.DefaultEmoteFile;
     this.ResetForm();
     this.RefreshEmotes();
     if (handler == null)
     {
         handler = delegate (object s, EventArgs e) {
             VGen0 method = null;
             if ((base.InvokeRequired && !base.Disposing) && !base.IsDisposed)
             {
                 if (method == null)
                 {
                     method = delegate {
                         this.RefreshEmotes();
                     };
                 }
                 base.BeginInvoke(method);
             }
             else if (!(base.Disposing || base.IsDisposed))
             {
                 this.RefreshEmotes();
             }
         };
     }
     Emote.EmotesChanged += handler;
 }
Пример #5
0
 public DlgLocateExe(FrmMain mainForm, string fileName)
 {
     this.InitializeComponent();
     base.MainForm = mainForm;
     this.FileName = fileName;
     this.gpgLabelQuestion.Text = string.Format(Loc.Get("<LOC id=_2313da81afb678aa3bee11b5f7cc9a34>The executable file -- {0} -- was not found. Please locate it via one of the options below in order to continue."), this.FileName);
 }
Пример #6
0
 public DlgSelectChannel(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     this.gvChannels.Columns["IsPublic"].FilterInfo = new ColumnFilterInfo("[IsPublic] = true");
     this.gvChannels.DoubleClick += new EventHandler(this.gvChannels_DoubleClick);
     this.RefreshChannels();
 }
Пример #7
0
 public DlgYesNo(FrmMain mainForm, string caption, string msg) : base(mainForm)
 {
     this.components = null;
     this.mDoNotShowAgainCheck = false;
     this.InitializeComponent();
     this.Text = caption;
     this.gpgLabelQuestion.Text = msg;
 }
Пример #8
0
 public DlgAbout(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     this.gpgLabelVersion.Text = string.Format(Loc.Get("<LOC>v{0}"), Assembly.GetExecutingAssembly().GetName().Version.ToString());
     this.gpgLabelVersion.Text = this.gpgLabelVersion.Text + " " + Loc.Get("<LOC>RETAIL");
     this.gpgLabel1.Text = Loc.Get("<LOC>(c) 2007, 2008 Gas Powered Games Corp. All rights reserved.\r\nGas Powered Games and GPGnet are the exclusive trademarks of Gas Powered Games Corp.  All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners.");
 }
Пример #9
0
 public DlgTermsOfService(FrmMain mainForm, string url) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     this.gpgWebBrowserAgreement.Navigate(url);
     this.skinButtonAccept.Enabled = true;
     base.BringToFront();
 }
Пример #10
0
 public DlgAskQuestion(FrmMain mainForm) : base(mainForm)
 {
     this.mCanceled = false;
     this.components = null;
     this.InitializeComponent();
     this.tbAnswer.Properties.MaxLength = 0x7d0;
     this.Text = "";
 }
Пример #11
0
 public FriendRequestPicker(FrmMain mainForm, FriendRequest request)
 {
     this.InitializeComponent();
     this.MainForm = mainForm;
     this.mRequest = request;
     this.gpgLinkLabelName.Text = request.RequestorName;
     this.gpgLabelDate.Text = request.RequestDate.ToShortDateString();
 }
Пример #12
0
 public DlgSearchResults(FrmMain mainForm, Solution[] results) : base(mainForm)
 {
     this.EntryList = new LinkedList<SearchResultEntry>();
     this.components = null;
     this.InitializeComponent();
     this.mService = new GPG.Multiplayer.Quazal.SolutionsLib.Service();
     this.mService.Url = ConfigSettings.GetString("SolutionsLibService", "http://gpgnet.gaspowered.com/quazal/Service.asmx?WSDL");
     this.mResultSet = results;
 }
Пример #13
0
 public DlgKeywordSearch(FrmMain mainForm, string search) : base(mainForm)
 {
     this.components = null;
     this.Searching = false;
     this.InitializeComponent();
     this.mService = new GPG.Multiplayer.Quazal.SolutionsLib.Service();
     this.mService.Url = ConfigSettings.GetString("SolutionsLibService", "http://gpgnet.gaspowered.com/quazal/Service.asmx?WSDL");
     this.DoSearch(search, false);
 }
Пример #14
0
 public ClanRequestPicker(FrmMain mainForm, IUserRequest request)
 {
     this.InitializeComponent();
     this.MainForm = mainForm;
     this.mRequest = request;
     this.gpgLinkLabelName.Text = request.Description;
     this.gpgLabelDate.Text = request.RequestDate.ToShortDateString();
     this.Refresh();
 }
Пример #15
0
 public DlgSolution(FrmMain mainForm, int id) : base(mainForm)
 {
     this.mSolutionHistory = new LinkedList<Solution>();
     this.AsyncInProgress = false;
     this.LookupsInProgress = new List<int>();
     this.components = null;
     this.InitializeComponent();
     this.mService = new GPG.Multiplayer.Quazal.SolutionsLib.Service();
     this.mService.Url = ConfigSettings.GetString("SolutionsLibService", "http://gpgnet.gaspowered.com/quazal/Service.asmx?WSDL");
     this.LookupSolution(id);
 }
Пример #16
0
 public FrmStatsLadder(FrmMain mainForm, string category) : base(mainForm)
 {
     this.mSelectedRating = null;
     this.mLastRating = -1;
     this.mCategory = null;
     this.mCurrentPage = 0;
     this.mCurrentDataSet = null;
     this.components = null;
     this.InitializeComponent();
     this.SetCategory(category, true);
 }
Пример #17
0
 public DlgYesNoLater(FrmMain mainForm, string caption, string msg, bool expires) : base(mainForm)
 {
     this.components = null;
     this.CloseTimer = null;
     this.InitializeComponent();
     this.Text = Loc.Get(caption);
     this.gpgLabelQuestion.Text = Loc.Get(msg);
     if (expires)
     {
         this.CloseTimer = new StateTimer((double) (Program.Settings.Chat.PopupTimeout * 0x3e8));
     }
 }
Пример #18
0
 public DlgClanProfile(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.ClanNameLookup = new Dictionary<string, ClanView>();
     this.PlayerNameLookup = new Dictionary<string, ClanView>();
     this.mCurrentClan = null;
     this.mViewList = new LinkedList<ClanView>();
     this.mSelectedParticipantView = null;
     this.RankContainerLookup = new Dictionary<string, TextContainer>();
     this.RankContainers = new BoundContainerList();
     this.mDescriptionModified = false;
     this.InitializeComponent();
 }
Пример #19
0
 public DlgAdhocSQL(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.StatusTimer = new System.Timers.Timer(1000.0);
     this.mTable = new DataTable();
     this.mImportCount = 0;
     this.mImportReader = null;
     this.mImportDelimiter = '|';
     this.mImportTableName = "";
     this.InitializeComponent();
     Loc.LocObject(this);
     this.StatusTimer.Elapsed += new ElapsedEventHandler(this.StatusTimer_Elapsed);
 }
Пример #20
0
 public FrmPrivateChat(FrmMain mainForm, string targetName, string msg) : base(mainForm)
 {
     this.components = null;
     this.mShowWithoutActivation = true;
     this.ToolstripSizeChanged = false;
     this.mCustomPaint = new List<ToolStripItem>();
     this.mChatLines = new BindingList<ChatLine>();
     this.ChatRowPoints = new Dictionary<int, Rectangle>();
     this.ChatRowHeights = new Dictionary<int, int>();
     this.mFirstChatDraw = true;
     this.mChatHistory = new LinkedList<string>();
     this.HistoryIndex = -1;
     this.InitializeComponent();
     this.mShowWithoutActivation = false;
     this.Construct(targetName, msg);
 }
Пример #21
0
 public DlgPlayerProfile(FrmMain mainform) : base(mainform)
 {
     this.components = null;
     this.mCurrentStats = null;
     this.mViewList = new LinkedList<PlayerView>();
     this.PlayerViewLookups = new Dictionary<string, PlayerView>();
     this.FriendContainers = new BoundContainerList();
     this.FriendContainerLookup = new Dictionary<string, TextContainer>();
     this.mSelectedParticipantView = null;
     this.mDescriptionModified = false;
     this.InitializeComponent();
     this.gvFriend_Member.CustomDrawCell += new RowCellCustomDrawEventHandler(this.gvFriend_Member_CustomDrawCell);
     this.gvFriend_Member.MouseDown += new MouseEventHandler(this.SetCurrentGridView);
     this.gvFriend_Member.MouseUp += new MouseEventHandler(this.ChatGridMouseDown);
     this.gvFriend_Member.DoubleClick += new EventHandler(this.gvFriend_Member_DoubleClick);
 }
Пример #22
0
 public DlgUserFeedback(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.InitializeComponent();
     try
     {
         this.gpgLabelMax.Text = string.Format(Loc.Get("<LOC>max {0} char."), this.gpgTextAreaDescription.Properties.MaxLength);
         this.gpgDropDownListCategory.Items.AddRange(Categories);
         if (this.gpgDropDownListCategory.Items.Count > 0)
         {
             this.gpgDropDownListCategory.SelectedIndex = 0;
         }
     }
     catch (Exception exception)
     {
         ErrorLog.WriteLine(exception);
     }
 }
Пример #23
0
 public DlgOptions(FrmMain mainForm) : base(mainForm)
 {
     EventHandler handler = null;
     this.RestoredDefaults = false;
     this.components = null;
     this.InitializeComponent();
     base.Size = base.Size;
     this.OptionsEditor.BorderColor = Program.Settings.StylePreferences.HighlightColor1;
     this.OptionsEditor.Settings = Program.Settings;
     if (handler == null)
     {
         handler = delegate (object s, EventArgs e) {
             this.skinButtonApply.Enabled = true;
         };
     }
     this.OptionsEditor.PropertyChanged += handler;
     this.skinButtonApply.Refresh();
 }
Пример #24
0
 public static string AskQuestion(FrmMain mainForm, string question, string caption, bool isPassword, out DialogResult result)
 {
     DlgAskQuestion question2 = new DlgAskQuestion(mainForm);
     if (caption != null)
     {
         question2.Text = Loc.Get(caption);
     }
     question2.lQuestion.Text = question;
     if (isPassword)
     {
         question2.tbAnswer.Properties.PasswordChar = '*';
     }
     result = question2.ShowDialog();
     if (result == DialogResult.OK)
     {
         return question2.tbAnswer.Text;
     }
     return "";
 }
Пример #25
0
 public DlgSearchReplays(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.Page = 0;
     this.CurrentList = null;
     this.CurrentDataSize = 0;
     this.CurrentCriteria = null;
     this.LastPage = null;
     this.InitializeComponent();
     this.Construct();
     this.ResetForm();
 }
Пример #26
0
 public DlgSolutionLink(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.mSolutionID = 0;
     this.InitializeComponent();
 }
Пример #27
0
 public static string AskQuestion(FrmMain mainForm, string question, string caption, bool isPassword)
 {
     DialogResult result;
     return AskQuestion(mainForm, question, caption, isPassword, out result);
 }
Пример #28
0
 public static string AskQuestion(FrmMain mainForm, string question, bool isPassword)
 {
     return AskQuestion(mainForm, question, null, isPassword);
 }
Пример #29
0
 public static string AskQuestion(FrmMain mainForm, string question)
 {
     return AskQuestion(mainForm, question, false);
 }
Пример #30
0
 public void Delete(bool prompt, FrmMain dialogParent)
 {
     if (!(prompt && ((dialogParent == null) || (new DlgYesNo(dialogParent, "<LOC>Confirm Delete", "<LOC>Are you sure you want to delete this emote?").ShowDialog() != DialogResult.Yes))))
     {
         FileStream serializationStream = null;
         try
         {
             string fileName = this.FileName;
             if (File.Exists(fileName))
             {
                 serializationStream = File.OpenRead(fileName);
                 List<Emote> graph = new BinaryFormatter().Deserialize(serializationStream) as List<Emote>;
                 serializationStream.Close();
                 if (graph != null)
                 {
                     graph.Remove(this);
                     serializationStream = File.OpenWrite(fileName);
                     new BinaryFormatter().Serialize(serializationStream, graph);
                     serializationStream.Close();
                     serializationStream = null;
                 }
             }
             AllEmotes.Remove(this.CharSequence);
             OnEmotesChanged();
         }
         finally
         {
             if (serializationStream != null)
             {
                 serializationStream.Close();
             }
         }
     }
 }