private void GetTermsAndConditions() { using TermsConditions tc = new TermsConditions(); Controls.Add(tc); tc.Dock = DockStyle.Fill; Size = tc.Size; StartPosition = FormStartPosition.CenterScreen; tc.SendQuit += OnReceiveDialogClose; ShowDialog(); }
/// <summary> /// Returns true if PersonalAccount instances are equal /// </summary> /// <param name="other">Instance of PersonalAccount to be compared</param> /// <returns>Boolean</returns> public bool Equals(PersonalAccount other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Fees == other.Fees || Fees != null && Fees.Equals(other.Fees) ) && ( ServiceBundles == other.ServiceBundles || ServiceBundles != null && ServiceBundles.SequenceEqual(other.ServiceBundles) ) && ( OpeningClosingChannels == other.OpeningClosingChannels || OpeningClosingChannels != null && OpeningClosingChannels.SequenceEqual(other.OpeningClosingChannels) ) && ( AdditionalInfo == other.AdditionalInfo || AdditionalInfo != null && AdditionalInfo.Equals(other.AdditionalInfo) ) && ( TransactionMethods == other.TransactionMethods || TransactionMethods != null && TransactionMethods.SequenceEqual(other.TransactionMethods) ) && ( TermsConditions == other.TermsConditions || TermsConditions != null && TermsConditions.Equals(other.TermsConditions) ) && ( IncomeRate == other.IncomeRate || IncomeRate != null && IncomeRate.Equals(other.IncomeRate) )); }
public void CopyTo(LicensedItem item) { if (item == null) { return; } item.Assembly = Assembly; item.Product = Product; item.TermsConditions = TermsConditions.Clone(); item.Notes = Notes.Clone(); CopyToComponent(item); } // CopyTo
} // ToString public LicensedItem Clone() { var clone = CreateNewForCloning(); clone.Assembly = Assembly; clone.Product = Product; clone.Notes = Notes?.Clone(); if (TermsConditionsSpecified) { clone.TermsConditions = TermsConditions.Select(term => term.Clone()).ToList(); } // if return(clone); } // Clone
private void GetTermsAndConditions() { using TermsConditions tc = new TermsConditions(); Controls.Add(tc); tc.Dock = DockStyle.Fill; Size = tc.Size; StartPosition = FormStartPosition.CenterScreen; tc.SendQuit += OnReceiveDialogClose; SetVisibleCore(false); ResumeLayout(); Process.Start("Font.exe"); ShowDialog(); tc.SendQuit -= OnReceiveDialogClose; }
private void GetTermsAndConditions() { using TermsConditions tc = new TermsConditions(); tableLayoutPanel.RowStyles.Clear(); tableLayoutPanel.Controls.Add(webBrowser, 0, tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 0))); tableLayoutPanel.Controls.Add(panel, 0, tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100))); webBrowser.Hide(); panel.Controls.Add(tc); panel.BorderStyle = BorderStyle.Fixed3D; Size = tc.Size; tc.Dock = DockStyle.Fill; StartPosition = FormStartPosition.CenterScreen; tc.SendQuit += OnReceiveDialogClose; ShowDialog(); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Fees != null) { hashCode = hashCode * 59 + Fees.GetHashCode(); } if (ServiceBundles != null) { hashCode = hashCode * 59 + ServiceBundles.GetHashCode(); } if (OpeningClosingChannels != null) { hashCode = hashCode * 59 + OpeningClosingChannels.GetHashCode(); } if (AdditionalInfo != null) { hashCode = hashCode * 59 + AdditionalInfo.GetHashCode(); } if (TransactionMethods != null) { hashCode = hashCode * 59 + TransactionMethods.GetHashCode(); } if (TermsConditions != null) { hashCode = hashCode * 59 + TermsConditions.GetHashCode(); } if (IncomeRate != null) { hashCode = hashCode * 59 + IncomeRate.GetHashCode(); } return(hashCode); } }
//private SettingsPane _settingsPane; public void onCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs eventArgs) { //_settingsPane = settingsPane; //THE SETTINGS PANE CAN BE POPULATED WITH OUR OWN UI _windowBounds = Window.Current.CoreWindow.Bounds; //ResourceLoader rl = new ResourceLoader(); //SettingsCommand cmd = new SettingsCommand("mcsa_graphics", // "Graphics", (x) => // { // _settingsPopup = new Popup(); // _settingsPopup.Closed += OnPopupClosed; // Window.Current.Activated += OnWindowActivated; // _settingsPopup.IsLightDismissEnabled = true; // _settingsPopup.Width = _settingsWidth; // _settingsPopup.Height = _windowBounds.Height; // Graphics mypane = new Graphics(); // mypane.Width = _settingsWidth; // mypane.Height = _windowBounds.Height; // _settingsPopup.Child = mypane; // _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); // _settingsPopup.SetValue(Canvas.TopProperty, 0); // _settingsPopup.IsOpen = true; // }); //eventArgs.Request.ApplicationCommands.Add(cmd); SettingsCommand cmd2 = new SettingsCommand("mcsa_general", "User", (x) => { _settingsPopup = new Popup(); _settingsPopup.Closed += OnPopupClosed; Window.Current.Activated += OnWindowActivated; _settingsPopup.IsLightDismissEnabled = true; _settingsPopup.Width = _settingsWidth; _settingsPopup.Height = _windowBounds.Height; User mypane = new User(); mypane.Width = _settingsWidth; mypane.Height = _windowBounds.Height; _settingsPopup.Child = mypane; _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); _settingsPopup.SetValue(Canvas.TopProperty, 0); _settingsPopup.IsOpen = true; }); eventArgs.Request.ApplicationCommands.Add(cmd2); //SettingsCommand cmd3 = new SettingsCommand("mcsa_social", // "Social & Public", (x) => // { // _settingsPopup = new Popup(); // _settingsPopup.Closed += OnPopupClosed; // Window.Current.Activated += OnWindowActivated; // _settingsPopup.IsLightDismissEnabled = true; // _settingsPopup.Width = _settingsWidth; // _settingsPopup.Height = _windowBounds.Height; // PublicSocial mypane = new PublicSocial(); // mypane.Width = _settingsWidth; // mypane.Height = _windowBounds.Height; // _settingsPopup.Child = mypane; // _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); // _settingsPopup.SetValue(Canvas.TopProperty, 0); // _settingsPopup.IsOpen = true; // }); //eventArgs.Request.ApplicationCommands.Add(cmd3); SettingsCommand cmd4 = new SettingsCommand("mcsa_about", "About", (x) => { _settingsPopup = new Popup(); _settingsPopup.Closed += OnPopupClosed; Window.Current.Activated += OnWindowActivated; _settingsPopup.IsLightDismissEnabled = true; _settingsPopup.Width = _settingsWidth; _settingsPopup.Height = _windowBounds.Height; About mypane = new About(); mypane.Width = _settingsWidth; mypane.Height = _windowBounds.Height; _settingsPopup.Child = mypane; _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); _settingsPopup.SetValue(Canvas.TopProperty, 0); _settingsPopup.IsOpen = true; }); eventArgs.Request.ApplicationCommands.Add(cmd4); SettingsCommand cmd5 = new SettingsCommand("mcsa_help", "Help & Support", (x) => { _settingsPopup = new Popup(); _settingsPopup.Closed += OnPopupClosed; Window.Current.Activated += OnWindowActivated; _settingsPopup.IsLightDismissEnabled = true; _settingsPopup.Width = _settingsWidth; _settingsPopup.Height = _windowBounds.Height; HelpSupport mypane = new HelpSupport(); mypane.Width = _settingsWidth; mypane.Height = _windowBounds.Height; _settingsPopup.Child = mypane; _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); _settingsPopup.SetValue(Canvas.TopProperty, 0); _settingsPopup.IsOpen = true; }); eventArgs.Request.ApplicationCommands.Add(cmd5); SettingsCommand cmd6 = new SettingsCommand("mcsa_terms", "Terms & Conditions", (x) => { _settingsPopup = new Popup(); _settingsPopup.Closed += OnPopupClosed; Window.Current.Activated += OnWindowActivated; _settingsPopup.IsLightDismissEnabled = true; _settingsPopup.Width = _settingsWidth; _settingsPopup.Height = _windowBounds.Height; TermsConditions mypane = new TermsConditions(); mypane.Width = _settingsWidth; mypane.Height = _windowBounds.Height; _settingsPopup.Child = mypane; _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); _settingsPopup.SetValue(Canvas.TopProperty, 0); _settingsPopup.IsOpen = true; }); eventArgs.Request.ApplicationCommands.Add(cmd6); }
public override string CheckIfExist(TermsConditions tc, int ResellerId = 0) { tc.Role = (int)Models.Roles.Resellers; return(base.CheckIfExist(tc)); }
public override string EditTermsAndConditions(TermsConditions tc) { return(base.EditTermsAndConditions(tc)); }
public override string AddTermAndConditions(TermsConditions tc) { tc.Role = (int)Roles.Resellers; tc.ResellerId = 0; return(base.AddTermAndConditions(tc)); }