public override bool Equals(object obj)
 {
     return(obj is FutureSpread message &&
            Symbol == message.Symbol &&
            Spread1.Equals(message.Spread1) &&
            Spread2.Equals(message.Spread2));
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 29 + Symbol.GetHashCode();
         hash = hash * 29 + Spread1.GetHashCode();
         hash = hash * 29 + Spread2.GetHashCode();
         return(hash);
     }
 }
Exemple #3
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            XtraOpenFileDialog Opendlg;
            XtraSaveFileDialog Savedlg;

            using (Savedlg = new XtraSaveFileDialog())
            {
                Savedlg.Filter = "EXCEL 파일(*.xlsx)|*.xlsx|All files (*.*)|*.*";

                if (Savedlg.ShowDialog() == DialogResult.OK)
                {
                    Spread1.SaveDocument(Savedlg.FileName);
                }
            }
        }